What you want is SetGlobalVar, which sets a variable that is available to any channel.
No, I only want the variable available to the original channel and all connected channels. I don't want it available to any channel.
For example, I want to store the zap channel number into SourceChannel on the incoming call, and make it available to the called agent channel.
Thanks anyway.
Julian.
hth
Jonathan
----- Original Message ----- From: "Asterisk" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[email protected]> Sent: February 24, 2005 10:31 AM Subject: [Asterisk-Users] Inheriting variables
I'm trying to set a channel variable and make it available to another channel:
I thought that if I SetVar(_SomeVariable=SomeValue) or SetVar(__SomeVariable=SomeValue) then SomeVariable would be available in the destination channel.
However __SomeVariable, _SomeVariable and SomeVariable are all blank.
The scenario:
Agents logon to the queue using callbacklogin. From what I can gather the following happens:
1) Incomming Call -> answered, plays welcome message added to Q 2) Local channel calls the agent, plays announcement 3) incomming call connected to agent
where would I be able to retreive the inherited variables ? _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
