[asterisk-users] Add PinCode on my dialplan
Kyle Sexton
ks at mocker.org
Tue Sep 20 22:32:45 CDT 2011
Something like this should work:
exten => _011.,1,Answer
exten => _011.,n,Wait(1)
exten => _011.,n,Read(password,enter-password,5)
exten => _011.,n,GotoIf($[${password} = 12345]?5:9)
exten => _011.,n,NoOp(Matched _9011 - CheckRec-InternationalCall)
exten => _011.,n,Dial(SIP/+${EXTEN:3}@outbound)
exten => _011.,n,Hangup
exten => _011.,n,Playback(invalid)
exten => _011.,n,Hangup
Could be cleaned up (the GotoIf isn't very descriptive about where it's going), but it's a starting point.
On Sep 20, 2011, at 8:34 AM, Malvin Rito wrote:
> Hi List,
> I currently have a asterisk server running used for dialing-out for IDD but I want to Put a pincode wherein only users with the right pin code will be allowed to dial IDD. Any sample dialplan you can suggest pls?
>
> Thanks,
> Malvin
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110920/c557cd28/attachment.htm>
More information about the asterisk-users
mailing list