Ask caller to approve Call Recordiing

As I just want to check if the caller disagrees with recording the call, this would work at the end of extensions_custom.conf?

[from-trunk-recordrefusalcheck]
exten => recordcheck,n,GotoIf($["${CALLTYPE}" = "internal"]?from-trunk)
exten => recordcheck,n,ExecIf($["${CALLTYPE}" = "external"]?Read(recordRefusal,custom/record_for_QA.wav,1,,1,3))
exten => recordcheck,n,ExecIf($["${CALLTYPE}" = "external" | "${recordRefusal}" = "" ]?Set(ARG1=force)
exten => recordcheck,n,ExecIf($["${CALLTYPE}" = "external" | "${recordRefusal}" = "1" ]?Set(ARG1=no)
exten => recordcheck,n,Goto(from-trunk)

I guess it should be fine for now to use the variables @dickson used in his example. Or it won’t work this way? For sure it could break in the future.