|
MjSip Stack v1.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.zoolu.sip.transaction.Transaction
|
+--org.zoolu.sip.transaction.TransactionServer
|
+--org.zoolu.sip.transaction.InviteTransactionServer
INVITE server transaction as defined in RFC 3261 (Section 17.2.1).
An InviteTransactionServer is responsable to create a new SIP invite
transaction that starts with a INVITE message received by the SipProvider
and ends sending a final response.
The changes of the internal status and the received messages are fired
to the TransactionListener passed to the InviteTransactionServer object.
This implementation of InviteTransactionServer automatically generates
a "100 Trying" response when the INVITE message is received
(as suggested by RFC3261)
| Field Summary | |
static boolean |
AUTO_TRYING
Default behavior for automatically sending 100 Trying on INVITE. |
| Fields inherited from class org.zoolu.sip.transaction.Transaction |
transaction_counter |
| Constructor Summary | |
InviteTransactionServer(SipProvider sip_provider,
InviteTransactionServerListener listener)
Creates a new InviteTransactionServer. |
|
InviteTransactionServer(SipProvider sip_provider,
Message invite,
boolean auto_trying,
InviteTransactionServerListener listener)
Creates a new InviteTransactionServer for the already received INVITE request invite. |
|
InviteTransactionServer(SipProvider sip_provider,
Message invite,
InviteTransactionServerListener listener)
Creates a new InviteTransactionServer for the already received INVITE request invite. |
|
| Method Summary | |
void |
listen()
Starts the InviteTransactionServer. |
void |
onReceivedMessage(SipProvider provider,
Message msg)
Method derived from interface SipListener. |
void |
onTimeout(Timer to)
Method derived from interface TimerListener. |
void |
respondWith(Message resp)
Sends a response message |
void |
setAutoTrying(boolean auto_trying)
Whether automatically sending 100 Trying on INVITE. |
void |
terminate()
Method used to drop an active transaction |
| Methods inherited from class org.zoolu.sip.transaction.TransactionServer |
printLog |
| Methods inherited from class org.zoolu.sip.transaction.Transaction |
getConnectionId, getRequestMessage, getSipProvider, getTransactionId, getTransactionMethod, printException, printWarning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean AUTO_TRYING
| Constructor Detail |
public InviteTransactionServer(SipProvider sip_provider,
InviteTransactionServerListener listener)
public InviteTransactionServer(SipProvider sip_provider,
Message invite,
InviteTransactionServerListener listener)
public InviteTransactionServer(SipProvider sip_provider,
Message invite,
boolean auto_trying,
InviteTransactionServerListener listener)
| Method Detail |
public void setAutoTrying(boolean auto_trying)
public void listen()
listen in class TransactionServerpublic void respondWith(Message resp)
respondWith in class TransactionServer
public void onReceivedMessage(SipProvider provider,
Message msg)
onReceivedMessage in class TransactionServerpublic void onTimeout(Timer to)
onTimeout in class TransactionServerpublic void terminate()
terminate in class TransactionServer
|
MjSip Stack v1.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||