Well, to my credit, i'm not just trying to log anything. I'm actually trying to log billing-related material -- every leg of a call, success or failure.
I just want to log it to a file and i assumed the transaction module had logging and then that acc's transaction logging would be the best/proper approach as I've seen/done in previous kam installs. This one just isn't playing nice.
Ryan Brindley Software Development Officer Stratics Networks, Inc. 1.866.635.6918 x108
On Mon, Jan 26, 2015 at 6:37 PM, Alex Balashov abalashov@evaristesys.com wrote:
Easy to use, obvious? :-) Ahahaha! This is Kamailio, come on.
But seriously, xlog() is the logging feature, and it is easy to use:
route { xlog("L_INFO", "$ci: Message $rm $ru received from $si:$sp\n"); }
onreply_route { xlog("L_INFO", "Reply '$rs $rr' ($rm) from $si:$sp seen\n"); }
The problem is that you were under the misapprehension that the 'acc' module is the logging facility, when in fact it is the accounting module designed to generate CDRs--of a sort.
The fact that this distinction was not obvious is in no way your fault. It's just the trials and tribulations of Kamailio documentation. Hopefully the new book will remedy that.
-- Alex
On 01/26/2015 07:31 PM, Ryan Brindley wrote:
Because that solution, which now sounds easy and great, was not openly
obvious to me when searching through the docs and trying to determine the best way to log all transactions.
I naturally assume that the logging features in a product are relatively easy to use and configure.
xlog it is. ty.
-- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States
Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users