Skip to main content

unassigned in IVR

Posted by moshe on Wed, 08/19/2009

is it possible in IVR when unassigned is selected it should just ignore that key press and keep on with the greeting not hangup since there is already an option for hangup, or maybe if alex chould add a option ignore if the unassigned stands for something else

any advice


Submitted by eeman on Wed, 08/19/2009 Permalink

not possible. its the way asterisk processes dialplan...

basically an ivr looks something like this...

[somecontext]

include => local-extensions-tenant

exten => s,1,Answer

exten => s,n,Ringing

exten => s,n,Wait(5)

exten => s,n(begin),Background(some_recording)

exten => s,n,WaitExten(10)

exten => 1,1,Goto(somewhere,s,1)

exten => 2,1,Goto(somewhereelse,s,1)

exten => i,1,Playback(pbx-invalid)

exten => i,n,Goto(s,begin)

exten => t,1,Goto(s,begin)

while processing Background or WaitExten the applications themselves detect the keypress and send it to the dialplan, the caller has already left that application and now MUST proceed in dialplan. If the extension does not exist (like they pressed #3) the dialplan has no choice but to process it under the invalid extension (i).

Submitted by eeman on Wed, 08/19/2009 Permalink

any keypress, regardless of what you press, takes the call out of Background or WaitEten and send it to that extension. Background does not have any means to ignore digits and if it did can you imagine the impact of saying ignore '3' digits and customers complaining that they can never reach extensions 103 or 130 always saing that extension '10' does not exist?

Submitted by raven on Thu, 08/27/2009 Permalink

I handle this by setting any unused option to repeat the menu. It's easier than thinking.

Submitted by eeman on Thu, 08/27/2009 Permalink

raven: setting invalid -> 'play invalid' does the same thing but first plays 'pbx-invalid' followed by repeating the menu.. faster than setting the other numbers 1 by 1 ;-)