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

SourceForge.net noreply at sourceforge.net
Fri Mar 16 11:57:20 CET 2012


Patches item #3504568, was opened at 2012-03-14 11:34
Message generated for change (Comment added) made by vladut-paiu
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: Closed
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.

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

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-03-16 03:57

Message:
Hello,

You can already have this functionality, by first using the nameaddr
transformation to get the actual URI, and then using the URI
transformation.

Regards,
Vlad

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

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