[asterisk-users] Add PinCode on my dialplan
Sam Govind
govoiper at gmail.com
Tue Sep 20 23:42:59 CDT 2011
DISA and DB based Auth could be an overkill.
Kyle showed the very simplistic dial plan if Dial-out pin is common for the
whole system.
See application *Authenticate(password[,options[,maxdigits[,prompt]]] *and
if Voicemail PIN are required to be used use application
*MAuthenticate([mailbox][@context][,options]
*
Regards,
- Sammy
On Wed, Sep 21, 2011 at 8:32 AM, Kyle Sexton <ks at mocker.org> wrote:
> 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
>
>
>
> --
> _____________________________________________________________________
> -- 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/20110921/4b8e3d40/attachment.htm>
More information about the asterisk-users
mailing list