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

Iñaki Baz Castillo ibc at aliax.net
Tue Nov 11 19:22:49 CET 2008

2008/11/11 Brett Nemeroff <brett at nemeroff.com>:
> 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.

This is an error in your provider, it shouldn't check the To URI.

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

Maybe you could also replace the To in the ACK?

Iñaki Baz Castillo
<ibc at aliax.net>

More information about the Users mailing list