Here is a small section from my dialplan for a voice menu...
[voicemenu-custom-7] exten = s,1,NoOp(Advanced) exten = s,n,Answer() exten =
s,n,Set(TIMEOUT(response)=3) exten = s,n,Background(record/Advanced) exten =
s,n,WaitExten(1) ;
; Whatever else you may want to do with other digits presses
; exten = 9,1,Authenticate(/whitelist,da,4) exten =
9,n,DISA(no-password,DLPN_DefaultDialPlan,${CALLERID(all)}) exten =
t,1,Goto(queues,400,1) exten = i,1,Playback(pbx-invalid) exten =
i,n,Goto(s,2)
What this does is...
Answer the line
Set a timeout of 3 seconds
Play back a message (press 9 for an outside line, for example) you have to
record this yourself, or use one of the pre-canned ones).
Wait for the caller to press a key.
If caller presses 9. Then ask for a PIN. PIN is any "number" in the
"whitelist" that is 4 digits in length. Use the astlinux GUI to add this to
the whitelist.
If authentication OK, then use Asterisk's build-in DISA. Any number entered
by the caller will be routed through the DLPN_DefaultDialPlan context.
If Timeout (caller does not press any key in 3 seconds) then go somewhere
else (Queue #400 in this example)
If invalid entry (caller presses something other than 9) then playback
invalid choice message and go back to the beginning.
David
On Mon, Dec 14, 2009 at 2:23 PM, Ionel Chila <[email protected]> wrote:
> Anyone with few good configuration examples to setup callback and DISA with
> an Astlinux box?
> Tried several times and something is not working right....
>
> Thanks.....
>
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
>
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].