org.lastbamboo.common.sip.proxy.stateless
Class UnregisteredUriForwarder
java.lang.Object
org.lastbamboo.common.sip.proxy.stateless.UnregisteredUriForwarder
- All Implemented Interfaces:
- SipRequestForwarder
public class UnregisteredUriForwarder
- extends Object
- implements SipRequestForwarder
This class is responsible for forwarding messages to URIs we do not have
registration data for.
|
Constructor Summary |
UnregisteredUriForwarder(LocationService locationService,
org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer,
org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory,
SipRegistrar registrar)
Creates a new class for forwarding URIs we don't have registration data
for. |
|
Method Summary |
void |
forwardSipRequest(org.lastbamboo.common.sip.stack.message.Invite request)
Forwards the SIP request to the appropriate target. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnregisteredUriForwarder
public UnregisteredUriForwarder(LocationService locationService,
org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer,
org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory,
SipRegistrar registrar)
- Creates a new class for forwarding URIs we don't have registration data
for.
- Parameters:
locationService - The SIP location service for handling requests
this proxy has no registration data for.transportLayer - The transport layer for sending messages.uriUtils - Utilities for manipulating URIs.messageFactory - Factory for creating responses.registrar - Reference to the registrar for when we have to create
new connections, since the new connections need a reference to the
registrar.
forwardSipRequest
public void forwardSipRequest(org.lastbamboo.common.sip.stack.message.Invite request)
- Description copied from interface:
SipRequestForwarder
- Forwards the SIP request to the appropriate target.
- Specified by:
forwardSipRequest in interface SipRequestForwarder
- Parameters:
request - The request to forward.
Copyright © 2013 LittleShoot. All Rights Reserved.