Internet Communications Using SIP : Delivering VoIP and Multimedia Services With Session Initiation Protocol {2Nd Ed.}

(Steven Felgate) #1
Table 7.2 CPL Tag Summary
TAG DESCRIPTION
cpl Begins the CPL script
incoming Defines server operation for an incoming call
outgoing Defines server operation for an outgoing call
location Defines a URI location
lookup Defines action based on result of lookup
remove-location Removes a URI location from a set
proxy Causes call to be forwarded (proxied) to the set of locations
specified
redirect Causes call to be redirected to the set of locations specified
reject Causes call to be rejected
mail Causes an e-mail notification to be sent to the specified
e-mail address
log Causes the server to log the specified information about
the call
subaction Defines a subaction, which can then be referenced in the
script using the subtag
sub Causes server to execute the defined subaction script
language-switch Choices or decision points based on language
address-switch Choices or decision points based on address (Fromheader)
string-switch Choices or decision points based on a string
time-switch Choices or decision points based on time of day
priority-switch Choices or decision points based on priority of request
(Priorityheader)
ancillary Unused—available for future extensions

CPL has switches defined for address, string, time, language, and priority.
Each of these has a number of attributes, including fields and subfields. The
matching rules include is, contains, and subdomain-of. The complete set
of switches listing the matching conditions, fields, and subfields is shown in
Table 7.3.

144 Chapter 7

Free download pdf