<div dir="ltr"><div>Hi,<br><br>Thanks Bogdan for your reply.<br><br></div>Now for my question, I want to keep my STOP event on reply as i have faced issues when generating event on request time. The thing is how should i cater the fact that the device has gone offline and there is no response generated and hence no accounting STOP event.<br>
<br>Regards,<br>Qasim<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:26 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div 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 href="http://www.opensips.org/html/docs/modules/1.9.x/acc.html#id294346" target="_blank">http://www.opensips.org/html/docs/modules/1.9.x/acc.html#id294346</a><br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<br>
On 04/30/2013 08:00 AM, <a href="mailto:qasimakhan@gmail.com" target="_blank">qasimakhan@gmail.com</a> wrote:
<blockquote 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 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>On Mon, Apr 29, 2013 at 3:27 PM, <a href="mailto:qasimakhan@gmail.com" target="_blank">qasimakhan@gmail.com</a>
<span dir="ltr"><<a 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>
<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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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><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 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 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 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div></div></div>
</blockquote></div><br></div>