Re: [Asterisk-java-users] asterisk manager can't get variable values
Brought to you by:
srt
From: <mar...@gm...> - 2006-02-04 09:46:24
|
Hi, Jason, I have worked more with the manager_java, not with fastagi, but I think I might try to help you, or I hope so. The code you have just sent does what it should.Visit this page: http://asterisk-java.sourceforge.net/apidocs/net/sf/asterisk/fastagi/comman= d/GetVariableCommand.html see: *getVariable<http://asterisk-java.sourceforge.net/apidocs/net/sf/asterisk/= fastagi/command/GetVariableCommand.html#getVariable%28%29> *() Returns the name of the variable to retrieve. Have you tried witth actions of Manager. If you arer using a version of Asterisk under 1.2...you can set a local variable in the dialplan by using the action SetVarAction, and then getting the value with GetVarAction. Or setting the value in the dialplan and getting it with getvaraction. Getvarction only works with local variables under version 1.2 asterisk , from 1.2 it works also with global variables. I hope this helped you, good luck! |