[OpenSIPS-Users] modify TO field in the SIP message header

Brett Nemeroff brett at nemeroff.com
Tue Nov 11 19:20:12 CET 2008


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).
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.

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.

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.
-Brett



On Tue, Nov 11, 2008 at 12:12 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 2008/11/11 Robert R <rob1485 at gmail.com>:
> > Hi,
> >
> > What module/function in opensip can be used to modify TO field in the SIP
> > message header?
> >
> > I've tried both "replace" and "subst" from TEXTOPS module. Both functions
> > create a new TO field. They don't overwrite the existing field.
>
> Why do you want to change the To header? this is anti RFC 3261.
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081111/326b860a/attachment.htm 


More information about the Users mailing list