<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Bogdan,<br>Thanks for your response. Actually I have setflag(1) at two places in my script.<br>Its like :<br>if(method=="BYE") {<br>&nbsp;&nbsp;&nbsp; setflag(1);<br>};<br><br>if(loose_route()) {<br>&nbsp;&nbsp;&nbsp; ----<br>&nbsp;&nbsp;&nbsp; ----<br>};<br><br>setflag(1);<br><br>Actually I added the first condition to make sure that BYEs are not missed. I think that condition is not needed, but then where is the best place to do setflag(1) and ,ake sure that BYEs dont get missed.. <br>Is it before loose_route condition as I have my loose_route condition in the main route.<br>FYI flag 1 is the flag for acc.<br><br>Waiting for a reply,<br>Thanks,<br>Jayesh.<br><br><div style="font-family: times new roman,new york,times,serif;
 font-size: 12pt;">----- Original Message ----<br>From: Bogdan-Andrei Iancu &lt;bogdan@voice-system.ro&gt;<br>To: Jayesh Nambiar &lt;voip_freak@yahoo.co.in&gt;<br>Cc: openser &lt;users@openser.org&gt;<br>Sent: Friday, 8 December, 2006 10:56:20 PM<br>Subject: Re: [Users] multiple BYEs getting accounted<br><br><div>Hi Jayesh,<br><br>normally, acc is done on transaction level, so the retransmission are <br>not accounted. Are you forcing acc from script via functions?? or maybe <br>you have 2 BYEs, from both directions?<br><br>regards,<br>bogdan<br><br>Jayesh Nambiar wrote:<br><br>&gt; Hi all,<br>&gt; I am using mysql acc table for accounting. Sometimes due to some NAT <br>&gt; issues, my openser does not acknowledge the BYE from these NATed <br>&gt; clients to proper port. This causes the UA to retransmit BYEs.<br>&gt; Now the problem is that all the BYEs that were received by my openser <br>&gt; are accounted in the acc table, This causes a single INVITE to have <br>&gt;
 multiple BYEs. I wanted to avoid this.<br>&gt; How could I limit it in the script itself that<br>&gt; "whenever a BYE is received; log it in acc table, but if it is a <br>&gt; retransmited BYE for any reaason do not log it in acc table".<br>&gt; Basically I need only single BYE for an INVITE to get logged in the <br>&gt; acc table. Is this possible?<br>&gt; If someone has any clues over it, please help me.<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; w/regards,<br>&gt; jayesh<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; Find out what India is talking about on - Yahoo! Answers India <br>&gt; &lt;<a target="_blank" href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/</a>&gt;<br>&gt; Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <br>&gt; Get it NOW <br>&gt; &lt;<a target="_blank"
 href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com</a>&gt; <br>&gt;<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Users mailing list<br>&gt;Users@openser.org<br>&gt;<a target="_blank" href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&nbsp;&nbsp;<br>&gt;<br><br></div></div><br></div></div><br>
        

        
                <hr size=1></hr> 
Find out what India is talking about on  - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers India</a> <BR> 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <a href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">Get it NOW</a></body></html>