
Configuring SIP Applications in sip.xml
2-16 Oracle Communication and Mobility Server Developer’s Guide
Conditions
Table 2–1 lists the operators.
Table 2–2 lists the logical connectors.
Examples
Example 2–10 describes the parts of a request which are referenced with the different
types of variables.
Example 2–10 Referencing Request Elements
MESSAGE sip:bob@example.com SIP/2.0
Call-ID: a2412d22-161b-4cff-b4a5-a4c6c1f70f18
Max-Forwards: 70
User-Agent: Oracle-CallTron/4.5.7.1445
Accept: text/plain
CSeq: 2 MESSAGE
Content-Type: text/plain; charset=UTF-8
Content-Length: 13
Via: SIP/2.0/TCP 10.0.0.20:3094;branch=z9hG4bK-477709c9-c064-4b95-
90bc-7391d0154368.1;rport
Proxy-Authorization: Digest username="alice", realm="example.com",
nonce="MTEzNDQwMzkwMDc3NDJiM2JkY2E1ZmRiY2M4YzBjYzQ2M2VhMTM2NWFlM2Fm",
uri="sip:bob@example.com", qop=auth, nc=00000001, cnonce="443857DE",
response="e5c48d5d2982cf3974260511218a246a",
opaque="4a94690f435b9049b896dce0b6ddb8fe"
The message!
Table 2–1 Operators
Condition Name Description
equal Compares the value of a variable with a literal value and
evaluates to true if the variable is defined and its value equals
that of the literal. Otherwise, the result is false.
exists Takes a variable name and evaluates to true if the variable is
defined, or to false if the variable has not been defined.
contains Returns true if the first argument, a variable, contains the literal
string specified as the second argument.
subdomain of If given a variable denoting a domain name (SIP/SIPS URI host)
or telephone subscriber (tel property of SIP or Tel URLs), and a
literal value, this operator returns true if the variable denotes a
sub domain of the domain given by the literal value.
Table 2–2 Logical Connectors
Logic Description
and Contains a number of conditions and evaluates to true if all of
the contained conditions evaluate to true.
or Contains a number of conditions and evaluates to true if and
only if at least one contained condition evaluates to true.
not Negates the value of the contained condition.
Komentarze do niniejszej Instrukcji