我用 Asterisk 写了简单的拨号计划。这个拨号计划的目标是检查来电的来电显示和特定的挂断:)!

但是这个拨号计划挂断了所有来电显示不同的来电显示。
那我该怎么办? ;(

   [general]
    static=yes
    writeprotect=yes
    autofallthrough=yes
    clearglobalvars=no
    priorityjumping=yes
    include "exten_gvars.inc"

    [macro-queue]
    exten => s, 1, Queue(${ARG1})

    [default]
    exten => s, 1, Answer
    exten => s/9999, 2 ,Hangup
    exten => s, 2, BackGround(welcome)
    exten => s, 3, Macro(queue,operator)

编辑

我将我的拨号计划更改为这个,但它不起作用,两次哔声后来电挂断(我知道这是因为我的拨号计划中有错误)!
    [general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=yes
#include "exten_gvars.inc"

[macro-monitor]
exten => s, 1, MixMonitor(${UNIQUEID}.wav)
exten => s, 2, SetCIDName(${UNIQUEID}#${CALLERIDNAME},a)

[macro-defaultLine]
exten => s, 1, Macro(monitor)
exten => s, 2, Dial(SIP/${ARG1},60,T)

[macro-queue]
exten => s, 1, Macro(monitor)
exten => s, 2, Queue(${ARG1})

[inbound]
exten => _XX, 1, Macro(defaultLine,${EXTEN})

[default]
exten => 123,1,GotoIf($[${CALLERID(num)} = XX]?reject:allow)
exten => 123,n(allow),Answer
exten => 123,n,BackGround(welcome)
exten => 123,n,Macro(queue,operator)
exten => 123,n(reject),BackGround(WTF)
exten => 123,n,Hangup()
include => inbound

最佳答案

这是你的反前女友 Dailplan,假设 xxxxx 是你的前女友号码

exten => 123,1,GotoIf($[${CALLERID(num)} = xxxxx]?reject:allow)
exten => 123,n(allow),Dial(Zap/4)
exten => 123,n,Hangup()
exten => 123,n(reject),Playback(abandon-all-hope)
exten => 123,n,Hangup()

希望这对你有帮助

关于 Asterisk 反前女友拨号计划?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3624458/

10-10 09:38