예제 #1
0
 /**
  * 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);
   }
 }
예제 #2
0
파일: Call.java 프로젝트: EQ4/sipdroid-pro
 /**
  * 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();
   }
 }
예제 #3
0
파일: Call.java 프로젝트: EQ4/sipdroid-pro
 /** Close the ongoing call */
 public void bye() {
   if (dialog != null) dialog.bye();
 }