Include with time range ignores, what is wrong?


#1

Hello Guys,

i have the problem, that my includes with timerange are ignored, i have no idea whats wrong.

same include without timeranges work properly.

thanks for any hints! No idea why wildcards are not displayed correctly in this post.

Version: Asterisk 13.1.0~dfsg-1.1ubuntu4.1

[telekom_in]

;new Version, not working
exten => 021754444441,1,Dial(PJSIP/300&PJSIP/400&PJSIP/100,25,b(CustomHeaders^addheader^10))

;seems, that includes without time are working without problems
;if Time Range is specified “dialplan show 021754444441@telekom_in” not showing this includes
;all includes working fine, when timerange was removed.
; tryed also to use | as separator instead of comma (asterisk -rvvvvv shows error after dialplan reload)
include => ForwardToCellphone,0:01-8:00,,,*
include => ForwardToCellphone,17:00-23:59,mon-thu,,
include => ForwardToCellphone,15:00-23:59,fri,,
include => ForwardToCellphone,00:00-08:00,mon-fri,,
include => ForwardToCellphone,00:00-23:59,sat-sun,,

;working
include => Voicemail021754444441
;new Version end

;old Version, working! - commented out when other Version is active
exten => 021754444441,1,Dial(PJSIP/300&PJSIP/400&PJSIP/100,25,b(CustomHeaders^addheader^10))
exten => 021754444441,1,Voicemail(021754444441@voicemail,u)
exten => 021754444441,n,Hangup()
;old Version end

exten => 021754444442,1,Dial(PJSIP/300&PJSIP/400&PJSIP/100,25,b(CustomHeaders^addheader^20))
exten => 021754444442,n,Voicemail(021754444442@voicemail,u)
exten => 021754444442,n,Hangup()

exten => 021754444443,1,Dial(PJSIP/300&PJSIP/400&PJSIP/100,5,b(CustomHeaders^addheader^30))
exten => 021754444443,n,Hangup()

;addition to new Version
[Voicemail021754444441]
exten => 021754444441,1,Voicemail(021754444441@voicemail,u)
exten => 021754444441,n,Hangup()

[ForwardToCellphone]
exten => 021754444441,1,Playback(transfer)
exten => 021754444441,n,Set(CALLERID(name)=49${CALLERID(num):1})
exten => 021754444441,n,Dial(PJSIP/telekom_out_021754444441/sip:01725555554@tel.t-online.de,30)
;addition to new Version end