I have a prefix, and i remove using the Strip in the DB
INVITE sip:8135553333@192.168.2.77 SIP/2.0 Record-Route: sip:99998135553333@198.168.1.170;lr=on;ftag=as1074edd2 Via: SIP/2.0/UDP 198.168.1.170;branch=z9hG4bKa5b6.ce53.0 Via: SIP/2.0/UDP 198.168.1.180:5060;branch=z9hG4bK292133e9;rport=5060 From: "Omar" sip:5125555555@198.168.1.180;tag=as1074edd2 To: sip:99998135553333@198.168.1.170 Contact: sip:5125555555@198.168.1.180 __________________________ Omar
Everything works fine except the strip Nor the rewrite_prefix removes anything from the record route(not sure if it should do it) nor from the To: Header and the to header IP address remain keeps the Kamailio ip address.
then many providers request the To: need to math the RURI invite.
please let me know if is a Bug. appreciate you point me in the right direction.
Omar
On Jul 15, 2009, at 9:14 AM, Omar Mendoza wrote:
I have a prefix, and i remove using the Strip in the DB
INVITE sip:8135553333@192.168.2.77 SIP/2.0 Record-Route: sip:99998135553333@198.168.1.170;lr=on;ftag=as1074edd2 Via: SIP/2.0/UDP 198.168.1.170;branch=z9hG4bKa5b6.ce53.0 Via: SIP/2.0/UDP 198.168.1.180:5060;branch=z9hG4bK292133e9;rport=5060 From: "Omar" sip:5125555555@198.168.1.180;tag=as1074edd2 To: sip:99998135553333@198.168.1.170 Contact: sip:5125555555@198.168.1.180 __________________________ Omar
On Mittwoch, 15. Juli 2009, Omar Mendoza wrote:
Everything works fine except the strip Nor the rewrite_prefix removes anything from the record route(not sure if it should do it) nor from the To: Header and the to header IP address remain keeps the Kamailio ip address.
Hi Omar,
this is the correct behaviour, the strip parameter in cr just modify the request URI. The To header is not mangled, as this is the original destination. Even if you strip the user to match the user part in R-URI, the To will still contain your IP/ domain of the server.
then many providers request the To: need to math the RURI invite.
You should ask your carriers if they really want you to do this. :) If yes, then you could change the To by some other means, like the functions in the textops module. Use first remove_hf to remove the old one, and then append_hf a new according your requirements.
Henning