[OpenSIPS-Devel] [ opensips-Patches-3504568 ] URI transformations fail on raw headers or URIs with <>

SourceForge.net noreply at sourceforge.net
Wed Mar 14 19:34:56 CET 2012


Patches item #3504568, was opened at 2012-03-14 11:34
Message generated for change (Settings changed) made by dpacket
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3504568&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: core
>Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dynamic Packet (dpacket)
Assigned to: Nobody/Anonymous (nobody)
Summary: URI transformations fail on raw headers or URIs with <> 

Initial Comment:
Currently, uri.* transformations only operate on perfect URIs similar to "sip:user at host;param=value". Unfortunately, most headers encapsulate the URI inside <>, which makes using the transformations on them tedious at best and involving string manipulation for the script. This patch enhances the uri.* transformations to handle URIs encapsulated with <> like "<sip:1.2.3.4;lr>" or full headers beginning with uri like "<sip:user at opensips.org;transport=udp>;edge=1.2.3.4" . Please apply this patch to allow script writers to more easily extract URI parts from headers or custom headers without the use of in-config string manipulation.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3504568&group_id=232389



More information about the Devel mailing list