Summary:ASTERISK-06573: small fix to be able to set independent PEER channel variables in Dial at answer time
Reporter:Moises Silva (moy)Labels:
Date Opened:2006-03-20 10:09:12.000-0600Date Closed:2006-04-05 12:43:26
Versions:Frequency of
Environment:Attachments:( 0) asterisk-1.2.5-set-peervariables.patch
( 1) asterisk-trunk-set-peervariables.patch
Description:You can initialize PEER channel variables by setting PEERVARIABLES before calling Dial(). PEERVARIABLES must be set to a list of key=value pairs separated by "!" like this:

exten => 123,1,Set(PEERVARIABLES=var1=value1!var2=value2!other=onemore)
exten => 123,2,Dial(blah...)

so when the other channel answers the variables are set.
Comments:By: Joshua C. Colp (jcolp) 2006-03-20 10:56:52.000-0600

Please in the future make new features against SVN trunk instead of a release, or the 1.2 branch. A release will not be modified, and the 1.2 branch will only be modified to include bug fixes. As such I have updated your patch to trunk and fixed it to get rid of a compiler error.

By: Moises Silva (moy) 2006-03-20 11:15:17.000-0600

im very sorry joshnet, pardon my ignorance and lack of intuition. Will not happend again. I will fix the other 3 patches i have uploaded right now.


By: Joshua C. Colp (jcolp) 2006-03-20 11:21:03.000-0600

That's absolutely fine! Sorry if I came across harsh. As for your other patches, depending on how complex they are you may not need to modify them at all.

By: Olle Johansson (oej) 2006-04-05 12:43:04

This can already be done by prefixing the variable name with an underscore.