public class StatefulProxy extends Proxy implements TransactionClientListener
Modifier and Type | Field and Description |
---|---|
protected SipProvider |
sip_provider_client
SipProvider for client transactions
|
protected SipProvider |
sip_provider_server
SipProvider for server transactions
|
protected StatefulProxyState |
state
Transactions state
|
as, AUTHENTICATION_SCHEMES, AUTHENTICATION_SERVER_CLASSES, authentication_service, AUTHENTICATION_SERVICE_CLASSES, AUTHENTICATION_SERVICES, location_service, LOCATION_SERVICE_CLASSES, LOCATION_SERVICES, logger, Loop_Tag, server_profile, sip_provider
Modifier | Constructor and Description |
---|---|
protected |
StatefulProxy()
Costructs a void StatefulProxy
|
|
StatefulProxy(SipProvider provider,
ServerProfile server_profile)
Costructs a new StatefulProxy that acts also as location server for registered users.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The main method.
|
void |
onTransFailureResponse(TransactionClient transaction,
SipMessage resp)
When the TransactionClient goes into the "Completed" state, receiving a failure response
|
void |
onTransProvisionalResponse(TransactionClient transaction,
SipMessage resp)
When the TransactionClient is in "Proceeding" state and receives a new 1xx response
|
void |
onTransSuccessResponse(TransactionClient transaction,
SipMessage resp)
When an TransactionClient goes into the "Terminated" state, receiving a 2xx response
|
void |
onTransTimeout(TransactionClient transaction)
When the TransactionClient goes into the "Terminated" state, caused by transaction timeout
|
protected void |
processFailureResponse(TransactionClient transaction,
SipMessage resp)
Process failure response
|
protected void |
processProvisionalResponse(TransactionClient transaction,
SipMessage resp)
Process provisional response
|
void |
processRequestToLocalServer(SipMessage req)
When a new request is received for the local server
|
void |
processRequestToLocalUser(SipMessage msg)
When a new request message is received for a local user
|
void |
processRequestToRemoteUA(SipMessage msg)
When a new request message is received for a remote UA
|
void |
processResponse(SipMessage resp)
When a new response message is received
|
protected void |
processSuccessResponse(TransactionClient transaction,
SipMessage resp)
Process success response
|
protected void |
processTimeout(TransactionClient transaction)
Process tmeout
|
protected void |
sendStatefulServerResponse(TransactionServer ts,
SipMessage resp)
Sends a server final response
|
getAuthDomainBasedProxyingTarget, getAuthPrefixBasedProxyingTarget, getDomainBasedProxyingTarget, getPrefixBasedProxyingTarget, isPhoneNumber, updateProxyingRequest, updateProxyingResponse
getTargets, updateRegistration
getLocalDomains, isResponsibleFor, isResponsibleFor, isResponsibleFor, onReceivedMessage, validateRequest
protected StatefulProxyState state
protected SipProvider sip_provider_client
protected SipProvider sip_provider_server
protected StatefulProxy()
public StatefulProxy(SipProvider provider, ServerProfile server_profile)
public void processRequestToLocalServer(SipMessage req)
processRequestToLocalServer
in class Proxy
public void processRequestToLocalUser(SipMessage msg)
processRequestToLocalUser
in class Proxy
public void processRequestToRemoteUA(SipMessage msg)
processRequestToRemoteUA
in class Proxy
public void processResponse(SipMessage resp)
processResponse
in class Proxy
protected void sendStatefulServerResponse(TransactionServer ts, SipMessage resp)
protected void processProvisionalResponse(TransactionClient transaction, SipMessage resp)
protected void processFailureResponse(TransactionClient transaction, SipMessage resp)
protected void processSuccessResponse(TransactionClient transaction, SipMessage resp)
protected void processTimeout(TransactionClient transaction)
public void onTransProvisionalResponse(TransactionClient transaction, SipMessage resp)
onTransProvisionalResponse
in interface TransactionClientListener
public void onTransFailureResponse(TransactionClient transaction, SipMessage resp)
onTransFailureResponse
in interface TransactionClientListener
public void onTransSuccessResponse(TransactionClient transaction, SipMessage resp)
onTransSuccessResponse
in interface TransactionClientListener
public void onTransTimeout(TransactionClient transaction)
onTransTimeout
in interface TransactionClientListener
public static void main(java.lang.String[] args)