Re: SV: [Asterisk-java-users] Problems with the GetVar action
Brought to you by:
srt
From: <be...@mo...> - 2006-01-20 09:54:15
|
Mattias Malmquist napisał(a): > Thanks for the response. > > I do not know if it will actually work in 1.2 as the only thing stated in the description is that reading GLOBAL variables doesn't work in 1.0.7, not local channel variables. > > Sadly, I have no possibility to upgrade Asterisk, at the moment, since the PBX I am developing for relies on a lot of scripts depending on the 1.0.7 and requires a lot of testing before migrating. > > As I earlier stated, I can retrieve a variable by telneting to the manager and issue actions from there. This is however only possible with a user-declared variable and even this does NOT work with asterisk-java GetVarAction. The only thing that happens is a timeout waiting for the response. > > Thankful for more suggestions! > > // Mattias Malmquist Well, then the only thing that comes into my mind is: In the extension that you use in the extensions.conf read the value of the variable that you want and set a new user variable with this value, then you can read it. This is ugly and will work only if you are using one of the extensions.. but it's the only thing that I can think of (I'm a newbie:)) Wish you luck! -- Robert Krzyminski |