[Asterisk-java-users] Question about commandAction 'iax2 show peer'
Brought to you by:
srt
From: Bruno K. <kon...@wa...> - 2007-07-31 10:14:06
|
Hello, I am using latest release of Asterisk-java and Asterisk 1.4. I am trying to use managerConnection.sendAction(action) where is action is : CommandAction action = new CommandAction("iax2 show peer 804"); 804 is an extension using a Zoiper phone. The response I get is containing response='Follows' but nothing seems to follow. Launching the command through the CLI gives a correct result. Can someone explain the behavior? Am I missing something? For information, my more general goal is to try to establish the type of channel given an extension. For example, suppose I have an extension 804, I would like to try 'sip show peer 804', if it fails then 'iax2 show peer 804'. Is is a good method or can I make it better? Thanks for your help, Bruno Konik |