[pjsip] Modifying the transport port for each account

Geffrrey xmulala at 163.com
Mon Oct 19 11:21:53 EDT 2015

Hi, all,

I met a problem when using PJSUA-LIB APIs (v2.4). 

My application needs to manage 4 accounts, all of which should be allowed to configure the local port for transporting SIP messages.

I attempted to use pjsua_transport_create/close to manage the re-configuration of local ports, but after doing that for 8 times, it prompted an error: 
"Error creating transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010]". 
Note that the stack only sent a REGISTER and then received a 200OK when the re-configuration was triggered.

I also tried to the force=TRUE version of pjsua_transport_close, it also failed. It seems that the transport has some references when being destroyed.

It there any elegant ways to handle this situation? Any clues are welcome. Thanks in advance.

Best regards,
Geffrrey James.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151019/635147db/attachment-0002.html>

More information about the pjsip mailing list