[SR-Users] log_prefix ignored in resumed routes

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 22 14:56:05 CET 2016


Hello,

probably the reference to the current processed message is not set in
this case -- iirc, it was added for receive events. I will try to fix
it. Maybe you can open an issue on tracker, not to forget about it.

Cheers,
Daniel

On 22/11/2016 06:17, Alex Balashov wrote:
> Hi,
>
> I have this log_prefix:
>
>    log_prefix="[$ci $mt] "
>
> Which means xlog("L_INFO", "xyz") normally results in log entries like
> this:
>
>    Nov 22 00:29:50 allegro-4.evaristesys.com
> /usr/local/sbin/kamailio[27625]: [1-27702 at 10.150.20.6 1] INFO: xyz
>
> But if xlog("L_INFO", "xyz") happens to occur in a route[] block that
> is resumed after async_route()—I have not tested other async
> functions—there is no prefix:
>
> Nov 22 00:29:52 allegro-4.evaristesys.com
> /usr/local/sbin/kamailio[27678]: INFO: xyz
>
> -- Alex
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com




More information about the sr-users mailing list