[Asterisk-Users] goto() results in invalid extension
Matt Riddell
matt.riddell at sineapps.com
Mon Nov 1 15:29:45 MST 2004
Michael Rowley wrote:
> Yeah, yeah, rtfm, I know... :)
>
> This is after several editions. The original was trying to refer to the
> incoming DID of 6044, so was programatically correct at
> Goto(afterhours,6044,1) Plus, the GotoifTime's should work. Actually,
> the afterhours should work, if I have an extension of 'afterhours' in
> the current context. I didn't notice this until you pointed it out...
> but it was correct in previous revisions... and I was tyring to test it
> during the week, when the previous Goto's should have taken
> precidence... and they _all_ failed.
>
> Any reason why the rest should give me 'invalid extension'?
>
>>> 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)
It shouldn't make a difference, but you are altering terminators half
way through the line...i.e. try
exten => 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours|s|1)
--
Cheers,
Matt Riddell
_______________________________________________
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
More information about the asterisk-users
mailing list