If you see my post (and Michal's one on serdev) you can see there's a problem in the <br><br>@to.tag=="" <br><br>because it does not work when the to tag is empty.<br><br>This means that the FLAG_ACC is never set in your next code:
<br><br> # lets account all initial INVITEs<br> # further in-dialog requests are accounted by a RR cookie (see below)<br> if (method=="INVITE" && @to.tag=="") {<br><br> setflag(FLAG_ACC);
<br> }<br><br>And that's why accounting is not working.<br><br>Vaclav posted a workaround while this bug is being solved. So instead the above check, use the next one:<br>if ((method=="INVITE" && (!@
to.tag) || (@to.tag=="")) || method=="BYE") {<br><br>So, change<br><br>@to.tag=="" for (!@to.tag) || (@to.tag=="") to detect empty to tags.<br><br>Hope Michal can find a solution soon because all config example uses this checks and the list is going to be full of related questions..
<br><br><br>Thanks all,<br>Samuel.<br><br><br><br><br><br><div><span class="gmail_quote">2007/6/7, KUMAR <<a href="mailto:kumar.kisalaya@gmail.com">kumar.kisalaya@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's the ser.cfg that i've changed to enable accounting in MySql.<br>But I still don't see anything in the database. Isn't it supposed to<br>show up in acc table?<br>Thank You<br>kumar<br><br>On 6/7/07, Eneref <
<a href="mailto:eneref@arcdiv.com">eneref@arcdiv.com</a>> wrote:<br>> Is there a convenient way to write both in SER 2.0? In SER 0.9.6, I<br>> simply had 1 flag, and the acc module abstracted all the necessary<br>
> details out for me. Depending upon how I'd compiled it, my 1 flag<br>> allowed me to write to mysql, syslog, and/or radius in whatever<br>> combination I wished.<br>><br>> Now that the abstraction of a single, simple logging class has been
<br>> replaced by the increased complexity of 3 separate logging classes, that<br>> methodology is no longer possible. Does one now simply set several flags<br>> at each turn to determine where to log the data?<br>
><br>> N.<br>><br>><br>> Hendrik Scholz wrote:<br>> > Hi!<br>> ><br>> > KUMAR wrote:<br>> ><br>> >> Thank you Hendrik for pointing out the mistake. But I also cannot see<br>
> >> any accounting information in the MySql Database. Can you tell me why?<br>> >> Obviouly I am missing something here.<br>> >><br>> ><br>> > You are using acc_syslog and not acc_db.
<br>> > acc_syslog writes syslog entries whereas acc_db relies on a database<br>> > backend.<br>> ><br>> > Cheers,<br>> > Hendrik<br>> ><br>> ><br>><br>><br><br>_______________________________________________
<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br><br>
<br></blockquote></div><br>