public interface SipSCSActivity extends SCSActivity
Modifier and Type | Method and Description |
---|---|
void |
forward(Header... headers)
Forwards the request back to the network.
|
void |
forward(URI destination,
Header... headers)
Forwards the request back to the network, but with a new destination address.
|
AddressFactory |
getAddressFactory()
Get the JAIN SIP
AddressFactory object, for creating SIP URIs and
addresses for headers. |
HeaderFactory |
getHeaderFactory()
Get the JAIN SIP
HeaderFactory object, for creating SIP headers to
be used in responses. |
boolean |
isLocalSipURI(SipURI uri)
Determine if a URI is local to this SIS instance.
|
void |
reject(int statusCode,
String reasonPhrase,
Header... headers)
Instruct the SIS to reject the request with an error response.
|
compositionNotFound, compositionSelected, getEvent, getVariable
AddressFactory getAddressFactory()
AddressFactory
object, for creating SIP URIs and
addresses for headers.AddressFactory
instance.HeaderFactory getHeaderFactory()
HeaderFactory
object, for creating SIP headers to
be used in responses.HeaderFactory
instance.boolean isLocalSipURI(SipURI uri)
true if the host and port in the URI match an endpoint that
this SIS instance is listening on, otherwise false
.
void forward(Header... headers)
Route
and Record-Route
will
be ignored.headers
- an optional list of headers to be added to the outgoing request.void forward(URI destination, Header... headers)
Route
and Record-Route
will be ignored.destination
- a new destination URI for the requestheaders
- an optional list of headers to be added to the outgoing request.void reject(int statusCode, String reasonPhrase, Header... headers)
statusCode
- the status code of the response, must be in the range 300-699.reasonPhrase
- the reason phrase, may be null, in which case the default
reason phrase for the status code will be usedheaders
- optional list of headers that will be inserted in the response