include with time-condition does not work

guildo
Joined: Wed 03 of Feb, 2010

Re: include with time-condition does not work

Posted:Sat 06 of Feb, 2010 (23:26 UTC)
Perfect! That works. Thank you very much!
guildo
Joined: Wed 03 of Feb, 2010

include with time-condition does not work

Posted:Wed 03 of Feb, 2010 (23:19 UTC)
Hello,

I'm just starting with asterisk 1.6 on my ubuntu 9.10 host and I have a problem using time-controlled includes in the dialplan.
I'm using the following simple code:

[default]

include => daytime|09:00-17:00|mon-fri|*|*
include => voicemail       

[daytime]
exten => 2001,1,Answer()
exten => 2001,2,NoOp(daytime)
exten => 2001,3,Playback(hello-world)
exten => 2001,4,Hangup()

[voicemail]
exten => 2001,1,VoiceMail(2001,u)

When doing a "dialplan reload" I get the following error message:

[Feb  3 23:08:44] WARNING[10343]: pbx.c:9499 ast_context_verify_includes: Context 'default' tries to include nonexistent context 'daytime|09:00-17:00|mon-fri|*|*'

Without the time-condition " |09:00-23:40|mon-fri|*|* " there is no problem.


Can anybody help?
guildo