Showing results for 
Search instead for 
Did you mean: 

Expressway CPL Script to Change Source URI

Brandon Browning

I am trying to write a CPL script to change the source URI for outgoing video calls originating from Call Manager.  We are running Expressway 14.0.8.  I also looked at some older posts, and those examples didn't seem to work either, and I am not for sure if anything changed in newer versions.  Any help on this would be greatly appreciated.  This is the script I am currently using, but it is not changing the source URI.  I swapped out the actual domains and just noted if I used the internal or external domain.

<?xml version="1.0" encoding="UTF-8"?>
<cpl xsi:schemaLocation="urn:ietf:params:xml:ns:cpl cpl.xsd" xmlns:xsi="" xmlns:taa="" xmlns="urn:ietf:params:xml:ns:cpl">
<taa:rule destination=".*" origin="(.*)@INTERNALDOMAIN.local">
<taa:location source-url-for-message-replace="\1@INTERNALDOMAIN.local" source-url-for-message-regex="(.*)" replace="\1" regex="(.*)" clear="yes">

2 Replies 2

VIP Advisor VIP Advisor
VIP Advisor

the rule looks good, I have the same rule in my notes.
The only thing could be, that the rule is not matching (for whatever reason). One reason could be, that after the domain part, there are further parameters and therefore the rule doesn't match.
E.g. test@internal.domain;transport=tls
In this case, your rule would look something like this: <taa:rule destination=".*" origin="(.*)@INTERNALDOMAIN.local(.*)">

Have you checked a call with the "locate" tool (Maintenance --> Tools --> Locate) in Expressway and see what happens?

What you also can try is to work with Transforms (Configuration --> Dial plan --> Transforms), as they are GUI based an there for quicker and easier to configure, than CPL rules.

Transforms are applied at the very beginning, when a call hits the Expressway.


VIP Advisor VIP Advisor
VIP Advisor

@Brandon Browning any update here? Or just a dead post?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers