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

Eric Wieling eric at fnords.org
Mon Nov 1 07:34:21 MST 2004


Michael Rowley wrote:
> Hello,
> 
> Trying to rewrite my dialplan, and it is a little complex.  But my 
> extensions.conf redirection works, but the referred to contexts result 
> in "invalid extension"  Please help...  I have the extension set to 's' 
> currently, but originally it was 6044.  The change didn't make any 
> difference.  Still receive the invalid extension message.
> 
> Michael
> 
> ------------------------
> 
> 
> [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)

Only when you forget to put the correct parameters on Goto.  The least 
line above says "go to the extension named "afterhours" with priority 1"



More information about the asterisk-users mailing list