[asterisk-users] Multi Operator

Ira ira at extrasensory.com
Wed Dec 13 11:41:34 MST 2006


At 04:27 AM 12/13/2006, you wrote:
>A have a second SIP account with another operator and I would like my setup
>to use alternatively each of the two accoutns
>Call 1=> Dial SIP/phone1
>Call 2=> Dial SIP/phone2
>Call 3=> Dial SIP/phone1
><...>
>
>If you have an sample please let me know

Something like this should work.

Ira

[GLOBAL]
LINE_CHOICE=1



[out]
exten => s,1, set(LINE_CHOICE=$[${LINE_CHOICE} + 1])
exten => s,n,gotoif($[${LINE_CHOICE} = 2]?continue_here)
exten => s,n,set(LINE_CHOICE=1)
exten => s,n(continue_here),
exten => s,n,dial(SIP/phone${LINE_CHOICE})



More information about the asterisk-users mailing list