[asterisk-users] outging select
Steve Totaro
stotaro at mail.schoffstall.com
Mon Jun 25 08:13:57 CDT 2007
You could combine your two contexts or use goto.
Instead of:
[outgoing_RTB]
exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,2,Hangup()
exten =>_9XXXXXXXX,102,Hangup()
[outgoing_RDSI]
exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,2,Hangup()
exten =>_9XXXXXXXX,102,Hangup()
Do:
[outgoing_RTB]
exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,2,Goto(outgoing_RDSI,_9XXXXXXXX,1)
[outgoing_RDSI]
exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,2,Hangup()
exten =>_9XXXXXXXX,102,Hangup()
Or
[outgoing_trunks]
exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,2,Dial(mISDN/1/${EXTEN},45,twW)
exten =>_9XXXXXXXX,3,Hangup()
Thanks,
Steve Totaro
Josu Lazkano wrote:
> Hello everybody.
>
> I have a analog line in the office and a ISDN (with mISDN) line.
>
> I want to call outside from the analog line, but when this is busy, I
> want to call outside the second call from the ISDN line.
>
> That my extensions.conf:
>
> [general]
> static=yes
> writeprotect=yes
>
> [SOME]
> exten => 101,1,Dial(SIP/101,30,tm)
> exten => 101,2,Hangup
>
> exten => 102,1,Dial(SIP/102,30,tm)
> exten => 102,2,Hangup
>
> exten => 103,1,Dial(SIP/103,30,tm)
> exten => 103,2,Hangup
>
> exten => 104,1,Dial(SIP/104,30,tm)
> exten => 104,2,Hangup
>
> include => outgoing_RTB
>
> [outgoing_RTB]
> exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)
> exten =>_9XXXXXXXX,2,Hangup()
> exten =>_9XXXXXXXX,102,Hangup()
>
> [outgoing_RDSI]
> exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)
> exten =>_9XXXXXXXX,2,Hangup()
> exten =>_9XXXXXXXX,102,Hangup()
>
> [default]
> exten => s,1,Answer()
> exten => s,2,Wait(1)
> exten => s,3,Dial(SIP/103,30,tm)
> exten => fax,1,Dial(IAX2/200)
>
> [incoming]
> exten => 943712666,1,Wait(2)
> exten => 943712666,2,Answer()
> exten => 943712666,3,Background(/home/lazkano/bienvenido)
> exten => 943712666,4,Wait(1)
> exten => 943712666,5,Background(/home/lazkano/extension)
> exten => 943712666,6,Wait(4)
> exten => 943712666,7,Dial(SIP/104|30|tm)
> exten => 943712666,8,Hangup()
>
> exten => 101,1,Dial(SIP/101|30|tm)
> exten => 102,1,Dial(SIP/102|30|tm)
> exten => 103,1,Dial(SIP/103|30|tm)
> exten => 104,1,Dial(SIP/104|30|tm)
>
> How can I do that?
>
> Thanks for all.
>
> Have a nice day.
>
More information about the asterisk-users
mailing list