Asterisk 13 - extensions.conf包括在指定时间范围时不工作,出了什么问题?

时间:2018-02-10 09:16:04

标签: include asterisk dialplan

版本:Asterisk 13.1.0~dfsg-1.1ubuntu4.1
似乎,包括没有时间范围的工作没有问题 如果指定时间范围“dialplan show 02175XXXXXX1 @ telekom_in”未显示此包括 当时间范围被删除时,所有包括工作正常。  也尝试使用|作为分隔符而不是逗号(asterisk -rvvvvv在拨号重新加载后显示错误) 使用旧版本一切正常,上下文是

[telekom_in]

新版本,无效

exten => 02175XXXXXX1,1,Dial(PJSIP/300&PJSIP/400&PJSIP/100,25,b(CustomHeaders^addheader^10))

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,*,*
include => Voicemail02175XXXXXX1
老版本,工作! - 当其他版本处于活动状态时注释掉

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

这是没有触及的工作内容

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

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

除了新版本

[Voicemail02175XXXXXX1]
exten => 02175XXXXXX1,1,Voicemail(02175XXXXXX1@voicemail,u)
exten => 02175XXXXXX1,n,Hangup()

[ForwardToCellphone]
exten => 02175XXXXXX1,1,Playback(transfer)
exten => 02175XXXXXX1,n,Set(CALLERID(name)=49${CALLERID(num):1})
exten => 02175XXXXXX1,n,Dial(PJSIP/telekom_out_02175XXXXXX1/sip:0172XXXXXX4@tel.t-online.de,30)

为什么我的时间段不起作用? THX

0 个答案:

没有答案