Hi Paul,<br><br>Asterisk CMD Authenticate has a prompt to ask for authentication, my client doesn&#39;t want that they want it to behave like avaya put the auth code at the end of the number.<br><br><div class="gmail_quote">
On Wed, Mar 12, 2008 at 2:47 PM, Paul Hales &lt;<a href="mailto:pdhales@optusnet.com.au">pdhales@optusnet.com.au</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The Authenticate application is pretty good for this sort of thing...<br>
<br>
PaulH<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Wed, 2008-03-12 at 14:22 +0800, Mark Quitoriano wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I need to create a simple number checking for authorizing the calls.<br>
&gt; if a person dial 91800555121212345 where 12345 is the authorization<br>
&gt; code. If the authorization code is correct the call will go through if<br>
&gt; not it will play something saying wrong authorization code or just<br>
&gt; hangup.<br>
&gt;<br>
&gt; This my dialplan to get the authorization code<br>
&gt;<br>
&gt; AUTH=12345<br>
&gt;<br>
&gt; exten =&gt; _9.,1,Answer()<br>
&gt; exten =&gt; _9.,n,Set(CHECKER=${EXTEN:-5})<br>
&gt; exten =&gt; _9.,n,GotoIF(&quot;$[{CHECKER}&quot; != &quot;${AUTH}&quot;]?die)<br>
&gt;<br>
&gt; exten =&gt; _9.,n,Dial(SIP/${EXTEN}/${TRUNK}) &lt;------------- This is my<br>
&gt; problem how can i delete the last 5 digit so the number will be sent<br>
&gt; to the carrier is valid<br>
&gt;<br>
&gt; exten =&gt; _9.,n(die),Hangup()<br>
&gt;<br>
&gt;<br>
&gt; btw the number being dialled is not standard. Sometimes its 10 digits<br>
&gt; sometimes it 7 digits and most of the time it&#39;s 6 digits.<br>
&gt;<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Mark Quitoriano<br>
&gt; <a href="http://asterisk.org.ph" target="_blank">http://asterisk.org.ph</a><br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Mark Quitoriano<br><a href="http://asterisk.org.ph">http://asterisk.org.ph</a><br>