Set( )


Set( ) Sends

 Set(   n=value   ) 

Sets the variable n to the specified value . If the variable name is prefixed with _ , single inheritance is assumed. If the variable name is prefixed with _ _ , infinite inheritance is assumed. Inheritance is used when you want the outgoing channel to inherit the variable from the dialplan.

Variables set with this application are valid only in the current channel. Use the SetGlobalVar( ) application to set global variables.

 ; set a variable called DIALTIME, then use it  exten => 123,1,SetVar(DIALTIME=20)  exten => 123,1,Dial(Zap/4/5551212,,${DIALTIME}) 

See Also

SetGlobalVar( ) , README.variables



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net