我有 1 台服务器 Asterisk 我想将声音文件保存在文件夹中并且我可以保存到文件夹但我无法重命名我想要的文件名当一个呼叫进入服务器时当被调用 wit sip 香奈儿号码 sip 保存到名称文件声音我想要输入代码进入上下文
[voicemenu-custom-1]
include = default
exten = s,1,NoOp(VM_Main)
exten = s,2,Answer()
exten = s,3,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID}-${CALLERID(num)})
exten = s,4,Set(CALLFILENAMES=${REPLACE(CALLFILENAME,*)})
exten = s,5,MixMonitor(${CALLFILENAMES}.wav,bW(2))
exten = s,6,Set(CDR(userfield)=audio:${CALLFILENAMES}.wav)
exten = s,7,AGI(agi://192.168.27.85/customivr)
exten = s,8,GotoIf($[${AGISTATUS} != "SUCCESS"]?ringgroup:hangup)
exten = s,9(ringgroup),Goto(ringroups-custom-1,s,1)
exten = s,10,System(/var/lib/asterisk/scripts/checkrcm.sh ${UNIQUEID}
${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} ${CALLERID(num)})
exten = s,11(hangup),StopMixMonitor()
exten = s,12,Hangup()