[asterisk-users] Edit: Asterisk 13.22.0 - "stat" dialplan function clears channel vars?

Stefan Viljoen viljoens at verishare.co.za
Thu Jul 26 03:11:01 CDT 2018


Sorry, I see I have submitted a testing version of the dialplan fragment.

Actual extension 7777 is:

;listen to recording
exten=>7777,1,Answer()
exten=>7777,n,NoOp(Requesting File ${recfile})
exten=>7777,n,NoOp(Rec file set to ${recfile}) exten=>7777,n,NoOp(Alt file set to ${altfile}) exten=>7777,n,NoOp(Requesting Alt File ${altfile})
exten=>7777,n,Set(__numbertarget=7777)
exten=>7777,n,Set(haveFile=${STAT(e,${recfile}.gsm)})
exten=>7777,n,NoOp(Original File Exist ${haveFile}) exten=>7777,n,GotoIf($["${haveFile}" = "1"]?play) exten=>7777,n,NoOp(rec File not found using alt file)
exten=>7777,n,Set(recfile=${altFile})
exten=>7777,n(play),ControlPlayback(${recfile},20000,6,4,8,5,9)
exten=>7777,n,hangup()

for my previous post.

Thanks!




More information about the asterisk-users mailing list