
Definition at line 69 of file callaccounting.h.
| typedef std::map<Key, Fraction> OSB_LIB::CallAccounting::Counts |
| typedef std::pair< Id<RecordStreamInfo>, Result > OSB_LIB::CallAccounting::Key |
Possible processing result.
| caOk | CDRs that are without errors. |
| caError | CDRs with errors. |
| caFiltered | CDRs that are discarded. |
Definition at line 74 of file callaccounting.h.
| OSB_LIB::CallAccounting::CallAccounting | ( | ModuleId | module | ) |
Constructor with processing module.
| void OSB_LIB::CallAccounting::add | ( | Result | result, | |
| const Id< RecordStreamInfo > & | rsId | |||
| ) |
Add information for a record stream.
| result | Processing result for rsId. | |
| rsId | The id of the CDR's record stream. |
Add information for a CDR.
| result | Processing result for cdr. | |
| cdr | CDR to process. |
Add information for a list of processed CDRs.
| result | Processing result for cdrs. | |
| cdrs | List of CDRs to process. |
| Key OSB_LIB::CallAccounting::key | ( | Result | result, | |
| const Id< RecordStreamInfo > & | rsId | |||
| ) | [inline, private] |
| static Result OSB_LIB::CallAccounting::mkResult | ( | char | r | ) | [static] |
Convert one character database code into result.
| r | One-character database code to convert. |
| OsbException | if r is invalid. |
| ModuleId OSB_LIB::CallAccounting::module | ( | ) | const [inline] |
Get processing module of call accounting.
Definition at line 109 of file callaccounting.h.
References module_.
| void OSB_LIB::CallAccounting::reset | ( | ) |
Reset the call accounting information.
Clears counts_.
| void OSB_LIB::CallAccounting::save | ( | const OSB_DB::Session & | session | ) |
Save the information to the database.
| session | Database session to use. |
| void OSB_LIB::CallAccounting::subtract | ( | Result | result, | |
| const Id< RecordStreamInfo > & | rsId | |||
| ) |
Subtract information for a record stream.
| result | Processing result for rsId. | |
| rsId | The id of the CDR's record stream. |
Subtract information for a CDR.
| result | Processing result for cdr. | |
| cdr | CDR to process. |
Subtract information for a list of processed CDRs.
| result | Processing result for cdrs. | |
| cdrs | List of CDRs to process. |
| static char OSB_LIB::CallAccounting::toChar | ( | Result | result | ) | [static] |
Convert Result to one character database code.
| result | Result value to convert. |
| OsbException | if result is not defined. |
Counts OSB_LIB::CallAccounting::counts_ [private] |
ModuleId OSB_LIB::CallAccounting::module_ [private] |
Module using the call accountion.
Definition at line 214 of file callaccounting.h.
Referenced by module().
1.4.7