Cisco Cisco Expressway Maintenance Manual

Page of 391
regex="<regular 
expression>" 
replace="<string>"
Specifies the way in which a location matching the regular expression is to be changed.
source-url-for-
message="<string>"
Replaces the From header (source alias) with the specified string. 
source-url-for-
message-
regex="<regular 
expression>"
together with
source-url-for-
message-
replace="<string>"
Replaces any From header (source alias) that matches the regular expression with the 
specified replacement string. If there are multiple From headers (applies to H.323 only) then 
any From headers that do not match are left unchanged. 
If the source URL of a From header is modified, any corresponding display name is also modified to match the 
username part of the modified source URL.
Rule-Switch
This extension to CPL is provided to simplify Call Policy scripts that need to make decisions based on both the source 
and destination of the call. A 
taa:rule-switch
 can contain any number of rules that are tested in sequence; as soon 
as a match is found the CPL within that rule element is executed.
Each rule must take one of the following forms:
 
<taa:rule-switch>
 
  <taa:rule origin="<regular expression>" destination="<regular expression>" message-regex="<regular 
expression>">
 
  <taa:rule authenticated-origin="<regular expression>" destination="<regular expression>" message-
regex="<regular expression>">
 
  <taa:rule unauthenticated-origin="<regular expression>" destination="<regular expression>" message-
regex="<regular expression>">
 
  <taa:rule registered-origin="<regular expression>" destination="<regular expression>" message-
regex="<regular expression>">
 
  <taa:rule originating-user="<regular expression>" destination="<regular expression>" message-
regex="<regular expression>">
 
  <taa:rule originating-zone="<regular expression>" destination="<regular expression>" message-
regex="<regular expression>">
 
</taa:rule-switch> 
The meaning of the various 
origin
 selectors is as described in the 
 section.
The 
message-regex
 parameter allows a regular expression to be matched against the entire incoming SIP message.
Note that any rule containing a message-regex parameter will never match an H.323 call.
Proxy
On executing a proxy node the Expressway attempts to forward the call to the locations specified in the current 
location set. If multiple entries are in the location set then this results in a forked call. If the current location set is 
empty the call is forwarded to its original destination.
The proxy node supports the following optional parameters:
258
Cisco Expressway Administrator Guide
Reference Material