Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Changing the FROM uri on deploy pattern
Author Message
britchey
Brekeke Junior Member


Joined: 21 May 2016
Posts: 7
Location: PA

PostPosted: Tue Sep 05, 2023 1:47 pm    Post subject: Changing the FROM uri on deploy pattern Reply with quote

1. Brekeke Product Name and Version:

2. Java version:

3. OS type and the version:

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

5. Your problem: I am trying to strip characters from the "From" URI. The incoming call is from (example) 1*123*D. My matching pattern is
From=sip:(.+\*)(.+)\*(D)@(.+). I want to change the FROM URI to only deploy the 1*123.

I've tried Deploy pattern From=sip:%1%2@, but it does not work. Any help appreciated.

_________________
britchey
Back to top
View user's profile
britchey
Brekeke Junior Member


Joined: 21 May 2016
Posts: 7
Location: PA

PostPosted: Wed Sep 06, 2023 6:33 am    Post subject: Reply with quote

I was able to get it working using

[$request=^Invite, $getUri(From)=sip:(.+\*)(.+)\*(D)@]

[From/uri = sip:%1%2@ipaddress,$continue=true]

_________________
britchey
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Wed Sep 06, 2023 9:31 pm    Post subject: Reply with quote

Mine is like this.
Matching Patterns
$request = ^INVITE
$getSIPuser(From) = ^(\S+\*\S+)\*\S+
Deploy Patterns
From/uri/user = %1
$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