Transport is not getting disposed in PJSUA2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hello, i want to have multiple transports in my endpoint at the same time. I create a few udp transports and set each one for different accounts in different threads. After i'm done with the account, i try to dispoce the transports, so the thread can grab another sip account and i can create a new transport for this account. If i try to create a new transport i'm receiving 'PJ_ETOOMANY, too many objects of the specified type' Something like this:


in the beginning:


TransportConfig  tcfg ;
TransportId tid;
?
?
tcfg.port=port++;
? ?
try{
     returnthis->ep_->transportCreate(PJSIP_TRANSPORT_UDP,tcfg);
}
catch(Error&err){
  // PJ_ETOOMANY, too many objects of the specified type endpoint.cpp
   
}
What is the right way to go in this situation, create a one transport per thread and keep assigning it to different accounts, in process of loggin in, doing stuff, loggin out ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160102/160d506b/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux