<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18852">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I'd like to put a phone in a special context, where
a test is made on its business hours, then if so, proceed to the normal context
to do whatever it does with outgoing and local calls.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've tried, just to go from one context to the
next: </FONT></DIV>
<DIV><FONT size=2 face=Arial>[specialoutgoing]</FONT></DIV>
<DIV><FONT size=2 face=Arial>exten => _X.,1,noop(This is a special
content)<BR>exten => _X.,n,gotoiftime(....?forbidden,1)</FONT></DIV>
<DIV><FONT size=2 face=Arial>exten =>
_X.,n,goto(outgoing,${CALLERID(dnid)},1)<BR></DIV></FONT>
<DIV><FONT size=2 face=Arial>I use _X. to match anything, but if the call is
allowed, I want to jump back in the [outgoing] context and restart parsing the
dialled number.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>exten =>
_X.,n,goto(outgoing,${CALLERID(dnid)},1)</FONT></DIV>
<DIV><FONT size=2 face=Arial>works only id the dialled extension exists
precicely in outgoing context, not in included contexts, and does not to pattern
matching.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I can't include [outgoing] in [specialoutgoing],
because the number has already been matched by _X.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I don't want to rewrite the whole dialplan in
[specialgoing] or to put the test into the existing contexts.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Leif</FONT></DIV>
<DIV><FONT size=2 face=Arial> </DIV>
<DIV><BR></DIV></FONT></BODY></HTML>