#209 URI transformations fail on raw headers or URIs with <>

trunk
closed
nobody
core (47)
5
2012-03-16
2012-03-14
No

Currently, uri.* transformations only operate on perfect URIs similar to "sip:user@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@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.

Discussion

  • Dynamic Packet

    Dynamic Packet - 2012-03-14
    • labels: --> core
    • milestone: --> trunk
     
  • Vladut-Stefan Paiu

    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

     
  • Vladut-Stefan Paiu

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks