KO, thank you very much.<br><br>i will try it.<br><br><div><span class="gmail_quote">2007/6/25, Steve Totaro <<a href="mailto:stotaro@mail.schoffstall.com">stotaro@mail.schoffstall.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You could combine your two contexts or use goto.<br><br>Instead of:<br>[outgoing_RTB]<br>exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)<br>exten =>_9XXXXXXXX,2,Hangup()<br>exten =>_9XXXXXXXX,102,Hangup()<br><br>
[outgoing_RDSI]<br>exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)<br>exten =>_9XXXXXXXX,2,Hangup()<br>exten =>_9XXXXXXXX,102,Hangup()<br><br>Do:<br>[outgoing_RTB]<br>exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)
<br>exten =>_9XXXXXXXX,2,Goto(outgoing_RDSI,_9XXXXXXXX,1)<br><br>[outgoing_RDSI]<br>exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)<br>exten =>_9XXXXXXXX,2,Hangup()<br>exten =>_9XXXXXXXX,102,Hangup()<br><br>
Or<br>[outgoing_trunks]<br>exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)<br>exten =>_9XXXXXXXX,2,Dial(mISDN/1/${EXTEN},45,twW)<br>exten =>_9XXXXXXXX,3,Hangup()<br><br>Thanks,<br>Steve Totaro<br><br>Josu Lazkano wrote:
<br>> Hello everybody.<br>><br>> I have a analog line in the office and a ISDN (with mISDN) line.<br>><br>> I want to call outside from the analog line, but when this is busy, I<br>> want to call outside the second call from the ISDN line.
<br>><br>> That my extensions.conf:<br>><br>> [general]<br>> static=yes<br>> writeprotect=yes<br>><br>> [SOME]<br>> exten => 101,1,Dial(SIP/101,30,tm)<br>> exten => 101,2,Hangup<br>>
<br>> exten => 102,1,Dial(SIP/102,30,tm)<br>> exten => 102,2,Hangup<br>><br>> exten => 103,1,Dial(SIP/103,30,tm)<br>> exten => 103,2,Hangup<br>><br>> exten => 104,1,Dial(SIP/104,30,tm)<br>
> exten => 104,2,Hangup<br>><br>> include => outgoing_RTB<br>><br>> [outgoing_RTB]<br>> exten =>_9XXXXXXXX,1,Dial(ZAP/g1/${EXTEN},45,twW)<br>> exten =>_9XXXXXXXX,2,Hangup()<br>> exten =>_9XXXXXXXX,102,Hangup()
<br>><br>> [outgoing_RDSI]<br>> exten =>_9XXXXXXXX,1,Dial(mISDN/1/${EXTEN},45,twW)<br>> exten =>_9XXXXXXXX,2,Hangup()<br>> exten =>_9XXXXXXXX,102,Hangup()<br>><br>> [default]<br>> exten => s,1,Answer()
<br>> exten => s,2,Wait(1)<br>> exten => s,3,Dial(SIP/103,30,tm)<br>> exten => fax,1,Dial(IAX2/200)<br>><br>> [incoming]<br>> exten => 943712666,1,Wait(2)<br>> exten => 943712666,2,Answer()
<br>> exten => 943712666,3,Background(/home/lazkano/bienvenido)<br>> exten => 943712666,4,Wait(1)<br>> exten => 943712666,5,Background(/home/lazkano/extension)<br>> exten => 943712666,6,Wait(4)<br>
> exten => 943712666,7,Dial(SIP/104|30|tm)<br>> exten => 943712666,8,Hangup()<br>><br>> exten => 101,1,Dial(SIP/101|30|tm)<br>> exten => 102,1,Dial(SIP/102|30|tm)<br>> exten => 103,1,Dial(SIP/103|30|tm)
<br>> exten => 104,1,Dial(SIP/104|30|tm)<br>><br>> How can I do that?<br>><br>> Thanks for all.<br>><br>> Have a nice day.<br>><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>