Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] authentication number at the end of the num


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pdhales at optusnet.co...
Guest





PostPosted: Wed Mar 12, 2008 1:47 am    Post subject: [asterisk-users] authentication number at the end of the num Reply with quote

The Authenticate application is pretty good for this sort of thing...

PaulH
On Wed, 2008-03-12 at 14:22 +0800, Mark Quitoriano wrote:
Quote:
Hi,

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.

This my dialplan to get the authorization code

AUTH=12345

exten => _9.,1,Answer()
exten => _9.,n,Set(CHECKER=${EXTEN:-5})
exten => _9.,n,GotoIF("$[{CHECKER}" != "${AUTH}"]?die)

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

exten => _9.,n(die),Hangup()


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.


Thanks!

--
Regards,
Mark Quitoriano
http://asterisk.org.ph
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services