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. Here's my conf: exten => s,n,NoOp("Here's Count") exten => s,n,NoOp(${COUNT}) ;123,n,Set(COUNT=$[${COUNT} - 1]) exten => s,n,GotoIf($[${COUNT} = 4]?33,1:44,1 ) exten => 1,1,goto(tech-support,s,1) exten => 2,1,goto(sales,s,1) exten => 3,1,goto(cust-service,s,1) exten => 100,1,goto(wilson,s,1) exten => 102,1,goto(sales,s,1) exten => i,1,Playback(invalid) exten => i,n,Playback(please-try-again) exten => i,n,goto(ivr,s,5) exten => i,n,Playback(goodbye) exten => i,n,Hangup exten => 33,1,PlayBack(please-try-again-later) exten => 33,n,PlayBack(call-terminated) exten => 33,n,PlayBack(goodbye) exted => 33,n,HangUp() exten => 44,1,goto(ivr,s,5) exten => t,1,goto(ivr,s,2) exten => h,1,Hangup 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?
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