Re: [Asterisk-java-users] asterisk manager can't get variable values
Brought to you by:
srt
From: <mar...@gm...> - 2006-02-03 19:45:28
|
I think it might a problem with the version of the package net.sf.Asterisk.= . . because when I use the method getAttribue it does not compile,.... 2006/2/3, Jason Wolfe <ja...@cl...>: > > Hello, > > In the dialplan, I set the variable 'accepted=3Dyes' when the user presse= s 1 > and is transfered to extension 1. > > I'm using the following code to try and get variable values from asterisk > in > my java console app using the manager API: > > //**************************************** > > getVarAction =3D new GetVarAction(); > getVarAction.setVariable("accepted"); > Thread.sleep (14000); //wait ten seconds to allow the user to make a > selection > actionResponse =3D managerConnection.sendAction(getVarAction,10000); > > String accepted =3D new String(); > accepted =3D actionResponse.getAttribute("EXTEN"); > System.out.println("accepted=3D" + accepted); > > //**************************************** > > For Any variable I try to get, even the predefined channel variables, I > get > null. Help would be greatly appreciated. > > Jason > > > > ------------------------------------------------------- > 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= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Mar=EDa |