我正在运行 Asterisk 11.4.0,并且可以通过 AMI 访问它。如何获取所有扩展的列表(不是对等或用户)?
例如,我有这样的拨号方案:
exten = _XXXX,1,Verbose(Start recording!)
exten = _XXXX,2,NoOp()
exten = _XXXX,3,Set(SCREEN_FILE=${STRFTIME(${EPOCH},,%d.%m.%Y-%H:%M:%S)}_${CALLERID(num)}>${EXTEN}.gsm)
exten = _XXXX,4,MixMonitor(${SCREEN_FILE},b)
exten = _XXXX,5,Dial(SIP/${EXTEN})
exten = _XXXX,6,StopMonitor()
exten = _XXXX,7,Hangup()
exten = _49000030[0-9a-zA-Z.@_/-].,1,Goto(test1,${EXTEN},1)
exten = _49000033[0-9a-zA-Z.@_/-].,1,Goto(test2,${EXTEN},1)
所以,我的扩展名是 _XXXX, 49000030[0-9a-zA-Z.@ /-]。和49000033[0-9a-zA-Z.@ /-]。