Brekeke SIP Server, Version 3.5.2.8
2. Java version:
1.6.0_45
3. OS type and the version:
Linux centos 6.6
4. UA (phone), gateway or other hardware/software involved:
doesn't matter
5. Your problem: How to reach
I need to modify FROM URI with IP address from which INVITE was send.
Right now We are receiving INVITEs from specific IP addresses ex. 10.10.10.10, 10.10.10.11, 10.10.10.12
But in FROM URI there is different ip address than from it was send.
For example:
We received INVITE from IP 10.10.10.10,
But From URI contains different IP than source:
From: <sip:555342639191@192.168.0.10:5062;user=phone>;tag=bbdb2b7c5s
And now we need to change From URI with source IP address:
From: <sip:555342639191@10.10.10.10:5062;user=phone>;tag=bbdb2b7c5s
It can be done with Dial Plan Preliminary, I've created rules as below:
Matching Patterns:
$request=^INVITE
$addr=10.10.10.1[0-2]
From=<sip:(.+)@(.+)>(.+)
$addr=(.+)
But as I assume this rule will match all IP addresses - and I need to do this only for specific IPsDeploy Patterns:
From=<sip:%1@%4>%3
$replaceuri=true
Thanks in advance for any hint.