/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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; }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** 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); }