Oracle Server E10293-02 Benutzerhandbuch

Seite von 108
Configuring SIP Applications in sip.xml
SIP Servlets  2-15
Creating Rules Using the Request Object Structure
The request object model enables you to define rules for processing SIP requests. This 
section describes the object model and the predicates for building the rules.
The Request object contains many sub objects, for example SipURI which extends the 
URI object.
The request object contains the following elements:
method: The method of the request is represented as String.
uri: The URI object of the request object, such as SipURI or a TelURI.
from: The From header address represented as Address.
to: The To header address represented as Address.
The URI object consists of the URI scheme.
The SipURI object consists of the following elements:
scheme: The string sip or sips (where sips indicates that TLS should be used).
user: The user part of the SIP or SIPS URI. If the SIP address is 
sip:alice@example.com
, then request.uri.user will return alice.
host: The host part of the SIP or SIPS URI. If the SIP address is 
sip:alice@example.com
, then request.uri.host will return 
example.com
.
port: The SIP URI port. If it is not present, then the default value for UDP and TCP 
is 5060 and TLS is 5061.
tel: Returns the user part of the SIP or SIPS URI if the parameter user is set to 
phone for the URI. The initial visual separators as + and - are stripped away. For 
example, if the SIP URI is sip:+12345@example.com;user=phone, then the 
request.uri.tel
 would return 12345.
param.name: The value of the SipURI parameter with the name name. For example, 
given the following request URI: INVITE 
sip:23479234@oracle.com;user=phone SIP/2.0
, the 
request.uri.param.user will return phone.
The TelURL consists of the following elements:
scheme: The string, tel.
tel: The tel URL subscriber name.
param.name: the value of the SipURI parameter with the name name.
Address consists of the following elements:
uri: The URI object
display-name: The To or From display name of the header.