HMR rewrite R-URI in REGISTER message
Hello all,
I would like to ask, how to rewrite Request-URI in REGISTER message. Goal is to rewrite domain name in the RURI to the IP address of sip-interface on ACME (on $LOCAL_IP)
I want change this REGISTER message:
REGISTER sip:domain.sk SIP/2.0
Via: SIP/2.0/UDP 10.10.10.15:65476;branch=z9hG4bK-106372-1-0;rport
To: "421905801000" <sip:421905801000@10.10.10.10>
From: "421905801000" <sip:421905801000@10.10.10.10>;tag=1
Call-ID: 1-106372@10.10.10.15
CSeq: 1 REGISTER
Contact: <sip:421905801000@10.10.10.15:65476>
Max-Forwards: 70
Expires: 3600
Content-Length: 0
To this one, as following:
REGISTER sip:10.10.10.10 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.15:65476;branch=z9hG4bK-106541-8-0;rport
To: "421905801007" <sip:421905801007@10.10.10.10>
From: "421905801007" <sip:421905801007@10.10.10.10>;tag=8
Call-ID: 8-106541@10.10.10.15
CSeq: 1 REGISTER
Contact: <sip:421905801007@10.10.10.15:65476>
Max-Forwards: 70
Expires: 3600