<br><font size=2 face="sans-serif">I'm not completely following you. Is
has_to_tag() a regular command, and which module is it in?</font>
<br><font size=2 face="sans-serif">thanks</font>
<br>
<br><font size=2 face="sans-serif">Jon</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Klaus Darilion &lt;klaus.mailinglists@pernau.at&gt;</b></font>
<p><font size=1 face="sans-serif">05/27/2004 05:41 AM</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;jon@bostontech.com</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;serusers@lists.iptel.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Fax
to: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;Re: [Serusers] Call Accounting - multiple
INVITE entries</font></table>
<br>
<br>
<br><font size=2><tt>You can check if the message has a to-tag has_to_tag()
und in that case: <br>
don't set the acc flag.<br>
<br>
klaus<br>
<br>
jon@bostontech.com wrote:<br>
&gt; <br>
&gt; I am running ser 0.8.12 (on RedHat 9) and have it set up to log all
<br>
&gt; invite and bye messages, so that I can use the accounting feature
in <br>
&gt; SerWeb. It's logging fine.<br>
&gt; My problem is that if there are multiple invites and only one bye
during <br>
&gt; a session, I get multiple entries in SerWeb with the same sip_callid.
I <br>
&gt; noticed that this happens when the hold feature is used with the XTen
<br>
&gt; soft phone.<br>
&gt; Is there any way I can avoid logging these subsequent INVITE messages
or <br>
&gt; stop from displaying them in the call log on SerWeb?<br>
&gt; <br>
&gt; <br>
&gt; My accounting routine:<br>
&gt; <br>
&gt; modparam(&quot;acc&quot;, &quot;log_level&quot;,1)<br>
&gt; modparam(&quot;acc&quot;, &quot;db_flag&quot;, 1)<br>
&gt; if ((method==&quot;INVITE&quot;) || (method==&quot;BYE&quot;)) {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; setflag (1);<br>
&gt; };<br>
&gt; <br>
&gt; <br>
&gt; Serweb $q call to MySQL (4.0.18) db:<br>
&gt; <br>
&gt; $q=&quot;select t1.to_uri, t1.from_uri, t1.sip_callid, t1.time, &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;t1.fromtag as invft, t2.fromtag
as byeft, t2.totag as byett, &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sec_to_time(unix_timestamp(t2.time)-unix_timestamp(t1.time))
&quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;as length
&quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;from &quot;.$config-&gt;table_accounting.&quot;
t1, &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $config-&gt;table_accounting.
&quot; t2 &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;where t1.domain='&quot;.$config-&gt;realm.&quot;'
and &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;t1.sip_callid=t2.sip_callid
and &quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;t1.sip_method='INVITE'
and t2.sip_method='BYE'&quot;.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;order by t1.time desc&quot;;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Thanks<br>
&gt; -Jon B<br>
&gt; <br>
&gt; <br>
&gt; ------------------------------------------------------------------------<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Serusers mailing list<br>
&gt; serusers@lists.iptel.org<br>
&gt; http://lists.iptel.org/mailman/listinfo/serusers<br>
</tt></font>
<br>