/** * Termiante the call. This method should be called when the InviteDialog is in D_CALL state * * <p>Increments the Cseq, moves to state D_BYEING, and creates new BYE TransactionClient */ public void bye() { printLog("inside bye()", LogLevel.MEDIUM); if (statusIs(D_CALL)) { Message bye = MessageFactory.createByeRequest(this); bye(bye); } }
/** * Closes an ongoing or incoming/outgoing call * * <p>It trys to fires refuse(), cancel(), and bye() methods */ public void hangup() { if (RtpStreamSender.isAudioPlay()) { RtpStreamSender.stopAndCleanup(); } if (dialog != null) { // try dialog.refuse(), cancel(), and bye() // methods.. dialog.refuse(); dialog.cancel(); dialog.bye(); } }
/** Close the ongoing call */ public void bye() { if (dialog != null) dialog.bye(); }