why do we use IAX2 over SIP for trunks between servers?

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

why do we use IAX2 over SIP for trunks between servers?

Postby bobbymc » Mon Aug 07, 2017 2:35 pm

in a load balanced setup the calls connect from server A to server B via a IAX trunk, is there a reason we use IAX2 over SIP?
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Re: why do we use IAX2 over SIP for trunks between servers?

Postby mflorell » Mon Aug 07, 2017 3:19 pm

IAX is faster and has A LOT LESS overhead than SIP. I actually tested using SIP several years ago and the load increased significantly on dialers in a large cluster that was doing predictive dialing.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: why do we use IAX2 over SIP for trunks between servers?

Postby bobbymc » Mon Aug 07, 2017 7:43 pm

by faster you mean there is less delay when the call connects? the reason i want to switch to SIP is that we have these annoying IAX2 errors:

[2017-08-07 17:33:46] WARNING[65343]: chan_iax2.c:9990 socket_process_meta: Received trunked frame before first full voice frame

and ive been trying for month to figure out why, these are local servers and there is no network issue or delays. i disabled jitter buffer in hope to solve this but no luck. occasionally we get floods of these and eventually asterisk craps out. im hoping to switch to sip and not have these issues anymore but if the call gets delay added by sending it from server a to b then sip would be out of the questions of course.
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Re: why do we use IAX2 over SIP for trunks between servers?

Postby mflorell » Tue Aug 08, 2017 12:18 pm

Yes. SIP connections are slower, they use more resources and they have to keep those resources active longer because SIP will not release channel resources upon hangup like IAX2 does. This is all because of the bloated SIP specifications that were not created for efficiency, but for items like images and other media to be sent after a call is hung up. IAX is very simple and efficient, and is the best option for high-volume multi-server Asterisk clusters to communicate.

As for the errors you're getting, I have seen them before, but I haven't run into those being a major problem as far as crashing goes.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: why do we use IAX2 over SIP for trunks between servers?

Postby williamconley » Tue Aug 08, 2017 7:14 pm

bobbymc wrote:[2017-08-07 17:33:46] WARNING[65343]: chan_iax2.c:9990 socket_process_meta: Received trunked frame before first full voice frame

Beware: It looks like a networking problem (lag/jitter) that may be exacerbated by switching to SIP. While sip may not show that error in a log, that doesn't mean it doesn't experience the problem. Find and fix your networking problem would be my first reflex.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Development

Who is online

Users browsing this forum: No registered users and 30 guests