Hi,<br><br>I need to create a simple number checking for authorizing the calls. if a person dial 91800555121212345 where 12345 is the authorization code. If the authorization code is correct the call will go through if not it will play something saying wrong authorization code or just hangup.<br>
<br>This my dialplan to get the authorization code<br clear="all"><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 problem how can i delete the last 5 digit so the number will be sent 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 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">http://asterisk.org.ph</a><br>