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
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. >
KO, thank you very much. i will try it. 2007/6/25, Steve Totaro <stotaro at mail.schoffstall.com>:> > 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. > > > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070625/fdffdfb0/attachment.htm