B.54. ImportVar()

Sets a variable with the contents of a channel variable from another channel.
ImportVar(newVariable=channel,variable)
Sets the variable newVariable to the value contained in variable in the specified channel. If newVariable begins with "_", 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)

Note

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 variable
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 inheritance
properties as those created with the Set application. See the documentation for
Set for more information.
diff output to internal help in Asterisk 1.2:
- none -