Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
howto modify To URI
Author Message
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Mon Feb 01, 2021 12:00 pm    Post subject: howto modify To URI Reply with quote

1. Brekeke Product Name and Version:3.x

2. Java version: openjdk 8

3. OS type and the version: ubuntu 16.04 + tomcat + nginxSSL frontend

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

5. Your problem:
I want to modify the toURI copying the first two characters in the fromURI
example:
this is original
From URI To URI
sip:ab100@200.80.20.250 sip:200@200.80.20.250

I want to transform the To URI
sip:ab200@200.80.20.250

thanks
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 241

PostPosted: Mon Feb 01, 2021 2:31 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
From = sip:(..).*@
To = sip:(.*)@
Deploy Patterns
To/uri/user = %1%2
$continue = true
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