1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * A CdrEvent is triggered when a call detail record is generated, usually at the end of a call.<br>
21 * To enable CdrEvents you have to add <code>enabled = yes</code> to the general section in
22 * <code>cdr_manager.conf</code>.<br>
23 * This event is implemented in <code>cdr/cdr_manager.c</code>
24 *
25 * @author srt
26 * @version $Id: CdrEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
27 */
28 public class CdrEvent extends ManagerEvent
29 {
30 /***
31 * Serializable version identifier
32 */
33 private static final long serialVersionUID = 2541424315212201670L;
34 private String accountCode;
35 private String src;
36 private String destination;
37 private String destinationContext;
38 private String callerId;
39 private String channel;
40 private String destinationChannel;
41 private String lastApplication;
42 private String lastData;
43 private String startTime;
44 private String answerTime;
45 private String endTime;
46 private Integer duration;
47 private Integer billableSeconds;
48 private String disposition;
49 private String amaFlags;
50 private String uniqueId;
51 private String userField;
52
53 /***
54 * @param source
55 */
56 public CdrEvent(Object source)
57 {
58 super(source);
59 }
60
61 public String getAccountCode()
62 {
63 return accountCode;
64 }
65
66 public void setAccountCode(String accountCode)
67 {
68 this.accountCode = accountCode;
69 }
70
71 public String getSrc()
72 {
73 return src;
74 }
75
76 public void setSrc(String source)
77 {
78 this.src = source;
79 }
80
81 public String getDestination()
82 {
83 return destination;
84 }
85
86 public void setDestination(String destination)
87 {
88 this.destination = destination;
89 }
90
91 public String getDestinationContext()
92 {
93 return destinationContext;
94 }
95
96 public void setDestinationContext(String destinationContext)
97 {
98 this.destinationContext = destinationContext;
99 }
100
101 public String getCallerId()
102 {
103 return callerId;
104 }
105
106 public void setCallerId(String callerId)
107 {
108 this.callerId = callerId;
109 }
110
111 public String getChannel()
112 {
113 return channel;
114 }
115
116 public void setChannel(String channel)
117 {
118 this.channel = channel;
119 }
120
121 public String getDestinationChannel()
122 {
123 return destinationChannel;
124 }
125
126 public void setDestinationChannel(String destinationChannel)
127 {
128 this.destinationChannel = destinationChannel;
129 }
130
131 public String getLastApplication()
132 {
133 return lastApplication;
134 }
135
136 public void setLastApplication(String lastApplication)
137 {
138 this.lastApplication = lastApplication;
139 }
140
141 public String getLastData()
142 {
143 return lastData;
144 }
145
146 public void setLastData(String lastData)
147 {
148 this.lastData = lastData;
149 }
150
151 public String getStartTime()
152 {
153 return startTime;
154 }
155
156 public void setStartTime(String startTime)
157 {
158 this.startTime = startTime;
159 }
160
161 public String getAnswerTime()
162 {
163 return answerTime;
164 }
165
166 public void setAnswerTime(String answerTime)
167 {
168 this.answerTime = answerTime;
169 }
170
171 public String getEndTime()
172 {
173 return endTime;
174 }
175
176 public void setEndTime(String endTime)
177 {
178 this.endTime = endTime;
179 }
180
181 public Integer getDuration()
182 {
183 return duration;
184 }
185
186 public void setDuration(Integer duration)
187 {
188 this.duration = duration;
189 }
190
191 public Integer getBillableSeconds()
192 {
193 return billableSeconds;
194 }
195
196 public void setBillableSeconds(Integer billableSeconds)
197 {
198 this.billableSeconds = billableSeconds;
199 }
200
201 public String getDisposition()
202 {
203 return disposition;
204 }
205
206 public void setDisposition(String disposition)
207 {
208 this.disposition = disposition;
209 }
210
211 public String getAmaFlags()
212 {
213 return amaFlags;
214 }
215
216 public void setAmaFlags(String amaFlags)
217 {
218 this.amaFlags = amaFlags;
219 }
220
221 public String getUniqueId()
222 {
223 return uniqueId;
224 }
225
226 public void setUniqueId(String uniqueId)
227 {
228 this.uniqueId = uniqueId;
229 }
230
231 public String getUserField()
232 {
233 return userField;
234 }
235
236 public void setUserField(String userField)
237 {
238 this.userField = userField;
239 }
240 }