[AsteriskBrasil] ASTERISK-JAVA executeCliCommand

Pablo Câmara pscamara em gmail.com
Quinta Outubro 30 19:27:07 BRST 2008


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();
    }
}
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20081030/2bb62e43/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil