<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Mittwoch, 15. Juli 2009, Omar Mendoza wrote:<br>
&gt; Everything works fine except the strip Nor the rewrite_prefix removes<br>
&gt; anything from the record route(not sure if it should do it) nor from<br>
&gt; the To: Header and the to header IP address remain keeps the Kamailio<br>
&gt; ip address.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hi Omar,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; then many providers request the To: need to math the RURI invite.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>