Thread: [Asterisk-java-users] Set Global Variable via Manager API
Brought to you by:
srt
From: Gerwin B. <ger...@gm...> - 2005-11-02 10:45:08
|
Hi, is there a way to set a global variable via the Manager API? I use the global variable to enable/disable a number of extensions. Thx, Gerwin |
From: Stefan R. <sr...@re...> - 2005-11-02 11:17:23
|
Hi, > is there a way to set a global variable via the Manager API? > I use the global variable to enable/disable a number of extensions. Which version of Asterisk do you use? At least with the 1.2 series it should be possible to use the SetVarAction whith channel set to null to set a global variable. The comments javadoc are not really up to date. If you try it, please tell us about success or failure. =3DStefan |
From: Gerwin B. <ger...@gm...> - 2005-11-02 11:22:17
|
Hi, currently I'm using 1.0.9 GB* On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: > Hi, > >> is there a way to set a global variable via the Manager API? >> I use the global variable to enable/disable a number of extensions. > > Which version of Asterisk do you use? > At least with the 1.2 series it should be possible to use the > SetVarAction whith channel set to null to set a global variable. > The comments javadoc are not really up to date. > > If you try it, please tell us about success or failure. > > =Stefan > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-11-02 11:33:57
|
> Hi, > > currently I'm using 1.0.9 I just had a look at the Asterisk sources. Its kinda strange: 1.0.x does only support local (channel) variables for both GetVar and Set= Var 1.2 supports local and global variables for GetVar but local variables only for SetVar. Maybe its time for another asterisk patch ;) =3DStefan > > > On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: > >> Hi, >> >>> is there a way to set a global variable via the Manager API? >>> I use the global variable to enable/disable a number of extensions. >> >> Which version of Asterisk do you use? >> At least with the 1.2 series it should be possible to use the >> SetVarAction whith channel set to null to set a global variable. >> The comments javadoc are not really up to date. >> >> If you try it, please tell us about success or failure. >> >> =3DStefan >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gerwin B. <ger...@gm...> - 2005-11-02 12:11:21
|
Found this bug report: http://bugs.digium.com/view.php?id=5429 Seems to be the problem? Gerwin On Nov 2, 2005, at 12:33 PM, Stefan Reuter wrote: >> Hi, >> >> currently I'm using 1.0.9 > > I just had a look at the Asterisk sources. > > Its kinda strange: > 1.0.x does only support local (channel) variables for both GetVar > and SetVar > 1.2 supports local and global variables for GetVar but local variables > only for SetVar. > > Maybe its time for another asterisk patch ;) > > =Stefan > >> >> >> On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: >> >>> Hi, >>> >>>> is there a way to set a global variable via the Manager API? >>>> I use the global variable to enable/disable a number of extensions. >>> >>> Which version of Asterisk do you use? >>> At least with the 1.2 series it should be possible to use the >>> SetVarAction whith channel set to null to set a global variable. >>> The comments javadoc are not really up to date. >>> >>> If you try it, please tell us about success or failure. >>> >>> =Stefan >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very >>> own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>> geronimo.php >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-11-02 12:20:27
|
> Found this bug report: > http://bugs.digium.com/view.php?id=3D5429 > > Seems to be the problem? yep, that's the patch that fixed the GetVar action. I just posted http://bugs.digium.com/view.php?id=3D5571 to fix the SetVar. We'll see if we get positive feedback ;) =3DStefan > > > Gerwin > > On Nov 2, 2005, at 12:33 PM, Stefan Reuter wrote: > >>> Hi, >>> >>> currently I'm using 1.0.9 >> >> I just had a look at the Asterisk sources. >> >> Its kinda strange: >> 1.0.x does only support local (channel) variables for both GetVar >> and SetVar >> 1.2 supports local and global variables for GetVar but local variables >> only for SetVar. >> >> Maybe its time for another asterisk patch ;) >> >> =3DStefan >> >>> >>> >>> On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: >>> >>>> Hi, >>>> >>>>> is there a way to set a global variable via the Manager API? >>>>> I use the global variable to enable/disable a number of extensions. >>>> >>>> Which version of Asterisk do you use? >>>> At least with the 1.2 series it should be possible to use the >>>> SetVarAction whith channel set to null to set a global variable. >>>> The comments javadoc are not really up to date. >>>> >>>> If you try it, please tell us about success or failure. >>>> >>>> =3DStefan >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Tame your development challenges with Apache's Geronimo App Server. >>>> Download >>>> it for free - -and be entered to win a 42" plasma tv or your very >>>> own >>>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>>> geronimo.php >>>> _______________________________________________ >>>> Asterisk-java-users mailing list >>>> Ast...@li... >>>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Stefan R. <sr...@re...> - 2005-11-08 11:41:25
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Reuter schrieb: > I just posted > http://bugs.digium.com/view.php?id=5571 > to fix the SetVar. That patch has been accepted by digium. So when using latest CVS-HEAD of Asterisk the channel property of the SetVarAction is optional. To set a global variable only set the variable and value properties of SetVarAction and leave channel empty. I just updated Asterisk-Java's javadoc and added a convenience constructor to SetVarAction that takes a variable and value. =Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDcI7TTUZ7XZofpgURAq4LAKDAiWtVNpahbdpELxeUYll6Q+zv7QCgh9aF am3AIWHrbzVVTWbGHuv8gng= =1tGM -----END PGP SIGNATURE----- |
From: Gerwin B. <ger...@gm...> - 2005-11-08 11:47:47
|
Great, thanks very much. Gerwin On Nov 8, 2005, at 12:41 PM, Stefan Reuter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Stefan Reuter schrieb: >> I just posted >> http://bugs.digium.com/view.php?id=5571 >> to fix the SetVar. > > That patch has been accepted by digium. > So when using latest CVS-HEAD of Asterisk the channel property of the > SetVarAction is optional. To set a global variable only set the > variable > and value properties of SetVarAction and leave channel empty. > I just updated Asterisk-Java's javadoc and added a convenience > constructor to SetVarAction that takes a variable and value. > > =Stefan > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: GnuPT 2.7.2 > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDcI7TTUZ7XZofpgURAq4LAKDAiWtVNpahbdpELxeUYll6Q+zv7QCgh9aF > am3AIWHrbzVVTWbGHuv8gng= > =1tGM > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |