Smartswitch
Cdr.ice
Go to the documentation of this file.
1 #pragma once
2 
3 [["python:pkgdir:Smartswitch/Telephony"]]
4 
5 #include <Config.ice>
6 #include <Common.ice>
7 #include <Peer/PeerType.ice>
8 #include <Direction.ice>
9 
10 module Smartswitch
11 {
12  module Telephony
13  {
14 #ifdef CONFIG_BILLING
15 
18  struct CdrBilling
19  {
20  string code;
21  bool tollFree;
22  double minutes;
23  double price;
24  string currency;
25  };
26  sequence<CdrBilling> CdrBillingOpt;
27 #endif
28 
32  struct Cdr
33  {
34  string startTime;
35  string answerTime;
36  string endTime;
37  string technology;
38  string callerId;
39  string calleeId;
42  string hangupCause;
43 #ifdef CONFIG_BILLING
45 #endif
48  long peerId;
49  };
50  sequence<Cdr> CdrSequence;
51  };
52 };
sequence< CdrBilling > CdrBillingOpt
Definition: Cdr.ice:26
CdrBillingOpt billing
If billing is available for this call, the array contains 1 element with it.
Definition: Cdr.ice:44
string startTime
The time a call appeared on Smartswitch.
Definition: Cdr.ice:34
string code
E.164 billing code.
Definition: Cdr.ice:20
double price
The full price of a call.
Definition: Cdr.ice:23
Direction direction
The Direction of a call from the POV of Smartswitch.
Definition: Cdr.ice:46
Direction
The Direction from the POV of Smartswitch.
Definition: Direction.ice:10
The struct defines the biling-part of a CDR.
Definition: Cdr.ice:18
int answeredSeconds
The rounded duration of a call in seconds from answerTime to endTime.
Definition: Cdr.ice:41
string callerId
A-number of a call.
Definition: Cdr.ice:38
string answerTime
The time a call was answered on Smartswitch.
Definition: Cdr.ice:35
string hangupCause
Human-readable Q.850/Q.931 hangup reason.
Definition: Cdr.ice:42
sequence< Cdr > CdrSequence
Definition: Cdr.ice:50
double minutes
The duration of a call in minutes according to billing increment, minimum and free seconds.
Definition: Cdr.ice:22
long peerId
An ID of a Peer to which this call leg is assigned.
Definition: Cdr.ice:48
Definition: AccessException.ice:7
PeerType
List of available GenericPeer descendants.
Definition: PeerType.ice:12
The struct defines the Call Detail Record for one call leg.
Definition: Cdr.ice:32
string technology
The technology of a call, for example SIP.
Definition: Cdr.ice:37
string endTime
The time a call ended on Smartswitch.
Definition: Cdr.ice:36
string currency
The name of the currency in which the price is calculated.
Definition: Cdr.ice:24
Peer::PeerType peerType
A type of a Peer to which this call leg is assigned.
Definition: Cdr.ice:47
string calleeId
B-number of a call.
Definition: Cdr.ice:39
bool tollFree
true if the callee pays.
Definition: Cdr.ice:21
int totalSeconds
The rounded duration of a call in seconds from startTime to endTime.
Definition: Cdr.ice:40