[asterisk-users] outging select

Josu Lazkano jlazkano at somesi.com
Mon Jun 25 04:53:59 CDT 2007


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070625/f159cb28/attachment.htm 


More information about the asterisk-users mailing list