<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff size=2>Eh,
I'm thinking I don't like labels very much. They aren't all they are cracked up
to be.</FONT></SPAN></DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff
size=2>Previously, using extensions of the format extension-function, like
2944000-open or 2944000-closed for example, I could break up an extension into
logical units based on function, and it made sense. By exclusively using labels,
everthing is in the one extension and it isn't as easy to read at a glance.
There's also the chance that statements from one section could over-run into
another.</FONT></SPAN></DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff size=2>or...
am I missing something?</FONT></SPAN></DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=839312416-31052006><FONT face=Arial color=#0000ff
size=2>Doug</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Douglas Garstang
<BR><B>Sent:</B> Wednesday, May 31, 2006 10:06 AM<BR><B>To:</B> 'Asterisk
Users Mailing List - Non-Commercial Discussion'<BR><B>Subject:</B> Explicit
Dialplan Exit<BR><BR></FONT></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff size=2>So,
I've kind of converted my dialplan from:</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten =>
custcare,1,GotoIfTime(8:00-17:00|mon-fri|*|*?acd_one_queue,custcare-open,1)<BR>exten
=> custcare,2,Goto(custcare-closed,1)</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare-open,1....</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare-open,99....</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare-closed,1....</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare-closed,99....</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006>to:</SPAN></DIV>
<DIV><SPAN
class=417265915-31052006></SPAN> </DIV></FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=417265915-31052006>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten =>
custcare,1,GotoIfTime(8:00-17:00|mon-fri|*|*?custcare_open)<BR>exten =>
custcare,n,Goto(custcare-closed,1)</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare,n(open_start),...</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006></SPAN><SPAN
class=417265915-31052006><FONT face=Arial color=#0000ff size=2><SPAN
class=417265915-31052006><FONT face=Arial color=#0000ff size=2>exten =>
custcare,n...</FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=417265915-31052006></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare,n(closed_start)...</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>exten => custcare,n...</FONT></SPAN></DIV>
<DIV><SPAN
class=417265915-31052006></SPAN> </DIV></FONT></SPAN></DIV></SPAN></DIV></FONT></SPAN></DIV></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2>Doug.</FONT></SPAN></DIV>
<DIV><SPAN class=417265915-31052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff
size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>