<br>
Thanks Steve,<br>
<br>
But this will not work for me because after "yourcodehere" the line
will give a confirmation tone (similar to a congestion tone only
faster) then after flashing or certain period will turn into a busytone
and to get the dialtone again i need to Flash again before i can dial
${EXTEN}.<br>
<br>
<br><div><span class="gmail_quote">On 11/28/05, <b class="gmail_sendername">Steve Totaro</b> <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How about this?<br><br>exten => 1234567890,1,Dial(Zap/g1/yourcodehere${EXTEN})<br>-or-<br>exten => 1234567890,1,Dial(Zap/g1/yourcodeherewwww${EXTEN})<br><br>I have not seen restrictions set before dialing since local numbers
<br>would not fall under the restriction but that is what you said. Usually<br>you dial the number first and if it is a long distance call, they prompt<br>for a code with a tone or something. The second example shoud give you
<br>a two second pause before dialing the rest of the number (wwww).<br><br>Thanks,<br>Steve<br><br><br>><br>> thanks steve,<br>><br>> the reason i cannot remove the restriction on the telco line is that<br>an
<br>> analog fone is connected to the phone jack of the x101p and some<br>visitors<br>> occasionally use the fone and they're supposed to only call local toll<br>> free numbers.<br>><br>> Your suggestion of doing the restrictions within asterisk is good but
<br>i<br>> have yet to buy an FXS port for the analog fone so i cannot do so.<br>><br>> and for the extensions connected via softphones to asterisk, i wanted<br>> asterisk to take care of opening the lock before dialing the desired
<br>phone<br>> number.<br>><br>> i was thinking of using the "SendDTMF" but i dont know how to get the<br>zap<br>> line go off hook.<br>><br>><br>> On 11/27/05, Steve Totaro < <a href="mailto:stotaro@totarotechnologies.com">
stotaro@totarotechnologies.com</a><br>> <mailto:<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> > wrote:<br>><br>> ><br>> > hi,<br>> >
<br>> > can anyone please guide me as to how i can implement this in<br>> > extensions.conf:<br>> ><br>> > my PSTN line normally has its longdistance capability "locked"
<br>> which<br>> can<br>> > be opened by dialing some keys and the PIN.<br>> ><br>> > if i wanted some users to be allowed to call long distance<br>using<br>> the<br>> zap
<br>> > channel, how can i initially offhook then send some DTMF then<br>> Flash<br>> twice<br>> > before proceeding with the dialing EXTEN.<br>><br>><br>> Do you want asterisk to take care of the DTMF for you? When you
<br>say<br>> users, do you mean certain extensions?<br>><br>> Why not cancel your restrictions with the telco and implement<br>> restrictions within asterisk. You can use authenticate before
<br>your<br>> dial<br>> statement to prompt for a pin when dialing long distance or you<br>can<br>> create different contexts for phones that you want to access<br>long<br>> distance and for phones that you don't
<br>><br>> Thanks,<br>> Steve<br>> _______________________________________________<br>> --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.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>><br>><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.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>