0

想知道是否有人可以帮助我目前我只接受 3 个 cvv 号码,我需要将其更改为 4,但我无法在网上找到任何如何在此声明中放置范围的地方。

exten => s,n,GotoIf($[${LEN(${vrCC_CCV})}=3]?wait:cc_ccvinv)

Visa/万事达卡可以使用 3 位数字,但美国运通卡需要卡正面的四位数字。

任何帮助将是巨大的。

4

1 回答 1

0

与任何其他语言星号一样,在表达式中支持 AND/OR。

https://www.voip-info.org/asterisk-cmd-gotoif/

Example 2


; Are the first three digits of the returned value of ${ENUM} are
;  either SIP or IAX?  If not,  we ignore and pass to normal
;  dialing path at priority 4.
;
exten => _011X.,2,GotoIf($[$["${ENUM:0:3}" = "SIP"] | $["${ENUM:0:3}" = "IAX"]]?3:4)

有关拨号方案中表达式的更多信息

https://www.voip-info.org/asterisk-expressions/

于 2020-08-18T19:05:08.440 回答