[Asterisk-Users] goto() results in invalid extension

Andreas Sikkema andreas.sikkema at ritstele.com
Mon Nov 1 00:14:38 MST 2004


asterisk-users-bounces at lists.digium.com wrote:

> [main]
> 
> ; 6044 main office line.
> 
> exten => 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
> exten => 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
> exten => 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
> exten => 6044,4,Goto(afterhours,1)
> 

Your numbering sequence is incorrect, spot the difference:

> exten => 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
> exten => 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
> exten => 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
> exten => 6044,4,Goto(afterhours,1)

<snip>

> 
> [afterhours]
> 
> exten =>s,3,Answer
> exten =>s,4,NoOp,${CALLERID}
> exten =>s,5,ResponseTimeout(5)
> exten =>s,6,Background(thankyouwmfm)

There's nowhere to go with (afterhours,1). I'd try to Goto(afterhours,s,3)....

-- 
Andreas Sikkema                Rits tele.com
Scheepmakersstraat 11      3011 VH Rotterdam
t: +31 (0)10 2245544    f: +31 (0)10 2245540



More information about the asterisk-users mailing list