Exemple #1
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onClosed()).
  */
 public void onDlgByeSuccessResponse(InviteDialog d, int code, String reason, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (listener != null) listener.onCallClosed(this, msg);
 }
Exemple #2
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallReInviteTimeout()).
  */
 public void onDlgReInviteTimeout(InviteDialog d) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (listener != null) listener.onCallReInviteTimeout(this);
 }
Exemple #3
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onClosing()).
  */
 public void onDlgBye(InviteDialog d, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (listener != null) listener.onCallClosing(this, msg);
 }
Exemple #4
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallConfirmed()).
  */
 public void onDlgAck(InviteDialog d, String sdp, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (sdp != null && sdp.length() != 0) remote_sdp = sdp;
   if (listener != null) listener.onCallConfirmed(this, sdp, msg);
 }
Exemple #5
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it.
  */
 public void onDlgReInviteProvisionalResponse(
     InviteDialog d, int code, String reason, String sdp, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (sdp != null && sdp.length() != 0) remote_sdp = sdp;
 }
Exemple #6
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallRedirection()).
  */
 public void onDlgInviteRedirectResponse(
     InviteDialog d, int code, String reason, MultipleHeader contacts, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (listener != null) listener.onCallRedirection(this, reason, contacts.getValues(), msg);
 }
Exemple #7
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallReInviteAccepted()).
  */
 public void onDlgReInviteSuccessResponse(
     InviteDialog d, int code, String reason, String sdp, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (sdp != null && sdp.length() != 0) remote_sdp = sdp;
   if (listener != null) listener.onCallReInviteAccepted(this, sdp, msg);
 }
Exemple #8
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallIncoming()).
  */
 public void onDlgInvite(
     InviteDialog d, NameAddress callee, NameAddress caller, String sdp, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (sdp != null && sdp.length() != 0) remote_sdp = sdp;
   if (listener != null) listener.onCallIncoming(this, callee, caller, sdp, msg);
 }
Exemple #9
0
 /**
  * Inherited from class InviteDialogListener and called by an InviteDialag. Normally you should
  * not use it. Use specific callback methods instead (e.g. onCallRinging()).
  */
 public void onDlgInviteProvisionalResponse(
     InviteDialog d, int code, String reason, String sdp, Message msg) {
   if (d != dialog) {
     printLog("NOT the current dialog", LogLevel.HIGH);
     return;
   }
   if (sdp != null && sdp.length() != 0) remote_sdp = sdp;
   if (code == 180 || code == 183) // modified
   if (listener != null) listener.onCallRinging(this, msg);
 }
Exemple #10
0
 /** Starts a new call, inviting a remote user (<i>callee</i>) */
 public void call(
     String callee, String from, String contact, String sdp, String icsi) { // modified by mandrajg
   printLog("calling " + callee, LogLevel.HIGH);
   if (from == null) from = from_url;
   if (contact == null) contact = contact_url;
   if (sdp != null) local_sdp = sdp;
   dialog = new InviteDialog(sip_provider, this);
   if (local_sdp != null)
     dialog.invite(callee, from, contact, local_sdp, icsi); // modified by mandrajg
   else dialog.inviteWithoutOffer(callee, from, contact);
 }