SV: SV: [Asterisk-java-users] Problems with the GetVar action
Brought to you by:
srt
From: Mattias M. <ma...@wx...> - 2006-01-20 10:46:48
|
Stefan, That sounds like a solution to the problem. I should have had the = problems of concurrency in mind, but it slipped. Great to see than = someone here isn't afflicted by the end-of-week-coma, like me. =3D) I am however not sure this will solve my problem since I cannot get any = other variables from the manager than the ones I defined myself. I do = understand that this isn't an asterisk-java problem but if any of you = have any ideas on what the problem might be, I would be grateful. // Mattias Malmquist -----Ursprungligt meddelande----- Fr=E5n: ast...@li... = [mailto:ast...@li...] F=F6r Stefan = Reuter Skickat: den 20 januari 2006 11:14 Till: ast...@li... =C4mne: Re: SV: [Asterisk-java-users] Problems with the GetVar action 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=F1ski schrieb: > Mattias Malmquist napisa=F9(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.. > but it's the only thing that I can think of (I'm a newbie:)) >=20 > Wish you luck! >=20 |