Smartswitch
Task.ice
Go to the documentation of this file.
1 #pragma once
2 
3 [["python:pkgdir:Smartswitch/Telephony/CallGeneration"]]
4 
5 #include <Config.ice>
6 
7 #ifdef CONFIG_CALL_GENERATION
8 
9 #include <Destroyable.ice>
11 #include <Common.ice>
12 #include <Telephony/Cdr.ice>
13 #include <AccessException.ice>
14 #include <ArgumentException.ice>
16 
17 module Smartswitch
18 {
19  module Telephony
20  {
21  module CallGeneration
22  {
27  {
28  None,
32  };
33 
38  {
39  None,
40  Sip,
41  Iax,
42  };
43 
47  struct CalleeIdInfo
48  {
49  string calleeId;
51  };
52  sequence<CalleeIdInfo> CalleeIdInfoSequence;
53 
63  interface Task extends Destroyable
64  {
74  idempotent StringSequence getCallerIds(long offset) throws AccessException;
75 
82  void addCallerId(string callerId) throws AccessException;
83 
92  idempotent CalleeIdInfoSequence getCalleeIds(long offset) throws AccessException;
93 
98  void addCalleeId(string calleeId) throws AccessException;
99 
108  idempotent bool isEnabled() throws AccessException;
109 
114  idempotent void setEnabled(bool enabled) throws AccessException;
115 
121  idempotent string getStartTime() throws AccessException;
122 
128  idempotent void setStartTime(string time) throws AccessException,
130 
137  idempotent string getEndTime() throws AccessException;
138 
150  idempotent StateInterface getAnswerPeerStateInterface() throws AccessException;
151 
163  idempotent void setAnswerPeerStateInterface(StateInterface stateInterface) throws AccessException;
164 
173  AnswerPeer* getAnswerPeer() throws AccessException;
174 
182  idempotent void setAnswerPeer(AnswerPeer* answerPeer) throws AccessException;
183 
192  idempotent Telephony::CdrSequence getCdr(long offset);
193 
199  TaskTimetableSequence getTimetable() throws AccessException;
200 
206  TaskTimetable* addTimetable() throws AccessException;
207 
211  void remove() throws AccessException;
212  };
213  sequence<Task*> TaskSequence;
214  };
215  };
216 };
217 
218 #endif
This interface allows to destroy a proxy entity at the Smartswitch side.
Definition: Destroyable.ice:12
Have been dialed.
Definition: Task.ice:29
sequence< Task > TaskSequence
Definition: Task.ice:213
This interface allows to modify a Task of call generation.
Definition: Task.ice:63
CalleeIdStatus status
Definition: Task.ice:50
sequence< CalleeIdInfo > CalleeIdInfoSequence
Definition: Task.ice:52
Called party has been bridged with caller party.
Definition: Task.ice:31
This interface allows to configure a timetable for a Task.
Definition: TaskTimetable.ice:27
StateInterface
Selects a technology to monitor the availability of an AnswerPeer.
Definition: Task.ice:37
Called party has answered.
Definition: Task.ice:30
sequence< Cdr > CdrSequence
Definition: Cdr.ice:50
Definition: AccessException.ice:7
Check if peer is available via IAX before starting a new call.
Definition: Task.ice:41
Holds information about status of dialing a number.
Definition: Task.ice:47
A peer to dial then the callee answers.
Definition: AnswerPeer.ice:25
Thrown when a user specifies wrong argument to a method.
Definition: ArgumentException.ice:12
Check if peer is available via SIP before starting a new call.
Definition: Task.ice:40
CalleeIdStatus
Selects a current status of a callee number form the dial list.
Definition: Task.ice:26
Thrown when a user tries perform an action which is not allowed for him.
Definition: AccessException.ice:20
Haven't been dialed.
Definition: Task.ice:28
sequence< TaskTimetable > TaskTimetableSequence
Definition: TaskTimetable.ice:192
sequence< string > StringSequence
Definition: Common.ice:7