Exemple #1
0
 /**
  * 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();
   }
 }
 public void busy() {
   refuse(486, SipResponses.reasonOf(486)); // modified	
 }
 /**
  * Refuses the incoming call. This method should be called when the InviteDialog is in D_INVITED
  * or D_ReINVITED state
  */
 public void refuse() {
   printLog("inside refuse()", LogLevel.MEDIUM);
   // refuse(480,"Temporarily Unavailable");
   // refuse(603,"Decline");
   refuse(403, SipResponses.reasonOf(403));
 }
Exemple #4
0
 /** Refuses the incoming call */
 public void refuse() {
   if (dialog != null) dialog.refuse();
 }