Author |
Message |
britchey Brekeke Junior Member
Joined: 21 May 2016 Posts: 7
Location: PA
|
Posted: Tue Sep 05, 2023 1:47 pm Post subject: Changing the FROM uri on deploy pattern |
|
|
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 |
|
britchey Brekeke Junior Member
Joined: 21 May 2016 Posts: 7
Location: PA
|
Posted: Wed Sep 06, 2023 6:33 am Post subject: |
|
|
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 |
|
Niloc Brekeke Talented
Joined: 19 Sep 2017 Posts: 70
Location: NL
|
Posted: Wed Sep 06, 2023 9:31 pm Post subject: |
|
|
Mine is like this.
Matching Patterns | $request = ^INVITE $getSIPuser(From) = ^(\S+\*\S+)\*\S+
| Deploy Patterns | From/uri/user = %1 $continue = true
|
|
|
Back to top |
|
|