Multiple PJSip clients running in parallel on different interfaces

OA
Olaf Alejandro Bergengruen
Fri, Aug 5, 2016 2:28 PM

Hello PjSip-community,

My PJSip application launches multiple clients, each one bound at a
different IF of the host, i.e. a different IP address.
For example

Ua-1 is on address 10.0.2.15 on port 5060
Ua-2 is on address 10.0.2.16 on port 5060
Ua-3 is on address 10.0.2.17 on port 5060

The clients work correctly  if they are configured with UDP.
But this does not work with TCP: The PJSip stack does not allow to
create more than one TCP transport.

The call of  pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL);
results in an error:

16:19:42.373  pjsua_core.c  Error creating SIP TCP listener: Object
with the same type exists (PJSIP_ETYPEEXISTS) [status=171002]

Is this a bug of the PjSip stack?
Or is there a reason for not allowing more than one TCP transport?

Thanks for any hint,
Alejandro

Hello PjSip-community, My PJSip application launches multiple clients, each one bound at a different IF of the host, i.e. a different IP address. For example Ua-1 is on address 10.0.2.15 on port 5060 Ua-2 is on address 10.0.2.16 on port 5060 Ua-3 is on address 10.0.2.17 on port 5060 The clients work correctly if they are configured with UDP. But this does not work with TCP: The PJSip stack does not allow to create more than one TCP transport. The call of pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL); results in an error: 16:19:42.373 pjsua_core.c Error creating SIP TCP listener: Object with the same type exists (PJSIP_ETYPEEXISTS) [status=171002] Is this a bug of the PjSip stack? Or is there a reason for not allowing more than one TCP transport? Thanks for any hint, Alejandro