SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
homerOffline



Joined: Jan 18, 2010
Posts: 2

Status: Offline
Posted: Jan 18, 2010 - 09:34 AM Reply with quote Back to top
Scheme - Kamailio + Radius + Billing.
ACC module sends a wonderful accounting through the RADIUS at the beginning of the call (INVITE) and at the end (BYE), by setting flag in the config (setflag (1)).
At the beginning of the connection, after billing authorization sends along a radius as possible conversation that is stored in the variable AVP and used module DIALOG.
DIALOG Module timer counting on this time and if it ends with a tear connection (to do this in the module code we put dlg_bye_all (dlg, NULL)), and refers participants to send BYE, but because it is a message (BYE) does not pass a config and accounting for this post is not sent.

I tried to set feature flag directly in the module dialog.so but it does not work, I am not skilled in programming.

Can anyone have any ideas how to implement it? Or maybe it is already implemented in Kamailio, but I did not see?
View user's profile Send private message
micondaOffline



Joined: Feb 02, 2007
Posts: 356
Location: Germany
Status: Offline
Posted: Jan 25, 2010 - 12:11 PM Reply with quote Back to top
what version of kamailio are you using? If it is 1.5.x, then define a local_route {...} block where you can do accounting.

In 3.0.0, define event_route[tm:local-request] {...}
View user's profile Send private message
homerOffline



Joined: Jan 18, 2010
Posts: 2

Status: Offline
Posted: Feb 03, 2010 - 10:40 AM Reply with quote Back to top
Благодарю!

My example, it works:

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("Bablo zakonchilos!");
$avp(s:can_uri) = $ru;
};
View user's profile Send private message
micondaOffline



Joined: Feb 02, 2007
Posts: 356
Location: Germany
Status: Offline
Posted: Feb 11, 2010 - 08:32 AM Reply with quote Back to top
Thanks for posting back. For sake of completion, that is for 3.0.0.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.