Setting variables to MASTER_CHANNEL

Hi,

I am using a call file that looks like this:

Channel:Local/18005551212@callout_call_donor
MaxRetries: 1
RetryTime: 60
WaitTime: 60
Context: callout_donation
Extension: s
Priority: 1
Set:__SNUM=17185551111
Set:__DNUM=180055512212
Set:__CURRENCY=GBP
Set:__DONATION_AMOUNT=1
Set:__DONATION_ID=1234

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?

TIA.

Dovid

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.