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