A) I think hangup will do just nicely for that.
B) Your first n, Goto(custcare-closed,1) is going to cause you problems, unless you have a custcare-closed somewhere else.

On Wed, 31 May 2006, Douglas Garstang wrote:

So, I've kind of converted my dialplan from:

exten => 
custcare,1,GotoIfTime(8:00-17:00|mon-fri|*|*?acd_one_queue,custcare-open,1)
exten => custcare,2,Goto(custcare-closed,1)

exten => custcare-open,1....
exten => custcare-open,99....

exten => custcare-closed,1....
exten => custcare-closed,99....

to:

exten => custcare,1,GotoIfTime(8:00-17:00|mon-fri|*|*?custcare_open)
exten => custcare,n,Goto(custcare-closed,1)

exten => custcare,n(open_start),...
exten => custcare,n...

exten => custcare,n(closed_start)...
exten => custcare,n...

I don't like having those final statements in each block. Previously, execution 
would implicitly end because there was no priorities left in each extension. 
Now however, everything is in one extension and I can't be sure that execution 
will not continue at the end of a section (open,closed etc). Is there some sort 
of explicit dialplan command that stops execution and immediately ends the 
dialplan? Something like MacroExit() in a macro.... Can't see it in the docs.

Doug.




--
Aaron Daniel
Computer Systems Technician
Sam Houston State University
[EMAIL PROTECTED]
(936) 294-4198
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to