[SR-Users] Contact Header User

Marc Soda msoda at coredial.com
Mon Dec 8 17:27:58 CET 2014


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 <msoda at coredial.com> 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().  I have tried:
>
> - xlog("L_NOTICE", "$(ct{uri.user})");
> This gives me an empty string.
>
> - xlog("L_NOTICE", @contact.uri.user);
> This gives me an error starting Kamailio: "function xlog: parameter 2 is
> not constant".  Note, I can't seem to get any select working, for example,
> @ruri gives me the same error.
>
> Any suggestions?
>
> Thanks,
> Marc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141208/6e281e91/attachment.html>


More information about the sr-users mailing list