Hi all,
i am trying to get the status of a peer using sipShowPeerAction. But
unfortunately i am not able to get a PeerEntryEvent.
Here is what i did:
public void run() throws
IOException,
AuthenticationFailedException,
TimeoutException
{
managerConnection.login();
managerConnection.addEventListener(this);
SipShowPeerAction sipShowPeerAction = new SipShowPeerAction("999");
managerConnection.sendAction(sipShowPeerAction);
}
public void onManagerEvent(ManagerEvent event)
{
.........
.........
.........
if (event instanceof PeerEntryEvent)
{
System.out.println(((PeerEntryEvent)event).getStatus());
}
.........
..........
.........
}
Is there something i am missing
thx!!!
|