Hi,
I’d not use osmo stuff for that, because neither TCAP nor MAP or CAP decoding is
implemented AFAIK.
I’d use other tools, e.g. Pycrate (check Vadim’s great presentation about it in one of the
OsmoDevCalls).
Cheers,
Domi
23.02.2023 dátummal, 18:33 időpontban Hadi Rezaee
<rezaee.hadi(a)gmail.com> írta:
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