Attention is currently required from: jolly, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email )
Change subject: Implement M3UA-over-TCP (in addition to SCTP) ......................................................................
Patch Set 4:
(1 comment)
File include/osmocom/sigtran/osmo_ss7.h:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/ddb66e4c_9c85285f PS3, Line 616: osmo_sccp_simple_client2(void *ctx, const char *name, uint32_t default_pc,
Done
Having done this, I can no longer get osmo-bsc to talk to osmo-stp using M3UA/TCP. AFAICS, osmo-bsc is actually using this API and since this API is assuming the default transport protocol (SCTP), something is definitely going wrong:
``` DMSC NOTICE osmo_bsc_sigtran.c:648 Initializing SCCP connection for A/m3ua on cs7 instance 0 DLSCCP NOTICE sccp_user.c:567 A-0-m3ua: Using SS7 instance 0, pc:0.23.3 DLSCCP NOTICE sccp_user.c:585 A-0-m3ua: Using AS instance as-clnt-OsmoBSC-A DLSCCP NOTICE sccp_user.c:590 A-0-m3ua: Creating default route DLSS7 INFO osmo_ss7.c:781 0: Creating route: pc=0=0.0.0 mask=0x0 via AS 'as-clnt-OsmoBSC-A' DLSCCP NOTICE sccp_user.c:632 A-0-m3ua: No unassociated ASP for m3ua, creating new ASP asp-clnt-A-0-m3ua DLSS7 INFO osmo_ss7_as.c:110 0: as-as-clnt-OsmoBSC-A: Adding ASP asp-clnt-A-0-m3ua to AS DLGLOBAL ERROR osmo_ss7_as.c:118 Trying to dispatch event 17 to non-existent FSM instance! DLGLOBAL ERROR backtrace.c:42 backtrace() returned 9 addresses DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmocore.so.21(_osmo_fsm_inst_dispatch+0x3a3) [0x7660c5671443] DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmo-sigtran.so.9(osmo_ss7_as_add_asp+0x31e) [0x7660c57da45e] DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmo-sigtran.so.9(osmo_sccp_simple_client_on_ss7_id+0x101a) [0x7660c58055ca] DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x1ee30c) [0x5f63af78430c] DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x25bb7) [0x5f63af5bbbb7] DLGLOBAL ERROR backtrace.c:53 /usr/lib/libc.so.6(+0x27cd0) [0x7660c5151cd0] DLGLOBAL ERROR backtrace.c:53 /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7660c5151d8a] DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x25165) [0x5f63af5bb165]
```
Note the `No unassociated ASP for m3ua, creating new ASP` line. This is despite I am using the following configuration in osmo-bsc.cfg:
``` cs7 instance 0 point-code 0.23.3 asp asp-clnt-OsmoBSC-A 2905 0 m3ua tcp remote-ip 127.0.0.1 role asp transport-role client as as-clnt-OsmoBSC-A m3ua asp asp-clnt-OsmoBSC-A routing-key 3 0.23.3 ```
Any input is welcome. I'll continue investigating this.