Multiple Carrier / Trunk (SIP/IAX2) in ASterisk (Vicidial/GoAutodial/FreePBX/Elastix/Trixbox)

What do if i want switch by Least Cost routing or LCR so that i can save money depending on destination ?

TofaTel :: End to end Voice video and Data ::

In call center dialer you have different ways of using your multiple carrier or Trunk. Simply you can create multiple carrier and set your prefixes and while dialing use different prefix to dial to use different trunk.


In other ways you can have multiple trunk and use randomly. However this method is use as “fail over” trunk, to ensure more reliability of your system being able to dial out no matter what destination you dial. This is more useful when some provider are not giving you A2Z route.

To use multilple and random trunk use the example dial plan below:

exten => _9044X.,1,AGI(agi://
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(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

Please note :

TrunkA, B, C  = is your bespoke trunk

${RAND(1|3) = setting your trunk at…

View original post 171 more words


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s