|
||||||||||
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.InviteServerTransaction
public class InviteServerTransaction
The state machine for INVITE Server Transaction
According to RFC3261 Figure 7: INVITE server transaction
|INVITE |pass INV to TU INVITE V send 100 if TU won't in 200ms send response+-----------+ +--------| |--------+101-199 from TU | | Proceeding| |send response +------->| |<-------+ | | Transport Err. | | Inform TU | |--------------->+ +-----------+ | 300-699 from TU | |2xx from TU | send response | |send response | | +------------------>+ | | INVITE V Timer G fires | send response+-----------+ send response | +--------| |--------+ | | | Completed | | | +------->| |lt&-------+ | +-----------+ | | | | ACK | | | - | +------------------>+ | Timer H fires | V or Transport Err.| +-----------+ Inform TU | | | | | Confirmed | | | | | +-----------+ | | | |Timer I fires | |- | | | V | +-----------+ | | | | | Terminated|<---------------+ | | +-----------+
Constructor Summary | |
---|---|
InviteServerTransaction(TransactionController parent,
boolean isReliable)
Constructor. |
Method Summary | |
---|---|
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 InviteServerTransaction(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 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 |