Call variables not being read in a dynamic feature?

From what I’m reading , using two underscores should allow me to pull this variable later in the call even when using a dynamic feature. But in this case the variable MIXMONITOR_FILENAME is blank. Is this to be expected? (Asterisk 13.24.0)

Have incoming call vars set before answer…

The following is a macro called by a dynamic feature to start recording (dialing *5), but the

MIXMONITOR_FILENAME ends up being blank?
exten => s,1,NoOp(Starting Recording - MONITOR_FILENAME is ${MIXMONITOR_FILENAME})
exten => s,n,MixMonitor(${MIXMONITOR_FILENAME},a)

Inheritance only works when a channel is being newly created. You can still read the variable on the other channel, using IMPORT().

1 Like

Ahh thanks david! I’ll tinker with passing the channel in the dynamic feature