Re: SV: [Asterisk-java-users] Problems with the GetVar action
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-01-20 10:13:50
|
Mattias, regarding the timeout you experience: Do you send the GetVarAction from the event dispatching thread? If yes, please run it in a new Thread to prevent a deadlock. For more information on this topic see http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 You should be able to receive the same information via Asterisk-Java that you get via telnet. =3DStefan Robert Krzymi=C5=84ski schrieb: > Mattias Malmquist napisa=C5=82(a): >=20 >> 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 >=20 >=20 > 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. >=20 > This is ugly and will work only if you are using one of the extensions.= =2E > but it's the only thing that I can think of (I'm a newbie:)) >=20 > Wish you luck! >=20 |