<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> setflag(1);<br>};<br><br>if(loose_route()) {<br> ----<br> ----<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 <bogdan@voice-system.ro><br>To: Jayesh Nambiar <voip_freak@yahoo.co.in><br>Cc: openser <users@openser.org><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>> Hi all,<br>> I am using mysql acc table for accounting. Sometimes due to some NAT <br>> issues, my openser does not acknowledge the BYE from these NATed <br>> clients to proper port. This causes the UA to retransmit BYEs.<br>> Now the problem is that all the BYEs that were received by my openser <br>> are accounted in the acc table, This causes a single INVITE to have <br>>
multiple BYEs. I wanted to avoid this.<br>> How could I limit it in the script itself that<br>> "whenever a BYE is received; log it in acc table, but if it is a <br>> retransmited BYE for any reaason do not log it in acc table".<br>> Basically I need only single BYE for an INVITE to get logged in the <br>> acc table. Is this possible?<br>> If someone has any clues over it, please help me.<br>><br>> Thanks in advance,<br>><br>> w/regards,<br>> jayesh<br>><br>> ------------------------------------------------------------------------<br>> Find out what India is talking about on - Yahoo! Answers India <br>> <<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>><br>> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <br>> Get it NOW <br>> <<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>> <br>><br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Users mailing list<br>>Users@openser.org<br>><a target="_blank" href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>> <br>><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>