MjSip Stack
v1.6

org.zoolu.sip.dialog
Class ExtendedInviteDialog

java.lang.Object
  |
  +--org.zoolu.sip.dialog.DialogInfo
        |
        +--org.zoolu.sip.dialog.Dialog
              |
              +--org.zoolu.sip.dialog.InviteDialog
                    |
                    +--org.zoolu.sip.dialog.ExtendedInviteDialog
All Implemented Interfaces:
AckTransactionServerListener, InviteTransactionServerListener, SipProviderListener, TransactionClientListener, TransactionServerListener

public class ExtendedInviteDialog
extends InviteDialog

Class ExtendedInviteDialog can be used to manage extended invite dialogs.

An ExtendedInviteDialog allows the user:
- to handle authentication
- to handle refer/notify
- to capture all methods within the dialog


Fields inherited from class org.zoolu.sip.dialog.InviteDialog
D_ACCEPTED, D_BYED, D_BYEING, D_CALL, D_CLOSE, D_INIT, D_INVITED, D_INVITING, D_ReACCEPTED, D_REFUSED, D_ReINVITED, D_ReINVITING, D_ReREFUSED, D_ReWAITING, D_WAITING
 
Fields inherited from class org.zoolu.sip.dialog.Dialog
dialog_id, dialog_sqn, log, sip_provider, status, UAC, UAS
 
Constructor Summary
ExtendedInviteDialog(SipProvider provider, ExtendedInviteDialogListener listener)
          Creates a new ExtendedInviteDialog.
ExtendedInviteDialog(SipProvider provider, java.lang.String username, java.lang.String realm, java.lang.String passwd, ExtendedInviteDialogListener listener)
          Creates a new ExtendedInviteDialog.
 
Method Summary
 void acceptRefer(Message req)
          Accept a REFER
 void notify(int code, java.lang.String reason)
          Sends a new NOTIFY within the dialog
 void notify(java.lang.String sipfragment)
          Sends a new NOTIFY within the dialog
 void onReceivedMessage(SipProvider provider, Message msg)
          Inherited from class SipProviderListener.
 void onTransFailureResponse(TransactionClient tc, Message msg)
          Inherited from TransactionClientListener.
 void onTransSuccessResponse(TransactionClient t, Message msg)
          Inherited from TransactionClientListener.
 void onTransTimeout(TransactionClient t)
          Inherited from TransactionClientListener.
protected  void printLog(java.lang.String str, int level)
          Adds a new string to the default Log
 void refer(NameAddress refer_to)
          Sends a new REFER within the dialog
 void refer(NameAddress refer_to, NameAddress referred_by)
          Sends a new REFER within the dialog
 void refuseRefer(Message req)
          Refuse a REFER
 void request(Message req)
          Sends a new request within the dialog
 void respond(Message resp)
          Responds with resp
 
Methods inherited from class org.zoolu.sip.dialog.InviteDialog
accept, ackWithAnswer, ackWithAnswer, bye, bye, cancel, cancel, getInviteMessage, getStatus, invite, invite, inviteWithoutOffer, inviteWithoutOffer, isConfirmed, isEarly, isSessionActive, isTerminated, listen, onTransAckTimeout, onTransFailureAck, onTransProvisionalResponse, onTransRequest, redirect, refuse, refuse, reInvite, reInvite, reInviteWithoutOffer, reInviteWithoutOffer, respond, ring
 
Methods inherited from class org.zoolu.sip.dialog.Dialog
changeStatus, getDialogID, getSipProvider, printException, printWarning, statusIs, update, verifyStatus, verifyThat
 
Methods inherited from class org.zoolu.sip.dialog.DialogInfo
getCallID, getLocalContact, getLocalCSeq, getLocalName, getLocalTag, getRemoteContact, getRemoteCSeq, getRemoteName, getRemoteTag, getRoute, incLocalCSeq, incRemoteCSeq, setCallID, setLocalContact, setLocalCSeq, setLocalName, setLocalTag, setRemoteContact, setRemoteCSeq, setRemoteName, setRemoteTag, setRoute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedInviteDialog

public ExtendedInviteDialog(SipProvider provider,
                            ExtendedInviteDialogListener listener)
Creates a new ExtendedInviteDialog.

ExtendedInviteDialog

public ExtendedInviteDialog(SipProvider provider,
                            java.lang.String username,
                            java.lang.String realm,
                            java.lang.String passwd,
                            ExtendedInviteDialogListener listener)
Creates a new ExtendedInviteDialog.
Method Detail

request

public void request(Message req)
Sends a new request within the dialog

refer

public void refer(NameAddress refer_to)
Sends a new REFER within the dialog

refer

public void refer(NameAddress refer_to,
                  NameAddress referred_by)
Sends a new REFER within the dialog

notify

public void notify(int code,
                   java.lang.String reason)
Sends a new NOTIFY within the dialog

notify

public void notify(java.lang.String sipfragment)
Sends a new NOTIFY within the dialog

respond

public void respond(Message resp)
Responds with resp
Overrides:
respond in class InviteDialog

acceptRefer

public void acceptRefer(Message req)
Accept a REFER

refuseRefer

public void refuseRefer(Message req)
Refuse a REFER

onReceivedMessage

public void onReceivedMessage(SipProvider provider,
                              Message msg)
Inherited from class SipProviderListener.
Overrides:
onReceivedMessage in class InviteDialog

onTransFailureResponse

public void onTransFailureResponse(TransactionClient tc,
                                   Message msg)
Inherited from TransactionClientListener. When the TransactionClientListener goes into the "Completed" state, receiving a failure response
Overrides:
onTransFailureResponse in class InviteDialog

onTransSuccessResponse

public void onTransSuccessResponse(TransactionClient t,
                                   Message msg)
Inherited from TransactionClientListener. When an TransactionClientListener goes into the "Terminated" state, receiving a 2xx response
Overrides:
onTransSuccessResponse in class InviteDialog

onTransTimeout

public void onTransTimeout(TransactionClient t)
Inherited from TransactionClientListener. When the TransactionClient goes into the "Terminated" state, caused by transaction timeout
Overrides:
onTransTimeout in class InviteDialog

printLog

protected void printLog(java.lang.String str,
                        int level)
Adds a new string to the default Log
Overrides:
printLog in class InviteDialog

MjSip Stack
v1.6