That's because $ct refers to the value of the entire Contact header, not
just the URI portion.
You need to get at the URI portion first:
xlog("L_INFO", "$(ct{nameaddr.uri}{uri.user})\n");
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
U
On 08/12/14 17:27, Marc Soda wrote:
> Finally! This seems to have done it:
>
> xlog("L_NOTICE", "$sel(contact.uri.user)");
This is probably one of the best options, for the records, the
alternative can be {tobody.user} transformation:
http://www.kamailio.org/wiki/cookbooks/4.2.x/transformations#
Finally! This seems to have done it:
xlog("L_NOTICE", "$sel(contact.uri.user)");
Sorry for the noob question.
On Mon, Dec 8, 2014 at 11:14 AM, Marc Soda wrote:
> Can someone recommend a way to extract the user part of a Contact header
> URI?
>
> Right now I'm just trying to pass it to xlog().