How to maintain TRANSFER_CONTEXT between Attended Transfers?

I think you will find that the recording doesn’t start until the transfer is completed, and doesn’t include the bit when you say, “Hello, I’m transferring John Smith, from Acme Inc. to you”.

1 Like

Will changing the extensions_custom.conf from using ${CALLERID(num)} to ${REALCALLERIDNUM} fix this issue?

;[mattermost-notify]
-exten   =>       _XX,1,ExecIf($["${EXTENSION_STATE(${EXTEN}@from-internal)}"="NOT_INUSE"]?AGI(/var/lib/asterisk/agi-bin/jabber.sh,${EXTEN},${CALLERID(num)},${UNIQUEID},"${CALLERID(name)}",${CALLFILENAME}))
+exten   =>       _XX,1,ExecIf($["${EXTENSION_STATE(${EXTEN}@from-internal)}"="NOT_INUSE"]?AGI(/var/lib/asterisk/agi-bin/jabber.sh,${EXTEN},${REALCALLERIDNUM},${UNIQUEID},"${CALLERID(name)}",${CALLFILENAME}))
exten   =>       _XX,n,Dial(SIP/${EXTEN},60,t)
-exten   =>       _1XX,1,ExecIf($["${EXTENSION_STATE(${EXTEN}@from-internal)}"="NOT_INUSE"]?AGI(/var/lib/asterisk/agi-bin/jabber.sh,${EXTEN},${CALLERID(num)},${UNIQUEID},"${CALLERID(name)}",${CALLFILENAME}))
+exten   =>       _1XX,1,ExecIf($["${EXTENSION_STATE(${EXTEN}@from-internal)}"="NOT_INUSE"]?AGI(/var/lib/asterisk/agi-bin/jabber.sh,${EXTEN},${REALCALLERIDNUM},${UNIQUEID},"${CALLERID(name)}",${CALLFILENAME}))
exten   =>       _1XX,n,Dial(SIP/${EXTEN},60,t)
...

It is used upstream in the extensions_additional.conf file loaded by FreePBX GitHub - FreePBX/callrecording: Module of FreePBX (Call Recording) :: Provides much of the call recording functionality. · GitHub

It won’t do anything because Asterisk doesn’t reference this file or set those variables. Maybe you are using something that adds includes in the .conf files, and sets such variables, in which case you should use their support channels.

However, I think this code will be executed before the variable could have possibly been associated with the channel on which it is running.