Does anyone know how to pass variables into a channel.
I.e. I have an incomming CAPI channel, the user enters some numbers (Job number for example) which are stored via ‘Read($VAR,audiofile,digits)’, then based on the entered number, dials the appropriate internal extension (Person who owns that job for example) (I.e. Entered number does not equal extension).
When i issue the Dial, a new channel is generated, but i want the channel variables collected and stored in the incomming CAPI channel to be passed/available in the new SIP channel from the Dial before bridging.
I am using ‘Set’ in my dial plan, but that only enables me to set channel variables local to that channel. I need to get the variables im setting into the new Dial SIP channel i am going to bridge to.
How does Set with ‘_’ or ‘__’ work regarding inheritance???
I’ll give SIPAddHeader a go as i am truing the get the variables into Dial(SIP/255).
Also what is the D() tag, can’t find anything on this???
Thank you everyone for your comments. Thank you.
Depending on your version, such are explained in either README.variables or channelvariables.txt in the doc/ directory. Always good to read documents in that directory.