Sets a variable with the contents of a channel variable from another channel.
ImportVar(newVariable=channel,variable)
Sets the variable
to the value contained
in newVariable in the specified
channel. If variable begins
with "newVariable_", single inheritance is used; if it begins with
"__", unlimited inheritance is used.
; import Caller-ID from channel Zap/1: exten => 123,1,Answer() exten => 123,n,ImportVar(cid=Zap/1,CALLERID)
|
|
|
Internal help for this application in Asterisk 1.4: -= Info about application 'ImportVar' =- [Synopsis] Import a variable from a channel into a new variable [Description] ImportVar(newvar=channelname|variable): This application imports a var iable from the specified channel (as opposed to the current one) and stores it as a variable in the current channel (the channel that is calling this application). Variables created by this application have the same inheri tance properties as those created with the Set application. See the documentat ion for Set for more information. diff output to internal help in Asterisk 1.2: - none - |
See also.
the section called “Set()”