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:$...@$rd>\1/');
________________________________
From: [email protected] on behalf of Julien Chavanton
Sent: Mon 11/01/2010 5:08 PM
To: [email protected]
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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users