I'd like to chime in here since I had an issue needing this, by the way, subst changed the header just FINE.. but subsequent message processing was broken (flood of failed 200OK/ACK on connect followed by far end disconnect).<div>
<br></div><div>Here's my issue, I have customers that dial to me with a prefix indicating an accountcode (this was necessary because of technical limitations on their hardware.). I have opensips removing the accountcode from the RURI and forwarding onto a provider.</div>
<div><br></div><div>When that provider sees the accountcode in the TO header, I get a 400 Bad Request back from them and they reject the call. If I clean up the TO header and remove the accountcode from the URI (ie: make it look like $rU) then it attempts to complete the call but it fails, as I said above, with the 200 OK/ACK flood.</div>
<div><br></div><div>Sorry, not trying to take over your thread. :) But if anyone has any ideas on how I should handle this, I'd be much appreciative. </div><div>-Brett</div><div><br></div><div><br></div><div><div><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 12:12 PM, Iņaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2008/11/11 Robert R <<a href="mailto:rob1485@gmail.com">rob1485@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Hi,<br>
><br>
> What module/function in opensip can be used to modify TO field in the SIP<br>
> message header?<br>
><br>
> I've tried both "replace" and "subst" from TEXTOPS module. Both functions<br>
> create a new TO field. They don't overwrite the existing field.<br>
<br>
</div></div>Why do you want to change the To header? this is anti RFC 3261.<br>
<font color="#888888"><br>
--<br>
Iņaki Baz Castillo<br>
<<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>