[OpenSIPS-Users] To header : modification when using Dynamic Routing
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Jan 15 17:52:37 CET 2010
Hi Julien,
OpenSIPS 1.6.1 has the uac_replace_to() function -
http://www.opensips.org/html/docs/modules/devel/uac.html#id22858
So, you can do it in the nice, official way :)
Regards,
Bogda
Julien Chavanton wrote:
> Hi, I have found this, looks like it could work, I will probably test
> it only with the partner having this specific requirement for now.
>
> subst('/^To:.*<sip:[^@]*@[a-zA-Z0-9.]+.*>(.*)$/To: "$rU"
> <sip:$rU@$rd>\1/');
>
>
>
> ------------------------------------------------------------------------
> *From:* users-bounces at lists.opensips.org on behalf of Julien Chavanton
> *Sent:* Mon 11/01/2010 5:08 PM
> *To:* users at lists.opensips.org
> *Subject:* [OpenSIPS-Users] To header : modification when using
> Dynamic Routing
>
> Hi, when using Dynamic Routing, I would like to modify the SIP "To
> header" field to be like the target URI.
>
> I know the SIP RFC state that a SIP proxy should not alter the "To
> header" field, but this is not a problem in this case.
>
> The "To header" field contains prefix that have no meaning for the
> destination, we want to modify it to look like a normal ITU
> internationnal dialing plan.
>
> What is the recommend way of doing it ?
>
> TEXTOPS
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list