<div>Hi, Răzvan</div><div> </div><div>I used to:<br />modparam("acc", "aaa_flag", "FLT_ACC")<br /><br />But timeout $DLG_timeout = 6;<br /><br />Message 'BYE' misses the local_route !!! And (is_method("BYE")) also will not find it!<br /><br />local_route {<br />if(is_method("BYE")){<br /> xlog("BYE ok, \n");<br /> setflag(FLT_ACC);} Сюда BYE не протходит! Потому как оно инициированно $DLG_timeout.<br /> <br /> <br />In Kamailio is implemented through the event:<br />http://by-miconda.blogspot.com/2009/12/best-of-new-in-kamailio-300-9.html<br /><br />event_route[tm:local-request] {<br /> xlog("L_INFO", "event_route $rm\n");<br /> if(is_method("BYE"))<br /> {<br /> # Account BYE transactions<br /> xlog("L_INFO", "event_received_BYE from $fU to $tU\n\n");<br /> acc_rad_request();<br /><br /> };<br /> }<br /><br />How to implement it in OpenSIPS?</div><div> </div><div>19.12.2014, 11:23, "Răzvan Crainea" <razvan@opensips.org>:</div><blockquote type="cite"><div bgcolor="#FFFFFF"><div>Hi, Kalala!<br /> <br /> If you are using the cdr_flag[1], the BYE will be automatically accounted.<br /> If you want to do accounting manually, you can "catch" the generated BYE in local route. Something like this:<br /> <br /> local_route {<br /> if (is_method("BYE"))<br /> acc_aaa_request("200 BYE received");<br /> }<br /> <br /> Best regards,<br /><pre>Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com/">www.opensips-solutions.com</a></pre>On 12/18/2014 03:39 PM, Kalala Alexander wrote:</div><blockquote cite="mid:320761418909991@web27m.yandex.ru" type="cite"><div>I have this all inclusive, but you did not understand me ....<br /> <br /> modparam("acc", "aaa_flag", "FLT_ACC")<br /> <br /> if(is_method("INVITE")){<br /> setflag(FLT_ACC);<br /> create_dialog("B"); <br /> $DLG_timeout = 6;<br /> xlog("L_NOTICE"," DIALOG $DLG_timeout sec\n"); <br /> }<br /> <br /> if(loose_route()){<br /> if(is_method("BYE")){<br /> setflag(FLT_ACC);<br /> setflag(FLT_ACCFAILED); <br /> }<br /> <br /> $DLG_timeout sends BYE which does not pass through the config. Accordingly setflag(FLT_ACC) is not satisfied !!!</div><div> </div><div>18.12.2014, 16:17, "Răzvan Crainea" <a href="mailto:razvan@opensips.org"><razvan@opensips.org></a>:</div><blockquote type="cite"><div bgcolor="#FFFFFF"><div>You can achieve this by using acc module and the CDR[1] flag, as well as setting the aaa_flag[2].<br /> If you really want to send a message to the Radius server, see the acc_aaa_request() function[3].<br /> <br /> [1] <a href="http://www.opensips.org/html/docs/modules/1.12.x/acc#id295374">http://www.opensips.org/html/docs/modules/1.12.x/acc#id295374</a><br /> [2] <a href="http://www.opensips.org/html/docs/modules/1.12.x/acc#id294452">http://www.opensips.org/html/docs/modules/1.12.x/acc#id294452</a><br /> [3] <a href="http://www.opensips.org/html/docs/modules/1.12.x/acc#id295543">http://www.opensips.org/html/docs/modules/1.12.x/acc#id295543</a><br /> <br /> Best regards,<br /><pre>Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com/">www.opensips-solutions.com</a></pre>On 12/18/2014 02:07 PM, Kalala Alexander wrote:</div><blockquote cite="mid:55331418904465@web3h.yandex.ru" type="cite"><div>Yes I can.</div><div> </div><div>if(is_method("INVITE")){<br /> create_dialog("B"); <br /> $DLG_timeout = 6;<br /> xlog("L_NOTICE"," DIALOG $DLG_timeout sec\n"); <br /> }<br /> <br /> <br /> After the break (BYE) I need to send a packet to STOP Radius (Billing) server.<br /> <br /> radius_send_acct("stop");</div><div> </div><div>18.12.2014, 14:56, "Răzvan Crainea" <a href="mailto:razvan@opensips.org"><razvan@opensips.org></a>:</div><blockquote type="cite"><div bgcolor="#FFFFFF"><div>Can you please tell us in words what you are trying to achieve?<br /> <br /> Best regards,<br /><pre>Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com/">www.opensips-solutions.com</a></pre>On 12/18/2014 12:20 PM, Kalala Alexander wrote:</div><blockquote cite="mid:2036511418898047@web29g.yandex.ru" type="cite"><div>How to implement this feature in openSIPS?</div><div> </div><div>event_route[tm:local-request] {<br /> xlog("L_INFO", "event_route $rm\n");<br /> if(is_method("BYE"))<br /> {<br /> # Account BYE transactions<br /> xlog("L_INFO", "event_received_BYE from $fU to $tU\n\n");<br /> acc_rad_request();<br /> <br /> };<br /> }</div><div> </div><div> </div><div><em>-- <br /> С уважением</em></div><div><em>Инженер по телекоммуникациям </em></div><div><em>Калала Александр </em></div><div><em>vel: <span><span><span>375291146285</span></span></span></em></div><div><em>life: <span><span><span>375256819996</span></span></span></em><em><br /> </em></div><div><em>skype: klistrod<br /> </em></div><div><em> </em></div><div><em>VoIP Network Engineer<br /> dCAP, CCNAVoice<br /> Kalala Alexander</em></div><div><a href="http://callcenters.by/">http://callcenters.by/</a> <em></em></div><div><a href="http://skytel.by/">http://skytel.by/</a></div><div><a href="http://voiplab.by/">http://voiplab.by/</a></div><div><a href="http://asterisk-pbx.by/">http://asterisk-pbx.by/</a></div><div> </div><div><img src="http://skytel.by/images/overview/logo.png" /></div><div> </div><div> </div><div> </div><div> </div><div> </div><br /> <br /><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote></div>,<p>_______________________________________________<br /> Users mailing list<br /> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br /> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p></blockquote><div> </div><div> </div><div><em>-- <br /> С уважением</em></div><div><em>Инженер по телекоммуникациям </em></div><div><em>Калала Александр </em></div><div><em>vel: <span><span>375291146285</span></span></em></div><div><em>life: <span><span>375256819996</span></span></em><em><br /> </em></div><div><em>skype: klistrod<br /> </em></div><div><em> </em></div><div><em>VoIP Network Engineer<br /> dCAP, CCNAVoice<br /> Kalala Alexander</em></div><div><a href="http://callcenters.by/">http://callcenters.by/</a> <em></em></div><div><a href="http://skytel.by/">http://skytel.by/</a></div><div><a href="http://voiplab.by/">http://voiplab.by/</a></div><div><a href="http://asterisk-pbx.by/">http://asterisk-pbx.by/</a></div><div> </div><div><img src="http://skytel.by/images/overview/logo.png" /></div><div> </div><div> </div><div> </div><div> </div><div> </div><br /> <br /><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote></div>,<p>_______________________________________________<br /> Users mailing list<br /> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br /> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p></blockquote><div> </div><div> </div><div><em>-- <br /> С уважением</em></div><div><em>Инженер по телекоммуникациям </em></div><div><em>Калала Александр </em></div><div><em>vel: <span>375291146285</span></em></div><div><em>life: <span>375256819996</span></em><em><br /> </em></div><div><em>skype: klistrod<br /> </em></div><div><em> </em></div><div><em>VoIP Network Engineer<br /> dCAP, CCNAVoice<br /> Kalala Alexander</em></div><div><a href="http://callcenters.by/">http://callcenters.by/</a> <em></em></div><div><a href="http://skytel.by/">http://skytel.by/</a></div><div><a href="http://voiplab.by/">http://voiplab.by/</a></div><div><a href="http://asterisk-pbx.by/">http://asterisk-pbx.by/</a></div><div> </div><div><img src="http://skytel.by/images/overview/logo.png" /></div><div> </div><div> </div><div> </div><div> </div><div> </div><br /> <br /><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote></div>,<p>_______________________________________________<br />Users mailing list<br /><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br /><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p></blockquote><div> </div><div> </div><div><em>-- <br />С уважением</em></div><div><em>Инженер по телекоммуникациям </em></div><div><em>Калала Александр </em></div><div><em>vel: 375291146285</em></div><div><em>life: 375256819996</em><em><br /></em></div><div><em>skype: klistrod<br /></em></div><div><em> </em></div><div><em>VoIP Network Engineer<br />dCAP, CCNAVoice<br />Kalala Alexander</em></div><div><a href="http://callcenters.by/">http://callcenters.by/</a> <em></em></div><div><a href="http://skytel.by/">http://skytel.by/</a></div><div><a href="http://voiplab.by/">http://voiplab.by/</a></div><div><a href="http://asterisk-pbx.by/">http://asterisk-pbx.by/</a></div><div> </div><div><img src="http://skytel.by/images/overview/logo.png" /></div><div> </div><div> </div><div> </div><div> </div><div> </div>