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#tobodyuser
Contact header format is more than an URI, this uri transformation fails.
Cheers,
Daniel
Sorry for the noob question.
On Mon, Dec 8, 2014 at 11:14 AM, Marc Soda <msoda(a)coredial.com
<mailto:msoda@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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda