dial plan for Multiplle IAX2 trunks with balancing

striker
Joined: Tue 19 of Oct, 2010

Re: dial plan for Multiplle IAX2 trunks with balancing

Posted:Mon 23 of Dec, 2013 (12:15 UTC)
Hope below link will help you
http://striker24x7.blogspot.in/2012/02/multiple-carriers-in-asterisk-or.html

ie

[general]
TRUNKA=SIP/voiptrunk
TRUNKB=SIP/clickdial
TRUNKC=DAHDI/g0


exten => _9044X.,1,Answer
exten => _9044X.,n,Set(Trunk=${RAND(1|3)})
exten => _9044X.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _9044X.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _9044X.,n,GoToIf($[${Trunk} = 3]?trunkC)
exten => _9044X.,n,Hangup
exten => _9044X.,n(trunkA),Dial(${TRUNKA}/${EXTEN:4},,tToR)
exten => _9044X.,n(trunkB),Dial(${TRUNKB}/${EXTEN:4},,tToR)
exten => _9044X.,n(trunkC),Dial(${TRUNKC}/${EXTEN:4},,tToR)
exten => _9044X.,n,Hangup

replyusman0
Joined: Thu 12 of Dec, 2013

dial plan for Multiplle IAX2 trunks with balancing

Posted:Thu 12 of Dec, 2013 (09:12 UTC)
my 2 * servers are connected using 5 iax2 trunks. I need to configure dial plan which can send the calls over each trunks in round robin way. If any trunk goes down It starts sending the traffic to other trunks. After recovery it operates like before.

Your help is required. Thanks.