Regular Expressions 101

Community Patterns

Regex to Match on Called Party and Modify CNAM on outbound SIP INVITE

0

Regular Expression
PCRE (PHP <7.3)

/
(^[A-Za-z0-9 \"]*)(\<sip:)([\+1]*8004001506)(.*\>.*)
/
gm

Description

Modify existing or blank CNAM portion of SIP URI for specific Called Party to a specific value on outbound SIP INVITE.

Submitted by anonymous - 3 years ago