[pjsip] Modifying the transport port for each account
xmulala at 163.com
Mon Oct 19 11:21:53 EDT 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip