Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Strip Characters in Dial plan
Author Message
locious
Brekeke Newbie


Joined: 15 Jan 2021
Posts: 2

PostPosted: Fri Jan 15, 2021 4:19 pm    Post subject: Strip Characters in Dial plan Reply with quote

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.
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Fri Jan 15, 2021 11:16 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
From = sip:.(\d+)\*.(\d+)\*.(\d+)@
Deploy Patterns
From/uri/user = %1%2%3
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1