VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
john at quonix.net Guest
|
Posted: Mon Feb 18, 2008 8:04 pm Post subject: [asterisk-users] interactive menu with DTMF tones |
|
|
Before I attempt to program a system like this, I wanted to see if: A)
its possible, and B) its too insanely difficult for a perl developer.
My office building has a dialer on the front door so people can call me
and gain access. The dialer on the door has a full keypad, and
basically just rings through to me, when I answer I can talk to the
person, they talk back, and if I want to let them in I hit 9 on my
phone - and the system unlocks the door.
Here's my dilemma, sometimes people need to get in when I'm not around.
The dialer can follow me, and go to my cell phone - but I dont always
answer that.
So I am wondering if its possible to build an interactive prompt/menu
system so when the dialer rings the number, the interactive system
runs, user must enter an account number, then pass code, and the system
verifies, if everything checks out, the system will then send the 9
tone back through, and the door will open.
Does this sound like something doable? I am very proficient Perl
developer, but need a push in the right direction.
Thanks
John |
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Tue Feb 19, 2008 1:25 am Post subject: [asterisk-users] interactive menu with DTMF tones |
|
|
On Monday 18 February 2008 19:04:54 John Von Essen wrote:
Quote: | Before I attempt to program a system like this, I wanted to see if: A)
its possible, and B) its too insanely difficult for a perl developer.
My office building has a dialer on the front door so people can call me
and gain access. The dialer on the door has a full keypad, and
basically just rings through to me, when I answer I can talk to the
person, they talk back, and if I want to let them in I hit 9 on my
phone - and the system unlocks the door.
Here's my dilemma, sometimes people need to get in when I'm not around.
The dialer can follow me, and go to my cell phone - but I dont always
answer that.
So I am wondering if its possible to build an interactive prompt/menu
system so when the dialer rings the number, the interactive system
runs, user must enter an account number, then pass code, and the system
verifies, if everything checks out, the system will then send the 9
tone back through, and the door will open.
Does this sound like something doable? I am very proficient Perl
developer, but need a push in the right direction.
|
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 |
|
Back to top |
|
|
john at quonix.net Guest
|
Posted: Thu Feb 21, 2008 9:44 am Post subject: [asterisk-users] interactive menu with DTMF tones |
|
|
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:
Quote: |
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
|
|
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Thu Feb 21, 2008 11:58 am Post subject: [asterisk-users] interactive menu with DTMF tones |
|
|
On Thursday 21 February 2008 08:44:11 John Von Essen wrote:
Quote: | 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?
|
Use a Goto:
Goto(s,1) or Goto(menucontext,s,1)
--
Tilghman |
|
Back to top |
|
|
|
|
|
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
|