SV: [Asterisk-java-users] Problems with the GetVar action
Brought to you by:
srt
From: Mattias M. <ma...@wx...> - 2006-01-20 09:20:30
|
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 -----Ursprungligt meddelande----- Fr=E5n: ast...@li... = [mailto:ast...@li...] F=F6r Robert = Krzyminski Skickat: den 20 januari 2006 09:59 Till: ast...@li... =C4mne: Re: [Asterisk-java-users] Problems with the GetVar action Mattias Malmquist napisa=F9(a): > Hi! >=20 > =20 >=20 > As a new user of both Asterisk and asterisk-java I=92m having a bit of = > trouble retrieving variables using the GetVarAction. As I am using an=20 > older version of Asterisk (v1.0.7) and found out by looking in the = API,=20 > and at the voip-info.org wiki, that global variables cannot be = retrieved=20 > in versions older than 1.2, but what I am trying to do is retrieving a = > local channel variable as such: >=20 > =20 >=20 > . >=20 > . >=20 > . >=20 > =20 >=20 > GetVarAction getvar_action =3D new GetVarAction(channel, = =93CALLERIDNUM=94); >=20 > action_response =3D manager.sendAction(getvar_action); >=20 > =20 >=20 > . >=20 > . >=20 > . >=20 > =20 >=20 > I do however get a timeout on the response no matter what variable I = try=20 > to retrieve. >=20 > =20 >=20 > When connecting to the Asterisk manager using telnet and issue actions = > from there, I managed to retrieve only a variable set by myself and = not=20 > even this one was I able to retrieve from the GetVarAction in = asterisk-java. >=20 > =20 >=20 > Am I doing something wrong or am I using a too old version of Asterisk = > for this to work? If so, is there another way to retrieve these=20 > channel-specific variables? >=20 > =20 >=20 > Thanks in advance! >=20 > =20 >=20 > // Mattias Malmquist >=20 Why don't you just update Asterisk? It's the easiest solution, as you=20 know how to retrieve the variables then? cheers! --=20 Robert Krzyminski ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |