2
#ifndef __AccountingManager_h
3
#define __AccountingManager_h
6
#include "rutil/Data.h"
11
class AccountingManager {
14
// Call has entered system
15
virtual void onCallStart() = 0;
16
// Call has been authorised
17
virtual void onCallAuthorise() = 0;
19
virtual void onCallConnect() = 0;
21
virtual void onCallRouteFail() = 0;
22
// All routes have been tried and failed, or the call was not authorised
23
virtual void onCallFail() = 0;
24
// The call connected and completed successfully
25
virtual void onCallFinish() = 0;
32
/* ====================================================================
34
* Copyright 2012 Daniel Pocock. All rights reserved.
36
* Redistribution and use in source and binary forms, with or without
37
* modification, are permitted provided that the following conditions
40
* 1. Redistributions of source code must retain the above copyright
41
* notice, this list of conditions and the following disclaimer.
43
* 2. Redistributions in binary form must reproduce the above copyright
44
* notice, this list of conditions and the following disclaimer in
45
* the documentation and/or other materials provided with the
48
* 3. Neither the name of the author(s) nor the names of any contributors
49
* may be used to endorse or promote products derived from this software
50
* without specific prior written permission.
52
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
53
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
54
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
55
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
56
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
57
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
58
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
59
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
60
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
61
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64
* ====================================================================