2 lines for VOIP Trunk

Hello,

I know… Maybe this is a silly title so i’ll try to explain:
I am using 2 VOIP providers, both providing SIP and IAX. I am using one of these connections with Asterisk 1.2.1 but i want to use the second one aswell…

I want it so that people who call trough my Asterisk install, use the first line. If this line is in use or down I want them to automaticly call trough the second line…

I think this could be done, but I don’t know how. Can anyone help me out here? Thanks!

exten => NXXNXXXXXX,1,Dial(SIP/provider1/${EXTEN})
exten => NXXNXXXXXX,2,Dial(IAX2/provider2-${EXTEN})

this works wonderfully if the provider fails with an error. This doesn’t work that well if the provider just doesn’t respond.

Okay, thanks… But i guess that doesn’t check if the line is free or busy…

if you are only allowed one active call per account, then set a limit on that channel and my example will work as needed.

Ok i’ll try it out tomorrow…

Thanks!

Where to set channel limits? :smile:

in sip.conf/iax.conf, its incominglimit= or outgoinglimit=. In 1.2 this has been changed though, I think its just limit= or something to do with groups.