Strip Characters in Dial plan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
locious
Posts: 2
Joined: Fri Jan 15, 2021 4:07 pm

Strip Characters in Dial plan

Post by locious »

1. Brekeke Product Name and Version: SIP Server 3.9.5.8

2. Java version: openjdk 11.0.5

3. OS type and the version: Windows Server 2016

4. UA (phone), gateway or other hardware/software involved: SPOK

5. Your problem: How can I strip characters in the from header in the dial plan?

Here is the from header I'm working with: From: INPT212_1 Patient <sip:a300*r212*b1@domain.com

Basically I want to remove the "a", "r", "b" from the URI (Highlighted above in red) before deployed.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

[Matching Patterns]
$request = ^INVITE
From = sip:.(\d+)\*.(\d+)\*.(\d+)@

[Deploy Patterns]
From/uri/user = %1%2%3
Post Reply