使用变量可以简化拨号方案设置的难度,
如原拨号方案:
exten => 1001,1,Dial(SIP/1001)
exten => 1001,n,VoiceMail(1001)
exten => 1002,1,Dial(SIP/1002)
exten => 1002,n,VoiceMail(1002)
exten => 1003,1,Dial(SIP/1003)
exten => 1003,n,VoiceMail(1003)
exten => 1004,1,Dial(SIP/1004)
exten => 1004,n,VoiceMail(1004)
exten => 1005,1,Dial(SIP/1005)
exten => 1005,n,VoiceMail(1005)
exten => 1006,1,Dial(SIP/1006)
exten => 1006,n,VoiceMail(1006)
exten => 1007,1,Dial(SIP/1007)
exten => 1007,n,VoiceMail(1007)
exten => 1008,1,Dial(SIP/1008)
exten => 1008,n,VoiceMail(1008)
exten => 1009,1,Dial(SIP/1009)
exten => 1009,n,VoiceMail(1009)
简化后方案:
exten => _100X,1,Dial(SIP/${EXTEN})
exten => _100X,n,VoiceMail(${EXTEN})
居然后来才想到,枉费了很多功夫写脚本导入了。。。
阅读(1476) | 评论(0) | 转发(0) |