IMHO, OpenSER should act on the UPDATE from mediaproxy and kill the dialog by initiating a BYE. But, it is just a proxy and cannot initiate requests, so, the accounting software should watchout for those events and consider only the first &quot;Stop Billing&quot; event and ignore the rest. <br>
<br>Sri.<br><br><br><div class="gmail_quote">On Feb 8, 2008 11:28 AM, Norman Brandinger &lt;<a href="mailto:norm@goes.com">norm@goes.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Perhaps modifying the RADIUS update query so that acctstoptime = 0<br>before an update is allowed would help. &nbsp;Using the alternate update<br>query you could log malicious update attempts.<br><br>Norm<br><div class="Ih2E3d">
<br>Dan-Cristian Bogos wrote:<br>&gt; Hi Iņaki,<br>&gt;<br>&gt; I would blame the ua sending the false BYE. Usually the BYE packets<br>&gt; must be authenticated, therefore coming from a trusted source.<br>&gt;<br>&gt; DanB<br>
&gt;<br>&gt; On Feb 8, 2008 5:17 PM, Iņaki Baz Castillo &lt;<a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a><br></div><div class="Ih2E3d">&gt; &lt;mailto:<a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a>&gt;&gt; wrote:<br>
&gt;<br>&gt; &nbsp; &nbsp; Hi, I use radius accounting with MySQL backend and MediaProxy (to<br>&gt; &nbsp; &nbsp; make fix<br>&gt; &nbsp; &nbsp; accounting when there is no BYE).<br>&gt;<br>&gt; &nbsp; &nbsp; Imagine this scenario:<br>&gt;<br>&gt; &nbsp; &nbsp; - A calls B. This produces a &quot;Start&quot; acc action, so a SQL INSERT.<br>
&gt;<br>&gt; &nbsp; &nbsp; - After 1 minute A crashes (no BYE sent and RTP stop).<br>&gt;<br>&gt; &nbsp; &nbsp; - After 20 secs with no RTP MediaProxy sends an &quot;Update&quot; action to<br>&gt; &nbsp; &nbsp; radius<br>&gt; &nbsp; &nbsp; server. This generates a SQL UPDATE that sets the StopTime. So<br>
&gt; &nbsp; &nbsp; finally the<br>&gt; &nbsp; &nbsp; call duration is 80 secs (OK).<br>&gt;<br>&gt; &nbsp; &nbsp; - But now imagine that user B sends a BYE after 2 hours using the<br>&gt; &nbsp; &nbsp; same From&amp;To<br>&gt; &nbsp; &nbsp; tags and Call-ID. This is terrible!!! &nbsp;OpenSer will notify a<br>
&gt; &nbsp; &nbsp; &quot;Stop&quot; action to<br>&gt; &nbsp; &nbsp; radius server which will do a new SQL UPDATE query setting the<br>&gt; &nbsp; &nbsp; StopTime to<br>&gt; &nbsp; &nbsp; 7201 secs !!!!<br>&gt;<br>&gt; &nbsp; &nbsp; How to avoid it? how to avoid anyone sending a malicious BYE with<br>
&gt; &nbsp; &nbsp; From&amp;To tags<br>&gt; &nbsp; &nbsp; and Call-ID from any other already ended call?<br>&gt;<br>&gt; &nbsp; &nbsp; --<br>&gt; &nbsp; &nbsp; Iņaki Baz Castillo<br></div>&gt; &nbsp; &nbsp; <a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a> &lt;mailto:<a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a>&gt;<br>
&gt;<br>&gt; &nbsp; &nbsp; _______________________________________________<br>&gt; &nbsp; &nbsp; Users mailing list<br>&gt; &nbsp; &nbsp; <a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a> &lt;mailto:<a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a>&gt;<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;<br></div>&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>&gt; <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br><a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>