[Asterisk-java-users] Problems with the GetVar action
Brought to you by:
srt
From: Mattias M. <ma...@wx...> - 2006-01-20 08:49:38
|
Hi! =20 As a new user of both Asterisk and asterisk-java I'm having a bit of trouble retrieving variables using the GetVarAction. As I am using an older version of Asterisk (v1.0.7) and found out by looking in the API, and at the voip-info.org wiki, that global variables cannot be retrieved in versions older than 1.2, but what I am trying to do is retrieving a local channel variable as such: =20 . . . =20 GetVarAction getvar_action =3D new GetVarAction(channel, "CALLERIDNUM"); action_response =3D manager.sendAction(getvar_action); =20 . . . =20 I do however get a timeout on the response no matter what variable I try to retrieve. =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 even this one was I able to retrieve from the GetVarAction in asterisk-java. =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 channel-specific variables? =20 Thanks in advance! =20 // Mattias Malmquist |