<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hello,<br>
<br>
All accounting triggers (START/STOP or CDR based) are on replies,
so when the transaction is completed. Of course, all transactions
are terminated in OpenSIPS - either by received replies, either
by a timeout (if no reply received).<br>
<br>
If you want to generate the STOP event at BYE request time (versus
BYE reply time), you can manually do it from script via the acc
function acc_db_request() (instead of setting the acc flag and
letting the acc module to generate automatically the event) - the
generate event is the same. See: <br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.9.x/acc.html#id294346">http://www.opensips.org/html/docs/modules/1.9.x/acc.html#id294346</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 04/30/2013 08:00 AM, <a class="moz-txt-link-abbreviated" href="mailto:qasimakhan@gmail.com">qasimakhan@gmail.com</a> wrote:
<blockquote
cite="mid:CAPBKugtu2q1+SP_Ms9DV98z735o45JMEokpE_=UZ=2Uxv8aZGA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I have tried this scenario. Still if the User B is behind a
NAT or is unreachable the opensips generates the BYE with
retransmitted BYE's and the dialog is closed but there is no
response to BYE received from that user hence no radius acct
request.<br>
<br>
</div>
Regards,<br>
Qasim<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Apr 29, 2013 at 8:36 PM,
Muhammad Shahzad <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:shaheryarkh@gmail.com"
target="_blank">shaheryarkh@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="ltr">Per my understanding, accounting event is
sent when BYE completes, whether if destination replies
with 200 OK or BYE re-transmission times out and opensips
responds with 408 Request timeout. In each case SIP
response code is set appropriately and you should use stop
time as accounting end time rather then the time your
receive account stop request on radius (they both may
differ, e.g. under high load scenarios).
<div>
<br>
</div>
<div>Thank you.</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On Mon, Apr 29, 2013 at 3:27 PM, <a
moz-do-not-send="true"
href="mailto:qasimakhan@gmail.com" target="_blank">qasimakhan@gmail.com</a>
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:qasimakhan@gmail.com"
target="_blank">qasimakhan@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div>
<div class="h5">
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
I wanted to confirm if radius accounting
requests are generated on a successful
transaction or it can be generated on a
received BYE only. To elaborate my question
you can look at 2 diagrams below. Is first
scenario correct based on RFC's? My next
question is that if scenario A is correct
then how can we account the call if say user
B has gone offline and we do not receive 200
OK of the BYE sent? <br>
<br>
Can we send a manual accounting request to
Radius with acc_aaa_request in accounting
module?<br>
<br>
</div>
<div><b>Scenario A:</b><br>
</div>
User A OpenSIPs
Radius User B<br>
</div>
|-------BYE------->|
|<br>
<div> |
|---------------------BYE-------------------->|<br>
</div>
<div> |
|-------acct-BYE------->|<br>
<br>
<b>Scenario B:</b><br>
User A OpenSIPs
Radius User B<br>
|-------BYE------->|
| |<br>
<div> |
|---------------------BYE-------------------->|<br>
</div>
<div> |
|<-------------------200 OK
-----------------|<br>
</div>
<div> |<----200 OK -----|</div>
<div> |
|-------acct-BYE------->|</div>
<br>
<br>
</div>
<div>Regards,<br>
Qasim Ayyaz Khan<br>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<span class="HOEnZb"><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div><span style="color: rgb(136, 136, 136);
font-size: 13px; font-family: arial,sans-serif;">Mit
freundlichen Grüßen</span></div>
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">Muhammad
Shahzad</span><br style="color: rgb(136, 136, 136);
font-size: 13px; font-family: arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">------------------------------</span><span
style="color: rgb(136, 136, 136); font-size: 13px;
font-family: arial,sans-serif;">-----</span><br
style="color: rgb(136, 136, 136); font-size: 13px;
font-family: arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">CISCO Rich
Media Communication Specialist (CRMCS)</span><br
style="color: rgb(136, 136, 136); font-size: 13px;
font-family: arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">CISCO
Certified Network Associate (CCNA)</span><br
style="color: rgb(136, 136, 136); font-size: 13px;
font-family: arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">Cell: <a
moz-do-not-send="true"
href="tel:%2B49%20176%2099%2083%2010%2085"
value="+4917699831085" target="_blank">+49 176 99
83 10 85</a></span><br style="color: rgb(136, 136,
136); font-size: 13px; font-family:
arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">MSN: </span><a
moz-do-not-send="true"
href="mailto:shari_786pk@hotmail.com" style="color:
rgb(17, 85, 204); font-size: 13px; font-family:
arial,sans-serif;" target="_blank">shari_786pk@hotmail.com</a><br
style="color: rgb(136, 136, 136); font-size: 13px;
font-family: arial,sans-serif;">
<span style="color: rgb(136, 136, 136); font-size:
13px; font-family: arial,sans-serif;">Email: </span><a
moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com"
style="color: rgb(17, 85, 204); font-size: 13px;
font-family: arial,sans-serif;" target="_blank">shaheryarkh@googlemail.com</a>
</font></span></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>