Mattias Malmquist napisał(a):
> Hi!
>
>
>
> 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:
>
>
>
> .
>
> .
>
> .
>
>
>
> GetVarAction getvar_action = new GetVarAction(channel, “CALLERIDNUM”);
>
> action_response = manager.sendAction(getvar_action);
>
>
>
> .
>
> .
>
> .
>
>
>
> I do however get a timeout on the response no matter what variable I try
> to retrieve.
>
>
>
> 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.
>
>
>
> 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?
>
>
>
> Thanks in advance!
>
>
>
> // Mattias Malmquist
>
Why don't you just update Asterisk? It's the easiest solution, as you
know how to retrieve the variables then?
cheers!
--
Robert Krzyminski
|