I don't want X-MyVar header to be passed to Caller, so I have to export the variable.
But
when CHANNEL_HANGUP_COMPLETE fires, the variable variable_myvar present only in the outbound B leg. Look like my export did not work.
Note that I have some upstream exports from A leg to B leg in normal XML dialplan and they're all fine.
Below is my fs_cli log: 192.168.1.100 is my FS.
Dialplan: sofia/external/400@192.168.1.100:5060 Action export(myvar=${sip_rh_X-MyVar})
2017-08-10 17:27:29.958572 [NOTICE] switch_core_session.c:2913 Execute export(myvar=${sip_rh_X-MyVar})
EXECUTE sofia/external/400@192.168.1.100:5060 export(myvar=598c35116ee949.25824485)
2017-08-10 17:27:29.958572 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [myvar]=[598c35116ee949.25824485]Not sure what I'm missing in this case.
Any help would be appreciated.
rgds,
Loi Dang