[OpenSIPS-Users] To header : modification when using Dynamic Routing
Julien Chavanton
jc at atlastelecom.com
Mon Jan 11 23:13:31 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100111/2e645fbb/attachment.htm
More information about the Users
mailing list