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})
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users