Olá pessoal Alguem tem ideia, porque o executeCliCommand sempre executa: [There are no voicemail users currently defined]
Estou querendo o comando "show hints". Já tentei praticamente todos os cmd da lista: http://www.voip-info.org/wiki-Asterisk+CLI Eis o código: import java.util.List; import org.asteriskjava.live.AsteriskServer; import org.asteriskjava.live.AsteriskChannel; import org.asteriskjava.live.AsteriskQueue; import org.asteriskjava.live.MeetMeRoom; import org.asteriskjava.live.DefaultAsteriskServer; import org.asteriskjava.live.ManagerCommunicationException; import org.asteriskjava.live.MeetMeUser; public class Live { private AsteriskServer asteriskServer; public Live() { asteriskServer = new DefaultAsteriskServer( Constantes.ASTERISK_SERVER, Constantes.ASTERISK_USER, Constantes.ASTERISK_PASSWORD); } public void run() throws ManagerCommunicationException { List lista = asteriskServer.executeCliCommand("show hints"); System.out.println("LISTA:" + lista); } public static void main(String[] args) throws Exception { Live helloLive = new Live(); helloLive.run(); } }
_______________________________________________ 2 a 4 de Dezembro - IPComm 2008 Com presença de engenheiros da Digium e Jon "maddog" Hall. http://www.ipcomm2008.com.br Compre uma camiseta da AsteriskBrasil.org! http://www.voipmania.com.br Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br _______________________________________________ Lista de discussões AsteriskBrasil.org [email protected] http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

