Hello there,
I was wondering if there is any snippet or sample code for extracting TCAP
and then CAP parts from SCCP messages.
So, What I've done so far was to connect to SG system as a client and
called to 'osmo_sccp_user_bind' function to catch SCCP message:
osmo_sccp_user_bind(sccp, 0, handle_sccp_msg, NULL);
.
.
.
int handle_sccp_message(struct osmo_prim_hdr *oph, void *ctx) {
struct osmo_scu_prim *scu_prim = (struct osmo_scu_prim *)oph;
struct osmo_sccp_user *scu = ctx;
struct gsm_subscriber_connection *conn;
int rc = 0;
switch (OSMO_PRIM_HDR(&scu_prim->oph)) {
case OSMO_PRIM(OSMO_SCU_PRIM_N_UNITDATA, PRIM_OP_INDICATION):
// TCAP parsing ?!
break;
default:
break;
}
return rc;
}
Thanks