[SR-Users] Extract URI from Headers

Jeff Bilyk jbilyk at gmail.com
Mon Mar 25 19:25:53 CET 2019

Hi Duarte,

Please see the documentation about URI transformations in
this will work to extract all or part of the URI from the applicable
pseudo-variables such as $ai or $ct,


On Mon, Mar 25, 2019 at 2:15 PM Duarte Rocha <duarterocha91 at gmail.com>

> 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
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190325/d6e30c92/attachment.html>

More information about the sr-users mailing list