|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.siprop.v2.stack.sip.transaction.impl.InviteClientTransaction
public class InviteClientTransaction
The state machine for INVITE Client Transaction
According to RFC3261 Figure 5: INVITE client transaction
|INVITE from TU Timer A fires |INVITE sent Reset A, V Timer B fires INVITE sent +-----------+ or Transport Err. +---------| |---------------+inform TU | | Calling | | +-------->| |-------------->| +-----------+ 2xx | | | 2xx to TU | | |1xx | 300-699 +---------------+ |1xx to TU | ACK sent | | | resp. to TU | 1xx V | | 1xx to TU -----------+ | | +---------| | | | | |Proceeding |-------------->| | +-------->| | 2xx | | +-----------+ 2xx to TU | | 300-699 | | | ACK sent, | | | resp. to TU| | | | | NOTE: | 300-699 V | | ACK sent +-----------+Transport Err. | transitions | +---------| |Inform TU | labeled with | | | Completed |-------------->| the event | +-------->| | | over the action | +-----------+ | to take | ˆ | | | | | Timer D fires | +--------------+ | - | | | V | +-----------+ | | | | | Terminated|<--------------+ | | +-----------+
Constructor Summary | |
---|---|
InviteClientTransaction(TransactionController parent,
boolean isReliable)
Constructor. |
Method Summary | |
---|---|
Context |
createACK(Context response,
gov.nist.javax.sip.message.SIPRequest origReq)
create SIP ACK request message from SIP response message and original SIP request messsage |
void |
doProcess(Context context)
Process transaction, if need. |
void |
fireTimer()
The timer is expired, then start expired process |
TransactionController |
getParentTransaction()
Get parent Transaction object of this entry |
TransactionInfo |
getTransactionInfo()
get TransactionInfo. |
TransactionState |
getTransactionState()
Get current transaction status |
TransactionType |
getTransactionType()
Get type of transaction |
boolean |
isTimerExpired(long currentTime)
Check the timer is expired or not. |
void |
onError()
An error is happend, then start error handling process |
void |
setTransactionInfo(TransactionInfo transactionInfo)
set TransactionInfo. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InviteClientTransaction(TransactionController parent, boolean isReliable)
isReliable
- Using reliable transport or not.Method Detail |
---|
public void doProcess(Context context)
TransactionEntry
doProcess
in interface TransactionEntry
public void fireTimer()
TransactionEntry
fireTimer
in interface TransactionEntry
public void onError()
TransactionEntry
onError
in interface TransactionEntry
public boolean isTimerExpired(long currentTime)
TransactionEntry
isTimerExpired
in interface TransactionEntry
currentTime
- Current Time (msec)
public TransactionState getTransactionState()
TransactionEntry
getTransactionState
in interface TransactionEntry
public TransactionType getTransactionType()
TransactionEntry
getTransactionType
in interface TransactionEntry
public TransactionController getParentTransaction()
TransactionEntry
getParentTransaction
in interface TransactionEntry
public Context createACK(Context response, gov.nist.javax.sip.message.SIPRequest origReq) throws SIPropException
response
- SIP response messageorigReq
- the original SIP Request message
SIPropException
public TransactionInfo getTransactionInfo()
TransactionEntry
getTransactionInfo
in interface TransactionEntry
public void setTransactionInfo(TransactionInfo transactionInfo)
TransactionEntry
setTransactionInfo
in interface TransactionEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |