[SR-Users] log_prefix ignored in resumed routes

Alex Balashov abalashov at evaristesys.com
Tue Nov 22 06:17:12 CET 2016


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

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 (direct) / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list