Hi Paul,<br><br>Asterisk CMD Authenticate has a prompt to ask for authentication, my client doesn'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 <<a href="mailto:pdhales@optusnet.com.au">pdhales@optusnet.com.au</a>> 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>
> Hi,<br>
><br>
> I need to create a simple number checking for authorizing the calls.<br>
> if a person dial 91800555121212345 where 12345 is the authorization<br>
> code. If the authorization code is correct the call will go through if<br>
> not it will play something saying wrong authorization code or just<br>
> hangup.<br>
><br>
> This my dialplan to get the authorization code<br>
><br>
> AUTH=12345<br>
><br>
> exten => _9.,1,Answer()<br>
> exten => _9.,n,Set(CHECKER=${EXTEN:-5})<br>
> exten => _9.,n,GotoIF("$[{CHECKER}" != "${AUTH}"]?die)<br>
><br>
> exten => _9.,n,Dial(SIP/${EXTEN}/${TRUNK}) <------------- This is my<br>
> problem how can i delete the last 5 digit so the number will be sent<br>
> to the carrier is valid<br>
><br>
> exten => _9.,n(die),Hangup()<br>
><br>
><br>
> btw the number being dialled is not standard. Sometimes its 10 digits<br>
> sometimes it 7 digits and most of the time it's 6 digits.<br>
><br>
><br>
> Thanks!<br>
><br>
> --<br>
> Regards,<br>
> Mark Quitoriano<br>
> <a href="http://asterisk.org.ph" target="_blank">http://asterisk.org.ph</a><br>
</div></div><div><div></div><div class="Wj3C7c">> _______________________________________________<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>
> <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>
<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>