Hi Alex,
thanks but with debug=2 xlog() does not print anything.
It seems in /usr/src/kamailio-5.0.1/src/core/route_struct.c
case ACTIONS_ST work not as expected:
#######################################################
switch(t->val[2].type){
case NOSUBTYPE:
break;
case STRING_ST:
DBG(", \"%s\"", ZSW(t->val[2].u.string));
break;
case NUMBER_ST:
DBG(", %lu",t->val[2].u.number);
break;
case EXPR_ST:
print_expr((struct expr*)t->val[2].u.data);
break;
case ACTIONS_ST:
print_actions((struct action*)t->val[2].u.data);
break;
case SOCKID_ST:
#######################################################
On 16.04.2017 12:42, Alex Balashov wrote:
This sounds like you have debug=3 or higher, and so
are seeing debug
statements related to the internals of logging itself, in addition to
the log entry.
I suggest you set debug=2 and try again.
On Sun, Apr 16, 2017 at 12:34:53PM +0200, gh wrote:
> Hi all,
> if i use xlog (Version 5.0.1) to print out some variables:
> xlog("L_NOTICE", "$fU time [$Tf] method ($rm) r-uri ($ru) 2nd via
> ($hdr(via[1]))\n");
>
> I get:
> Apr 16 10:22:51 sip kamailio: DEBUG: <core> [core/route_struct.c:524]:
> print_action(): , "L_NOTICE"
>
> Is that the expected result?
>
> Best regards
> Georg
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users(a)lists.kamailio.org
>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users