This works until I try to use the variable to play the confirmation. If I explicitly call the announcement by name it works fine. Any ides?
[grps-custom]
exten => _RG-601-.,1,Macro(dial,60,M(confirm^temp/${UNIQUEID}^^601)m(default)t,${EXTEN:7})
The confirmation announcement doesn’t play when I pick up the call, and I can’t press one to confirm it. It works fine if I just use an announcement(i.e confirm^temp/getname2^^601)
The odd thing is that using the variable works fine in the playback step exten => s,5,Playback(temp/${UNIQUEID})
Here is the full code (you can ignore the chmod step I added that thinking permissions were an issue):
#test ring group and name recording
[custom-getname2]
exten => s,1,Playback(‘en/vm-rec-name’)
exten => s,2,Record(temp/getname2:wav)
exten => s,3,System(/bin/mv /var/lib/asterisk/sounds/temp/getname2.wav /var/lib/asterisk/sounds/temp/${UNIQUEID}.wav)
exten => s,3,System(/bin/chmod 777 /var/lib/asterisk/sounds/temp/${UNIQUEID}.wav)
exten => s,4,Playback(‘en/thank-you-cooperation’)
exten => s,5,Playback(temp/${UNIQUEID})
exten => s,6,Playback(‘en/pls-stay-on-line’)
exten => s,7,Goto(ext-group-custom,601,1)
exten => t,1,Goto(s,1)
exten => i,1,Goto(s,1)
[ext-group-custom]
exten => 601,1,Macro(user-callerid,)
exten => 601,n,GotoIf($[“foo${BLKVM_OVERRIDE}” = “foo”]?skipdb)
exten => 601,n,GotoIf($["${DB(${BLKVM_OVERRIDE})}" = “TRUE”]?skipov)
exten => 601,n(skipdb),Set(__NODEST=)
exten => 601,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 601,n,Set(__BLKVM_BASE=${EXTEN})
exten => 601,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 601,n(skipov),Set(RRNODEST=${NODEST})
exten => 601,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 601,n,Set(RecordMethod=Group)
exten => 601,n,Macro(record-enable,915551234567#-100-101,${RecordMethod})
exten => 601,n,Set(RingGroupMethod=ringall)
exten => 601,n(DIALGRP),Macro(dial-confirm,60,m(default)t,915551234567#-100-101,601)
exten => 601,n,Set(RingGroupMethod=)
exten => 601,n,GotoIf($[“foo${RRNODEST}” != “foo”]?nodest)
exten => 601,n,Set(__NODEST=)
exten => 601,n,dbDel(${BLKVM_OVERRIDE})
exten => 601,n,Goto(app-announcement-3,s,1)
exten => 601,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})
; end of [ext-group-custom]
[grps-custom]
exten => _RG-601-.,1,Macro(dial,60,M(confirm^temp/${UNIQUEID}^^601)m(default)t,${EXTEN:7})
; end of [grps-custom]