Setting variables to MASTER_CHANNEL


I am using a call file that looks like this:

MaxRetries: 1
RetryTime: 60
WaitTime: 60
Context: callout_donation
Extension: s
Priority: 1

In order to use any of the variables in context callout_donation I need to use MASTER_CHANNEL which is fine. As per the documents if I then do a Set(MASTER_CHANNEL(FOO)=123) I should be able to get the value of ${FOO} in the master channel. If I do say DumpChan() then I do not see FOO. Is this a bug or am I doing something wrong?



I believe the master channel will be the ;1 side of the local channel. If the ;2 side is bridged to an answered channel, the ;1 side will be optimised out and the channel running the donation context will be the real channel that was bridged to the local channel.

Where are you calling Set(MASTER_CHANNEL…, as I would expect variables set by the ;2 side, on the ;1 side, to be transferred to the bridged channel during the optimisation.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.