Asterisk:重写 set Caller id if number is "number" 和 multiple conditions

Asterisk: rewrite set Caller id if number is "number" and multiple conditions

我需要重写来电显示:这段代码似乎可以工作 但我想将其设置为多个条件(例如,如果数字为 1005,则重写为 383838,如果数字为 1006,则重写为 848481,等等) 有人知道怎么做吗?

exten => _X.,1,Gotoif($[${CALLERID(num)}=1004]?2)
exten => _X.,2,SET(CALLERID(all)=My company<1234489>)

在拨号方案中使用来电显示匹配。

exten => _X./_1005,1,SET(CALLERID(all)=My company<1234489>)
exten => _X./_1006,1,SET(CALLERID(all)=My company<848481>)

exten => _X.,2,Noop(doing something for all)

见页尾: https://wiki.asterisk.org/wiki/display/AST/Pattern+Matching