Hi there,
I'm using the 1.0.0-CI with java 1.6 and a server with a patched astmanproxy
And executing the next code works only with no astmanproxy, why if the
response is the same (event with a new path in astmanproxy to remove the
"Server: localhost")?
String command = "iax2 show peers";
Collection<String> mm = null;
mm = asteriskServer.executeCLICommand(command);
System.out.println(mm.toString());
CommandAction commandAction = new CommandAction(command);
CommandResponse response = (CommandResponse)
asteriskManagerConnection.sendAction(commandAction);
for (String line : response.getResult()) {
System.out.println(line);
}
*with astmanproxy*
action: command
command: iax2 show peers
Response: Follows
Privilege: Command
Name/Username Host Mask Port Status
iax-augcampos/i (Unspecified) (D) 255.255.255.255 0
UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]
--END COMMAND--
Server: localhost
*No astmanproxy* (patched to )
action: command
command: iax2 show peers
Response: Follows
Privilege: Command
Name/Username Host Mask Port Status
iax-augcampos/i (Unspecified) (D) 255.255.255.255 0
UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]
--END COMMAND--
*Log with astmanproxy*
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property 'iax-augcampos/i' to ' (Unspecified)
(D) 255.255.255.255 0 UNKNOWN ' on
org.asteriskjava.manager.response.CommandResponse: no setter. Please
report at http://jira.reucon.org/browse/AJ
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property '1' to 'iax2 peers [0 online, 1 offline,
0 unmonitored]' on org.asteriskjava.manager.response.CommandResponse: no
setter. Please report at http://jira.reucon.org/browse/AJ
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property 'name/username' to '
Host Mask Port Status ' on
org.asteriskjava.manager.response.CommandResponse: no setter. Please
report at http://jira.reucon.org/browse/AJ
[]
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property 'iax-augcampos/i' to ' (Unspecified)
(D) 255.255.255.255 0 UNKNOWN ' on
org.asteriskjava.manager.response.CommandResponse: no setter. Please
report at http://jira.reucon.org/browse/AJ
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property '1' to 'iax2 peers [0 online, 1 offline,
0 unmonitored]' on org.asteriskjava.manager.response.CommandResponse: no
setter. Please report at http://jira.reucon.org/browse/AJ
Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder
setAttributes
WARNING: Unable to set property 'name/username' to '
Host Mask Port Status ' on
org.asteriskjava.manager.response.CommandResponse: no setter. Please
report at http://jira.reucon.org/browse/AJ
*log no astmanproxy*
Name/Username Host Mask Port Status
iax-augcampos/i (Unspecified) (D) 255.255.255.255 0
UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]
[]
Name/Username Host Mask Port Status
iax-augcampos/i (Unspecified) (D) 255.255.255.255 0
UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]
|