<div dir="ltr"><div><div><div>thanks a lot for the reply.<br></div>i thought of that and i did try to send <br><b>exten => _9X.,1,Dial(Dongle/dongle800/#31#${EXTEN:1},120,KT)<br>exten => _9X.,n,Hangup(${HANGUPCAUSE})</b><br><br></div>but the provider replies back that it is a wrong number. Then i inserted the sim to an ordinary mobile phone and dialed #31# and the number, then the call progressed fine and it restricted the number.<br></div>What am i doing wrong in asterisk?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 10, 2018 at 11:43 AM, <span dir="ltr"><<a href="mailto:ka@mayten.sch.bme.hu" target="_blank">ka@mayten.sch.bme.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2018-04-10 08:46, Atux Atux wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
9+#31#+destination_number. Unfortunately, zoiper did stop on 9#31# and<br>
it dialled one of my recent numbers. The same result happened with<br>
</blockquote>
<br></span>
haven't used zoiper at all, so can't comment on its features of parsing numbers. I'd recommend 'hiding' this function or making it transparent to the end user by using something like this:<br>
<br>
exten => _06[237]0NXXXXXX!,100,Dial(SIP<wbr>/${OUTGOING_PROVIDER}/*31#0036<wbr>${EXTEN:2},55)<br>
<br>
where ${OUTGOING_PROVIDER} is set by a macro previously, and *31# i believe is the caller ID set visible. I have used it with #31# as well but the customer requirements have changed and they now want the number to be visible at all times.<br>
<br>
Because the #31# or *31# is transparent to the end user and won't have do dial it at all, it doesn't matter if zoiper intercepts digits and parses them on its own.<br>
<br>
If you want the end user to be able to control when the number is shown/hidden, i'd recommend using either a pefix (90 for hiding, 91 for showing), or use an SQL backend from where an extensions.conf macro can fetch the current settings (maybe even profile people).<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Regards<br>
Adam<br>
<br>
<br>
-- <br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org<wbr>/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wik<wbr>i/display/AST/Getting+Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/mailma<wbr>n/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br></div>