[Asterisk-Users] Outbound paging dialplan example?

Patrick Friedel pf at publicsafetynet.us
Tue Mar 14 11:50:53 MST 2006


Due to changes at the office, I'm finally getting around to setting up 
an AA to deal with incoming calls.  One of the big changes is that we're 
dropping the old alphanumeric pager and will just send pages to our 
phones.  I've got the outbound greeting message working in a test 
context no problem right now, but I'm kind of stuck on how to capture a 
DTMF sequence from a user and doing anything with it.

 Right now the pertinent DP features look like this:

exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,2
exten => s,5,Background(greeting)

exten => 1,1,Voicemail(u100) ; Press 1 to leave a message.

exten => 2,1,Voicemail(u6003) ; Press 2 to send an emergency page

exten => t,1,Dial(SIP/person,30,t) ; Ring my extension on timeout

Obviously extension 2 needs to be changed, right now it just leaves a 
message in my mailbox.  I'm figuring I'll add a new message that says 
"Please enter your callback number, followed by the pound sign." and put 
that in as a Background() message.  The tricky bit that I can't figure 
out (without sample dialplans in voip-info) is how to capture the DTMF 
the caller provides and send it out via a System() call to an external 
application to page the oncall person.  As the oncall person will 
conceivably change on a regular basis, we can't just hand it out to 
customers, unfortunately/thankfully.  Thanks for any assistance!



More information about the asterisk-users mailing list