The On Demand Global Workforce - oDesk
Custom Search

Wednesday, July 15, 2009

Call Control: Accounting Internally Generated BYE Request

This issue has been documented on the previous Post for Call Control.

When a caller prepaid account reached zero balance during a call, call control immediately send BYE request to both ends to terminate the call. Since this request is internally generated, accounting should take place on the local_route.

The group used the code below to account the BYE

local_route {

if (is_method("BYE") ) {
acc_db_request("Internally generated BYE", "acc");
acc_rad_request("Internally generated BYE"); #// This is sending an Bye to the radius server to create the stop time.
}
}

The code was placed before the main routing block.

0 comments:

Post a Comment