2 * tel-plugin-at_standard
4 * Copyright (c) 2012 Intel Corporation. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
28 #include <core_object.h>
33 static TReturn call_dial(CoreObject *co, UserRequest *ur)
35 return TCORE_RETURN_ENOSYS;
38 static TReturn call_answer(CoreObject *co, UserRequest *ur)
40 return TCORE_RETURN_ENOSYS;
43 static TReturn call_release(CoreObject *co, UserRequest *ur)
45 return TCORE_RETURN_ENOSYS;
48 static TReturn call_hold(CoreObject *co, UserRequest *ur)
50 return TCORE_RETURN_ENOSYS;
53 static TReturn call_active(CoreObject *co, UserRequest *ur)
55 return TCORE_RETURN_ENOSYS;
58 static TReturn call_swap(CoreObject *co, UserRequest *ur)
60 return TCORE_RETURN_ENOSYS;
63 static TReturn call_join(CoreObject *co, UserRequest *ur)
65 return TCORE_RETURN_ENOSYS;
68 static TReturn call_split(CoreObject *co, UserRequest *ur)
70 return TCORE_RETURN_ENOSYS;
73 static TReturn call_deflect(CoreObject *co, UserRequest *ur)
75 return TCORE_RETURN_ENOSYS;
78 static TReturn call_transfer(CoreObject *co, UserRequest *ur)
80 return TCORE_RETURN_ENOSYS;
83 static TReturn send_dtmf(CoreObject *co, UserRequest *ur)
85 return TCORE_RETURN_ENOSYS;
88 static TReturn call_mute(CoreObject *co, UserRequest *ur)
90 return TCORE_RETURN_ENOSYS;
93 static TReturn call_unmute(CoreObject *co, UserRequest *ur)
95 return TCORE_RETURN_ENOSYS;
98 static TReturn call_get_mute_status(CoreObject *co, UserRequest *ur)
100 return TCORE_RETURN_ENOSYS;
103 static struct tcore_call_operations call_ops = {
105 .answer = call_answer,
108 .active = call_active,
112 .deflect = call_deflect,
113 .transfer = call_transfer,
114 .send_dtmf = send_dtmf,
115 .set_sound_path = NULL,
116 .set_sound_volume_level = NULL,
117 .get_sound_volume_level = NULL,
119 .unmute = call_unmute,
120 .get_mute_status = call_get_mute_status,
121 .set_sound_recording = NULL,
122 .set_sound_equalization = NULL,
123 .set_sound_noise_reduction = NULL,
126 static struct tcore_call_control_operations call_control_ops = {
127 .answer_hold_and_accept = NULL,
128 .answer_replace = NULL,
129 .answer_reject = NULL,
130 .end_specific = NULL,
131 .end_all_active = NULL,
132 .end_all_held = NULL,
142 gboolean at_call_init(TcorePlugin *cp)
147 co = tcore_call_new(cp, &call_ops, NULL);
151 tcore_call_control_set_operations(co, &call_control_ops);
153 server = tcore_plugin_ref_server(cp);
154 tcore_server_add_template_object(server, co);
159 void at_call_exit(TcorePlugin *cp)
166 co = tcore_plugin_ref_core_object(cp, CORE_OBJECT_TYPE_CALL);
170 tcore_object_free(co);