On 9/19/05, Colin Anderson <[EMAIL PROTECTED]> wrote:
[default]
 
exten => 1,1,Playback(YouPressedOne)
exten => 1,2,Playback(BecauseYouPressed1IWillCallCarol)
exten => 1,3,Goto(first-ivr,s,1)
 
exten => 2,1,Playback(YouPressedTwo)
exten => 2,2,Playback(BecauseYouPressed1IWillCallCarol)
exten => 2,3,Goto(second-ivr,s,1)
 
exten => 3,1,Playback(YouPressedTwo)
exten => 3,2,Playback(BecauseYouPressed3IWillSendYouToVoicemail)
exten => 3,3,Goto(third-ivr,s,1)
 
[first-ivr]
 
exten => s,1,Dial(InsertDialStatementHere)
exten => s,2,Playback(Goodbye)
exten => s,3,Hangup
 
[second-ivr]
 
exten => s,1,Dial(InsertDialStatementHere)
exten => s,2,Playback(Goodbye)
exten => s,3,Hangup
 
[third-ivr]
 
exten => s,1,VoiceMailMain(default)
exten => s,2,Playback(Goodbye)
exten => s,3,Hangup
 
Get it? In a context (which is the name specified in brackets) , the first number in a statement indicates the extension, which Asterisk interprets through a DTMF tone (you press buttons to dial something) or a DID number for inbound calls (in the case of a PRI) and executes statements according to the priority, which is the next number.


In the above example, you have to press 1,2 or 3 before it will tell you that. I was wanting it to tell me before I pressed those numbers.

Can an IAX device be setup so that it appears to be an inbound DID, and if so how can I do that with the IAXy?


--
John
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to