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 * Abstract base class for events triggered in response to an OriginateAction.
21 *
22 * @see net.sf.asterisk.manager.action.OriginateAction
23 * @author srt
24 * @version $Id: OriginateEvent.java,v 1.3 2005/06/08 02:21:31 srt Exp $
25 */
26 public abstract class OriginateEvent extends ResponseEvent
27 {
28 private String channel;
29 private String context;
30 private String exten;
31 private String uniqueId;
32 private Integer reason;
33
34 /***
35 * @param source
36 */
37 public OriginateEvent(Object source)
38 {
39 super(source);
40 }
41
42 /***
43 * Returns the name of the channel to connect to the outgoing call.
44 */
45 public String getChannel()
46 {
47 return channel;
48 }
49
50 /***
51 * Sets the name of the channel to connect to the outgoing call.
52 */
53 public void setChannel(String channel)
54 {
55 this.channel = channel;
56 }
57
58 /***
59 * Returns the name of the context of the extension to connect to.
60 */
61 public String getContext()
62 {
63 return context;
64 }
65
66 /***
67 * Sets the name of the context of the extension to connect to.
68 */
69 public void setContext(String context)
70 {
71 this.context = context;
72 }
73
74 /***
75 * Returns the the extension to connect to.
76 */
77 public String getExten()
78 {
79 return exten;
80 }
81
82 /***
83 * Sets the the extension to connect to.
84 */
85 public void setExten(String exten)
86 {
87 this.exten = exten;
88 }
89
90 public Integer getReason()
91 {
92 return reason;
93 }
94
95 public void setReason(Integer reason)
96 {
97 this.reason = reason;
98 }
99
100 public String getUniqueId()
101 {
102 return uniqueId;
103 }
104
105 public void setUniqueId(String uniqueId)
106 {
107 this.uniqueId = uniqueId;
108 }
109 }