Corporation Server User Manual

Configuring SIP Applications in sip.xml
SIP Servlets 2-17
Table 2–3 describes the variable values.
The following example evaluates to false.
<pattern>
<and>
<equal>
<var>request.method</var>
<value>MESSAGE</value>
</equal>
<contains>
<var>request.from</var>
<value>tag=1234</value>
</contains>
<equal>
<var>request.uri.host</var>
<value>otherexample.com</value>
</equal>
</and>
</pattern>
The first condition, equal, evaluates to true. The second condition, contains, also
evaluates to true. The third condition ensures that it only serves requests for the
otherexample.com but the request URI host is example.com and then it evaluates
Table 2–3 Variable Values
Variable Value
request.method MESSAGE
request.uri sip:bob@example.com
request.uri.scheme sip
request.uri.user bob
request.uri.host example.com
request.uri.port 5060
request.uri.tel
request.from "Alice" <sip:alice@example.com>;tag=1234
request.from.uri sip:alice@example.com
request.from.uri.scheme sip
request.from.uri.user alice
request.from.uri.host example.com
request.from.uri.port 5060
request.from.display-name Alice
request.to sip:bob@example.com
request.to.uri sip:bob@example.com
request.to.uri.scheme sip
request.to.uri.user bob
request.to.uri.host example.com
request.to.uri.port 5060
request.to.display-name