Hello all, I'm planning to create a simple Auto-Attendant (IVR Menu) for my home PBX yet all callers from incoming (trunk) calls must only press the extension numbers from the [analog-ext] else will play the "pbx-invalid". How do you do that using the GotoIf() (or probably using the other applications) but will check if the numbers entered belongs to a specific context? Also, how do you implement a condition in your AA context when you want that the 3rd time a caller presses an invalid extension number, it will play a "vm-goodbye" and hangup? Below is a snippet of my dialplan: - - - < s n i p > - - - [aa_menu] exten => 0,1,Answer() exten => 0,2,Background(greetings) exten => 0,n,WaitExten() exten => i,1,Playback(pbx-invalid) exten => i,2,Goto(aa_menu,0,2) exten => i,n,Hangup(3) exten => t,1,Goto(analog-ext,11,1) exten => t,n,Hangup(3) [incoming] ... ... [analog-ext] ... ... [sip-ext] ... ... [other-ext] ... ... - - - < s n i p > - - - Please advice. Thank you in advance. Regards, GNUbie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080127/ae59c25f/attachment.htm
GNUbie wrote:> extension numbers from the [analog-ext] else will play the > "pbx-invalid". How do you do that using the GotoIf() (or probably > using the other applications) but will check if the numbers entered > belongs to a specific context? >Here is the link on how to do IVRs: http://www.voip-info.org/wiki/view/IVR> Also, how do you implement a condition in your AA context when you > want that the 3rd time a caller presses an invalid extension number, > it will play a "vm-goodbye" and hangup?This was covered a few days ago, here is the link: http://lists.digium.com/pipermail/asterisk-users/2008-January/204488.html Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Hello Doug, On Jan 27, 2008 12:55 AM, Doug Lytle <support at drdos.info> wrote:> > Here is the link on how to do IVRs: > > http://www.voip-info.org/wiki/view/IVR >But what about to check if the number entered belongs to a specific context and considered invalid if it belongs to another context? My point here is not to list down all the extension numbers that can receive inbound calls because what if they are 10 or more phones that belongs to that specific context. I just want that inbound calls will go to the members of a specific context and not by listing each extension numbers that belongs to that context. This was covered a few days ago, here is the link:> > http://lists.digium.com/pipermail/asterisk-users/2008-January/204488.html >Thanks for the link. I already got an idea here. Regards, GNUbie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080127/4117b06c/attachment.htm
On Saturday 26 January 2008 20:52:04 GNUbie wrote:> But what about to check if the number entered belongs to a specific context > and considered invalid if it belongs to another context? My point here is > not to list down all the extension numbers that can receive inbound calls > because what if they are 10 or more phones that belongs to that specific > context. I just want that inbound calls will go to the members of a > specific context and not by listing each extension numbers that belongs to > that context.include => specified_context exten => i,1,Background(invalid) exten => i,n,WaitExten -- Tilghman