asterisk / pjproject-archive

Asterisk fork of PJSIP NO PULL REQUESTS OR ISSUES!!!
GNU General Public License v2.0
69 stars 42 forks source link

Update maximum transport count in constant PJSIP_TRANSPORT_COUNT #16

Closed vit1251 closed 9 years ago

vit1251 commented 9 years ago

Add maximum transport count in PJSIP_TRANSPORT_COUNT.

vit1251 commented 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.

gtjoseph commented 9 years ago

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.

vit1251 commented 9 years ago

@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?

gtjoseph commented 9 years ago

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.

vit1251 commented 9 years ago

@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.

gtjoseph commented 9 years ago

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.

vit1251 commented 9 years ago

@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.

gtjoseph commented 9 years ago

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.

vit1251 commented 9 years ago

@gtjoseph thanks for the reply. I will try to compile Asterisk 13.1 and checking on temporary server.

vit1251 commented 9 years ago

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.