PJSUA2 - Disable media transport (or capture RTP), and still negotiate SDP

Hello,

I’m looking to implement my own socket with PJSUA2 and take over the RTP media transport. PJSUA2 is working well for SIP signalling, and as expected an SDP offers media transport according to the account / media config.

I want to take over the socket myself instead and not use the one happening in PJSUA2 (python).

Does anyone know how to disable the actual transport so I can create my own socket, but still negotiate SDP normally?

Edit:

I found this and set it on the AccountConfig → MediaConfig → TransportConfig before doing an Account.create with the config, but it doesn’t appear to work.

Since this forum is for Asterisk you probably won’t get much response. You might want to try joining the pjsip mailing list at List Info Board | Affinity and posting your question there.

1 Like

This was the solution:
acfg.mediaConfig.transportConfig.useLoopMedTp = True acfg.mediaConfig.transportConfig.enableLoopback = False
acfg.mediaConfig.transportConfig.boundAddress = ‘127.0.0.1’

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.