Greetings, 

In my SBC i usually have to do operations on P-Asserted-Identity and Contact header.

For those operations i usually have to get the user part, domain, etc. For that i'm using the URI Transformations provided by Kamailio.
However, in order to do this i have to trim the header value by hand in order to remove brackets, display infos, etc. 

Does Kamailio have a method for extracting the URI from those kinds of headers? 

Best Regards,

Duarte Rocha