public class Proxy extends Registrar
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 |
Proxy()
Costructs a void Proxy
|
|
Proxy(SipProvider provider,
ServerProfile server_profile)
Costructs a new Proxy that acts also as location server for registered users.
|
Modifier and Type | Method and Description |
---|---|
protected SipURI |
getAuthDomainBasedProxyingTarget(GenericURI request_uri)
Gets a new target according to the domain-based forwarding rules.
|
protected SipURI |
getAuthPrefixBasedProxyingTarget(GenericURI request_uri)
Gets a new target according to the authenticated prefix-based forwarding rules.
|
protected SipURI |
getDomainBasedProxyingTarget(GenericURI request_uri)
Gets a new target according to the domain-based forwarding rules.
|
protected SipURI |
getPrefixBasedProxyingTarget(GenericURI request_uri)
Gets a new target according to the prefix-based forwarding rules.
|
protected boolean |
isPhoneNumber(java.lang.String str)
Whether the String is a phone number.
|
static void |
main(java.lang.String[] args)
The main method.
|
void |
processRequestToLocalServer(SipMessage msg)
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 SipMessage |
updateProxyingRequest(SipMessage msg)
Processes the Proxy headers of the request.
|
protected SipMessage |
updateProxyingResponse(SipMessage resp)
Processes the Proxy headers of the response.
|
getTargets, updateRegistration
getLocalDomains, isResponsibleFor, isResponsibleFor, isResponsibleFor, onReceivedMessage, validateRequest
protected Proxy()
public Proxy(SipProvider provider, ServerProfile server_profile)
public void processRequestToLocalServer(SipMessage msg)
processRequestToLocalServer
in class Registrar
public void processRequestToLocalUser(SipMessage msg)
processRequestToLocalUser
in class Registrar
public void processRequestToRemoteUA(SipMessage msg)
processRequestToRemoteUA
in class Registrar
protected SipMessage updateProxyingRequest(SipMessage msg)
public void processResponse(SipMessage resp)
processResponse
in class Registrar
protected SipMessage updateProxyingResponse(SipMessage resp)
protected SipURI getAuthDomainBasedProxyingTarget(GenericURI request_uri)
protected SipURI getDomainBasedProxyingTarget(GenericURI request_uri)
protected SipURI getAuthPrefixBasedProxyingTarget(GenericURI request_uri)
protected SipURI getPrefixBasedProxyingTarget(GenericURI request_uri)
protected boolean isPhoneNumber(java.lang.String str)
public static void main(java.lang.String[] args)