[asterisk-users] Set(X=10|g) vs Set(GLOBAL(X)=10)

Stefan Wintermeyer stefan.wintermeyer at amooma.de
Fri Jan 19 13:28:45 MST 2007


Hi,

show application Set says:
---cut---
   Set(name1=value1|name2=value2|..[|options])
[...]
     g - Set variable globally instead of on the channel
---cut---

But someone told me that the proper way is to use Set(GLOBAL(X)=10).

Is "Set(X=10|g)" somewhat deprecated or not? I know that both run  
fine on 1.4 but I'd like to know which one is better to be sure to be  
ready for future upgrades.

   Stefan

--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
     Let's use IT to solve problems and not to create new ones.
           Asterisk? -> http://www.das-asterisk-buch.de




More information about the asterisk-users mailing list