Closed vit1251 closed 9 years ago
The big question is why developers PJPROJECT limited their library of 8 transport connections. For example, I have more than 8 SIP accounts and of course I would like to establish a connection with all of them.
The number of SIP connections isn't limited by the number of transports. A transport object contains local bind address and port, tls info qos, etc.
@gtjoseph youre a right. I am talking about bind socket of course. What about when I am have more than 8 peers to my providers SIP Trunk? This is limitation based on protocol restriction or it just PJSIP limitation about stack memory limitation?
There are no artificial limits that I know of for concurrent calls via the same trunk or any trunk. Unless you run out of sockets or RTP ports, etc. I've certainly had more than 8.
@gtjoseph you does not have a error:
Too many objects of the specified type (PJ_ETOOMANY)
When I already have it when create 8 transport.
You ARE using Asterisk right? If you're using pjproject directly I can't help.
If you are using asterisk, why do you need more than 8 transports?
[ipv4] type=transport protocol=udp bind=0.0.0.0
You can then have any number of endpoints reference that transport.
@gtjoseph yes I using Asterisk. I thinking about limitation in pjproject with Asterisk in future (now using old version of Asterisk without pjproject). When I am using more than 8 SIP Trunk on different port closed with firewol and open to specific hostname i.e. pstn1 => 5061, pstn2 => 5062, pstn3 => 5063 and etc. I will be limited by pjproject with TOO_MANY_OBJECT and require to make some another solution to handle more than 8 connection with my SIP Tranking? Today is not a problem I have no more than 4 and extending on this year to 6 register in Asterisk and my phone's but in future it may be limited by pjproject or no problem with that handling connection?
P.S. I thinking about connection to single port but it unaceptable by security reason.
Now I understand. I just created 20 transports each on a different port with no problems using Asterisk 13.1.0 and the pjproject 2.3 release from pjsip.org. Are you actually seeing the TOO_MANY_OBJECT errors? Are you using the version in this repo or the one from pjsip.org?
FYI... This goal of the Asterisk team is for people to use the official pjproject from pjsip.org rather than this one.
@gtjoseph thanks for the reply. I will try to compile Asterisk 13.1 and checking on temporary server.
Yes. I think you does not use pjsua with that limitation. But I does not understand how it work. But think this work is right. Thank for response.
Add maximum transport count in PJSIP_TRANSPORT_COUNT.