[asterisk-users] ivr menu not hanging up call

Steve Edwards asterisk.org at sedwards.com
Wed Oct 21 23:41:41 CDT 2009


On Wed, 21 Oct 2009, Landy Landy wrote:

> I am testing an ivr but I'm having problems. The call keeps looping and 
> it doesn't hangup the call after passing three times through the menu.

> When it enters extension 33 it should hangup the call but, if the caller 
> stays on the line the "exten => t,1,goto(ivr,s,2)" takes over and the 
> menu keeps repeating. Should I just remove that t extension?

If this is the actual dialplan...

[snip]

> exten => 33,1,PlayBack(please-try-again-later)
> exten => 33,n,PlayBack(call-terminated)
> exten => 33,n,PlayBack(goodbye)
> exted => 33,n,HangUp()

exted != exten

If this isn't a "cut & paste," a cut & paste from "show dialplan" may shed 
some light.

> exten => s,n,NoOp("Here's Count")
> exten => s,n,NoOp(${COUNT})

Just a suggestion...

There is an application specifically designed to output to the console 
named verbose(). It's more flexible and obvious, rather than relying on a 
"side effect" of noop().

I know "everybody" does it, but it's kind of like using a screwdriver to 
open a can of paint. You can, but there is a tool made just for that 
purpose. (And it has a beer bottle opener on the other end!)

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list