[asterisk-users] interactive menu with DTMF tones

John Von Essen john at quonix.net
Thu Feb 21 08:44:11 CST 2008


This may be a dumb question, but I have never done menus, how do I link 
the below up to my phone number? For example, right now I route calls 
to the SIP phone like so:

[ipcomms]
include = default
exten => 2155551212, 1, Dial(SIP/6000,20,tr)

where ipcomms is my context from sip.conf for origination, and 6000 is 
my sip phone. So how do I connect that 215 number to the below menu 
system?

Thanks
John

On Feb 19, 2008, at 1:25 AM, Tilghman Lesher wrote:
>
> extensions.conf:
> exten => s,1,Answer
> exten => s,n,Read(account,account-prompt)
> exten => s,n,Read(passcode,passcode-prompt)
> exten => s,n,GotoIf(${ODBC_LOOKUP(${account},${passcode})}?granted)
> exten => s,n,Playback(denied)
> exten => s,n,Hangup
> exten => s,n(granted),SendDTMF(123456789)
> exten => s,n,Hangup
>
> func_odbc.conf:
> [LOOKUP]
> dsn=mysql-asterisk
> read=SELECT COUNT(*) FROM passcode_table WHERE account='${ARG1}' AND
> passcode='${ARG2}'
>
> -- 
> Tilghman
>
> _______________________________________________
> -- 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
>




More information about the asterisk-users mailing list