[asterisk-users] Error trying to add context: Context 'internal' tries to include nonexistent context 'nighttime|12:30-8:00|mon-fri|*|*'

Tilghman Lesher tlesher at digium.com
Fri Jun 18 11:01:11 CDT 2010


On Friday 18 June 2010 09:49:39 Warren Selby wrote:
> On Fri, Jun 18, 2010 at 7:44 AM, Aksel Celasun <aksel at abacus-it.no> wrote:
> >  Minor edit on the include => nighttime|12:30-8:00|mon-fri|*|*
> >
> > Correct now.
>
> This isn't how you do time based checks in asterisk.  Lookup the
> application "GotoIfTime".

Actually, it is an old method that still works, but as Warren mentioned, you
should endeavor to switch to using GotoIfTime, as there's a nasty race
condition inherent in using timed includes.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list