If you see my post (and Michal&#39;s one on serdev) you can see there&#39;s a problem in the <br><br>@to.tag==&quot;&quot; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # lets account all initial INVITEs<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # further in-dialog requests are accounted by a RR cookie (see below)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==&quot;INVITE&quot; &amp;&amp; @to.tag==&quot;&quot;) {<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(FLAG_ACC);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>And that&#39;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==&quot;INVITE&quot; &amp;&amp; (!@
to.tag) || (@to.tag==&quot;&quot;)) || method==&quot;BYE&quot;) {<br><br>So, change<br><br>@to.tag==&quot;&quot; for (!@to.tag) || (@to.tag==&quot;&quot;) 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 &lt;<a href="mailto:kumar.kisalaya@gmail.com">kumar.kisalaya@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here&#39;s the ser.cfg that i&#39;ve changed to enable accounting in MySql.<br>But I still don&#39;t see anything in the database. Isn&#39;t it supposed to<br>show up in acc table?<br>Thank You<br>kumar<br><br>On 6/7/07, Eneref &lt;
<a href="mailto:eneref@arcdiv.com">eneref@arcdiv.com</a>&gt; wrote:<br>&gt; Is there a convenient way to write both in SER 2.0? In SER 0.9.6, I<br>&gt; simply had 1 flag, and the acc module abstracted all the necessary<br>
&gt; details out for me. Depending upon how I&#39;d compiled it, my 1 flag<br>&gt; allowed me to write to mysql, syslog, and/or radius in whatever<br>&gt; combination I wished.<br>&gt;<br>&gt; Now that the abstraction of a single, simple logging class has been
<br>&gt; replaced by the increased complexity of 3 separate logging classes, that<br>&gt; methodology is no longer possible. Does one now simply set several flags<br>&gt; at each turn to determine where to log the data?<br>
&gt;<br>&gt; N.<br>&gt;<br>&gt;<br>&gt; Hendrik Scholz wrote:<br>&gt; &gt; Hi!<br>&gt; &gt;<br>&gt; &gt; KUMAR wrote:<br>&gt; &gt;<br>&gt; &gt;&gt; Thank you Hendrik for pointing out the mistake. But I also cannot see<br>
&gt; &gt;&gt; any accounting information in the MySql Database. Can you tell me why?<br>&gt; &gt;&gt; Obviouly I am missing something here.<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; You are using acc_syslog and not acc_db.
<br>&gt; &gt; acc_syslog writes syslog entries whereas acc_db relies on a database<br>&gt; &gt; backend.<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt;&nbsp;&nbsp;Hendrik<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<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>