4 * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
28 #include <tapi_common.h>
30 #include <TapiUtility.h>
35 static char data_ss_set_barring_class[MENU_DATA_SIZE + 1] = "16";
36 static char data_ss_set_barring_mode[MENU_DATA_SIZE + 1] = "0";
37 static char data_ss_set_barring_type[MENU_DATA_SIZE + 1] = "1";
38 static char data_ss_set_barring_password[MENU_DATA_SIZE + 1] = "1111";
40 static char data_ss_get_barring_status_class[MENU_DATA_SIZE + 1] = "16";
41 static char data_ss_get_barring_status_type[MENU_DATA_SIZE + 1] = "1";
43 static char data_ss_change_barring_password_old[MENU_DATA_SIZE + 1] = "1111";
44 static char data_ss_change_barring_password_new[MENU_DATA_SIZE + 1] = "1234";
46 static char data_ss_set_forward_class[MENU_DATA_SIZE + 1] = "16";
47 static char data_ss_set_forward_mode[MENU_DATA_SIZE + 1] = "1";
48 static char data_ss_set_forward_condition[MENU_DATA_SIZE + 1] = "5";
49 static char data_ss_set_forward_timer[MENU_DATA_SIZE + 1] = "5";
50 static char data_ss_set_forward_number[MENU_DATA_SIZE + 1] = "01030018655";
52 static char data_ss_get_forward_status_class[MENU_DATA_SIZE + 1] = "16";
53 static char data_ss_get_forward_status_condition[MENU_DATA_SIZE + 1] = "1";
55 static char data_ss_set_waiting_class[MENU_DATA_SIZE + 1] = "16";
56 static char data_ss_set_waiting_mode[MENU_DATA_SIZE + 1] = "0";
58 static char data_ss_get_waiting_status_class[MENU_DATA_SIZE + 1] = "16";
60 static char data_ss_get_cli_status_type[MENU_DATA_SIZE + 1] = "1";
61 static char data_ss_set_cli_status_type[MENU_DATA_SIZE + 1] = "1";
62 static char data_ss_set_cli_status[MENU_DATA_SIZE + 1] = "1";
64 static char data_ss_ussd_request_type[MENU_DATA_SIZE + 1] = "1";
65 static char data_ss_ussd_request_string[MENU_DATA_SIZE + 1] = "";
67 static void on_noti_ss_ussd(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
69 TelSsUssdMsgInfo_t *noti = data;
72 msgb("event(%s) receive !!", TAPI_NOTI_SS_USSD);
77 msg(" - Type = 0x%x", noti->Type);
78 msg(" - Length = 0x%x", noti->Length);
79 msg(" - szString = %s", noti->szString);
82 static void on_noti_ss_release_complete(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
84 TelSsRelCompMsgInfo_t *info = data;
88 msgb("event(%s) receive !!", TAPI_NOTI_SS_RELEASE_COMPLETE);
91 msg(" - info->RelCompMsgLen = 0x%x", info->RelCompMsgLen);
92 msg(" - info->szRelCompMsg = ");
93 for (i = 0; i < info->RelCompMsgLen; i++)
94 msg("%d : [%x]", i, info->szRelCompMsg[i]);
97 static void on_noti_ss_forwarding_status(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
99 TelSsForwardNoti_t *noti = data;
102 msg("SS Forwarding Status Noti");
104 for (i = 0; i < noti->record_num; i++) {
105 msg("class : %d", noti->record[i].Class);
106 msg("status : %d", noti->record[i].Status);
107 msg("condition : %d", noti->record[i].ForwardCondition);
108 msg("number present : %d", noti->record[i].bCallForwardingNumberPresent);
109 msg("no reply time : %d", noti->record[i].NoReplyWaitTime);
110 msg("ton : %d", noti->record[i].Ton);
111 msg("npi : %d", noti->record[i].Npi);
112 msg("number : %s", noti->record[i].szCallForwardingNumber);
118 static void on_noti_ss_barring_status(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
120 TelSsBarringNoti_t *noti = data;
123 msg("SS Barring Status Noti");
125 for (i = 0; i < noti->record_num; i++) {
126 msg("class : %d", noti->record[i].Class);
127 msg("status : %d", noti->record[i].Status);
128 msg("type : %d", noti->record[i].Flavour);
134 static void on_noti_ss_waiting_status(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
136 TelSsWaitingNoti_t *noti = data;
139 msg("SS Waiting Status Noti");
141 for (i = 0; i < noti->record_num; i++) {
142 msg("class : %d", noti->record[i].Class);
143 msg("status : %d", noti->record[i].Status);
148 static void on_noti_ss_sups_info(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
150 TelSsInfo_t *noti = data;
152 msg("SS SUPS Info Noti");
154 msg("SS error : %d", noti->Cause);
155 msg("status : %d", noti->SsType);
159 static void on_ss_barring(TapiHandle *handle, int result, void *data, void *user_data)
161 TelSsBarringResp_t *resp = data;
165 msgb("tel_set_ss_barring() or tel_get_ss_barring_status() response receive");
166 msg(" - result = 0x%x", result);
171 msg(" - record_num = %d", resp->record_num);
173 for (i = 0; i < resp->record_num; i++) {
174 msg(" - [%d] Class=%d, Status=%d, Flavour=%d",
176 resp->record[i].Class,
177 resp->record[i].Status,
178 resp->record[i].Flavour);
182 static void on_ss_change_barring_password(TapiHandle *handle, int result, void *data, void *user_data)
185 msgb("tel_change_ss_barring_password() response receive");
186 msg(" - result = 0x%x", result);
189 static void on_ss_forward(TapiHandle *handle, int result, void *data, void *user_data)
191 TelSsForwardResp_t *resp = data;
195 msgb("tel_set_ss_forward() or tel_get_ss_forward_status() response receive");
196 msg(" - result = 0x%x", result);
201 msg(" - record_num = %d", resp->record_num);
203 for (i = 0; i < resp->record_num; i++) {
204 msg(" - [%d] Class=%d, Status=%d, ForwardCondition=%d, NoReplyWaitTime=%d, bCallForwardingNumberPresend=%d, szCallForwardingNumber=[%s]",
206 resp->record[i].Class,
207 resp->record[i].Status,
208 resp->record[i].ForwardCondition,
209 resp->record[i].NoReplyWaitTime,
210 resp->record[i].bCallForwardingNumberPresent,
211 resp->record[i].szCallForwardingNumber);
215 static void on_ss_waiting(TapiHandle *handle, int result, void *data, void *user_data)
217 TelSsWaitingResp_t *resp = data;
221 msgb("tel_set_ss_waiting() or tel_get_ss_waiting_status() response receive");
222 msg(" - result = 0x%x", result);
227 msg(" - record_num = %d", resp->record_num);
229 for (i = 0; i < resp->record_num; i++) {
230 msg(" - [%d] Class=%d, Status=%d",
232 resp->record[i].Class,
233 resp->record[i].Status);
237 static void on_ss_set_cli_status(TapiHandle *handle, int result, void *data, void *user_data)
240 msgb("tel_set_ss_cli_status() response receive");
241 msg(" - result = 0x%x", result);
245 static void on_ss_get_cli_status(TapiHandle *handle, int result, void *data, void *user_data)
247 TelSsCliResp_t *resp = data;
250 msgb("tel_get_ss_cli_status() response receive");
251 msg(" - result = 0x%x", result);
256 msg(" - type = %d", resp->Type);
257 msg(" - status = %d", resp->Status);
260 static void on_ss_send_ussd_request(TapiHandle *handle, int result, void *data, void *user_data)
262 TelSsUssdResp_t *resp = data;
265 msgb("tel_send_ss_ussd_request() response receive");
266 msg(" - result = 0x%x", result);
271 msg(" - type = %d", resp->Type);
272 msg(" - status = %d", resp->Status);
273 msg(" - length = %d", resp->Length);
274 msg(" - string = [%s]", resp->szString);
277 static int run_ss_set_barring(MManager *mm, struct menu_data *menu)
279 TapiHandle *handle = menu_manager_ref_user_data(mm);
281 TelSsBarringInfo_t info;
283 msg("call tel_set_ss_barring()");
285 memset(&info, 0, sizeof(TelSsBarringInfo_t));
286 info.Class = atoi(data_ss_set_barring_class);
287 info.Mode = atoi(data_ss_set_barring_mode);
288 info.Type = atoi(data_ss_set_barring_type);
289 g_strlcpy(info.szPassword, data_ss_set_barring_password, TAPI_SS_GSM_BARR_PW_LEN_MAX+1);
291 msg("info.szPassword - %s data_ss_set_barring_password- %s\n", info.szPassword, data_ss_set_barring_password);
293 result = tel_set_ss_barring(handle, &info, on_ss_barring, NULL);
294 if (result != TAPI_API_SUCCESS)
295 msg("failed. (result = %d)", result);
300 static int run_ss_get_barring_status(MManager *mm, struct menu_data *menu)
302 TapiHandle *handle = menu_manager_ref_user_data(mm);
305 TelSsBarringType_t type;
307 msg("call tel_get_ss_barring_status()");
309 class = atoi(data_ss_get_barring_status_class);
310 type = atoi(data_ss_get_barring_status_type);
312 result = tel_get_ss_barring_status(handle, class, type, on_ss_barring, NULL);
313 if (result != TAPI_API_SUCCESS)
314 msg("failed. (result = %d)", result);
319 static int run_ss_change_barring_password(MManager *mm, struct menu_data *menu)
321 TapiHandle *handle = menu_manager_ref_user_data(mm);
324 msg("call tel_change_ss_barring_password()");
326 result = tel_change_ss_barring_password(handle,
327 data_ss_change_barring_password_old,
328 data_ss_change_barring_password_new,
329 data_ss_change_barring_password_new,
330 on_ss_change_barring_password, NULL);
331 if (result != TAPI_API_SUCCESS)
332 msg("failed. (result = %d)", result);
337 static int run_ss_set_forward(MManager *mm, struct menu_data *menu)
339 TapiHandle *handle = menu_manager_ref_user_data(mm);
341 TelSsForwardInfo_t info;
344 msg("call tel_set_ss_forward()");
346 len = strlen(data_ss_set_forward_number);
347 if (len >= TAPI_CALL_DIALDIGIT_LEN_MAX - 1) {
348 msg("failed. forward_number too long");
352 memset(&info, 0, sizeof(TelSsForwardInfo_t));
353 info.Class = atoi(data_ss_set_forward_class);
354 info.Condition = atoi(data_ss_set_forward_condition);
355 info.NoReplyConditionTimer = atoi(data_ss_set_forward_timer);
356 info.Mode = atoi(data_ss_set_forward_mode);
359 strncpy((char *)info.szPhoneNumber, data_ss_set_forward_number, len);
360 info.szPhoneNumber[len] = '\0';
362 result = tel_set_ss_forward(handle, &info, on_ss_forward, NULL);
363 if (result != TAPI_API_SUCCESS)
364 msg("failed. (result = %d)", result);
369 static int run_ss_get_forward_status(MManager *mm, struct menu_data *menu)
371 TapiHandle *handle = menu_manager_ref_user_data(mm);
374 TelSsForwardWhen_t condition;
376 msg("call tel_get_ss_forward_status()");
378 class = atoi(data_ss_get_forward_status_class);
379 condition = atoi(data_ss_get_forward_status_condition);
381 result = tel_get_ss_forward_status(handle, class, condition, on_ss_forward, NULL);
382 if (result != TAPI_API_SUCCESS)
383 msg("failed. (result = %d)", result);
388 static int run_ss_set_waiting(MManager *mm, struct menu_data *menu)
390 TapiHandle *handle = menu_manager_ref_user_data(mm);
392 TelSsWaitingInfo_t info;
394 msg("call tel_set_ss_waiting()");
396 memset(&info, 0, sizeof(TelSsWaitingInfo_t));
397 info.Class = atoi(data_ss_set_waiting_class);
398 info.Mode = atoi(data_ss_set_waiting_mode);
400 result = tel_set_ss_waiting(handle, &info, on_ss_waiting, NULL);
401 if (result != TAPI_API_SUCCESS)
402 msg("failed. (result = %d)", result);
407 static int run_ss_get_waiting_status(MManager *mm, struct menu_data *menu)
409 TapiHandle *handle = menu_manager_ref_user_data(mm);
413 msg("call tel_get_ss_waiting_status()");
415 class = atoi(data_ss_get_waiting_status_class);
417 result = tel_get_ss_waiting_status(handle, class, on_ss_waiting, NULL);
418 if (result != TAPI_API_SUCCESS)
419 msg("failed. (result = %d)", result);
424 static int run_ss_set_cli_status(MManager *mm, struct menu_data *menu)
426 TapiHandle *handle = menu_manager_ref_user_data(mm);
429 TelSsCliStatus_t status;
431 msg("call tel_set_ss_cli_status()");
433 type = atoi(data_ss_set_cli_status_type);
434 status = atoi(data_ss_set_cli_status);
436 result = tel_set_ss_cli_status(handle, type, status, on_ss_set_cli_status, NULL);
437 if (result != TAPI_API_SUCCESS)
438 msg("failed. (result = %d)", result);
444 static int run_ss_get_cli_status(MManager *mm, struct menu_data *menu)
446 TapiHandle *handle = menu_manager_ref_user_data(mm);
450 msg("call tel_get_ss_cli_status()");
452 type = atoi(data_ss_get_cli_status_type);
454 result = tel_get_ss_cli_status(handle, type, on_ss_get_cli_status, NULL);
455 if (result != TAPI_API_SUCCESS)
456 msg("failed. (result = %d)", result);
461 static int run_ss_send_ussd_request(MManager *mm, struct menu_data *menu)
463 TapiHandle *handle = menu_manager_ref_user_data(mm);
465 TelSsUssdMsgInfo_t info;
467 msg("call tel_send_ss_ussd_request()");
469 memset(&info, 0, sizeof(TelSsUssdMsgInfo_t));
470 info.Type = atoi(data_ss_ussd_request_type);
472 info.Length = strlen(data_ss_ussd_request_string);
473 if (info.Length > TAPI_SS_USSD_DATA_SIZE_MAX - 1) {
474 msg("failed. string is too long.");
477 strncpy(info.szString, data_ss_ussd_request_string, TAPI_SS_USSD_DATA_SIZE_MAX - 1);
479 result = tel_send_ss_ussd_request(handle, &info, on_ss_send_ussd_request, NULL);
480 if (result != TAPI_API_SUCCESS)
481 msg("failed. (result = %d)", result);
486 static struct menu_data menu_ss_set_barring[] = {
487 { "1", "class", NULL, NULL, data_ss_set_barring_class},
488 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
489 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
490 { "2", "mode", NULL, NULL, data_ss_set_barring_mode},
491 { "-", "(0=Activate, 1=Deactivate)", NULL, NULL, NULL},
492 { "3", "type", NULL, NULL, data_ss_set_barring_type},
493 { "-", "(1=All outgoing calls, 2=Outgoing international calls, 3=BOIC_NOT_HC", NULL, NULL, NULL},
494 { "-", " 4=All incoming calls, 5=BIC_ROAM, 6=AB, 7=AOB, 8=AIB, 9=BIC_NOT_SIM)", NULL, NULL, NULL},
495 { "4", "password", NULL, NULL, data_ss_set_barring_password},
496 { "5", "run", NULL, run_ss_set_barring, NULL},
500 static struct menu_data menu_ss_get_barring_status[] = {
501 { "1", "class", NULL, NULL, data_ss_get_barring_status_class},
502 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
503 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
504 { "2", "type", NULL, NULL, data_ss_get_barring_status_type},
505 { "-", "(1=All outgoing calls, 2=Outgoing international calls, 3=BOIC_NOT_HC", NULL, NULL, NULL},
506 { "-", " 4=All incoming calls, 5=BIC_ROAM, 6=AB, 7=AOB, 8=AIB, 9=BIC_NOT_SIM)", NULL, NULL, NULL},
507 { "3", "run", NULL, run_ss_get_barring_status, NULL},
511 static struct menu_data menu_ss_change_barring_password[] = {
512 { "1", "old password", NULL, NULL, data_ss_change_barring_password_old},
513 { "2", "new password", NULL, NULL, data_ss_change_barring_password_new},
514 { "3", "run", NULL, run_ss_change_barring_password, NULL},
518 static struct menu_data menu_ss_set_forward[] = {
519 { "1", "class", NULL, NULL, data_ss_set_forward_class},
520 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
521 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
522 { "2", "mode", NULL, NULL, data_ss_set_forward_mode},
523 { "-", "(0=Deactivate, 1=Activate, 2=Register, 3=Deregister)", NULL, NULL, NULL},
524 { "3", "condition", NULL, NULL, data_ss_set_forward_condition},
525 { "-", "(1=CFU, 2=CFB, 3=CFNRy, 4=CFNRc, 5=CF_ALL, 6=CFC)", NULL, NULL, NULL},
526 { "4", "timer", NULL, NULL, data_ss_set_forward_timer},
527 { "-", "(5/10/15/20/25/30 secs)", NULL, NULL, NULL},
528 { "5", "number", NULL, NULL, data_ss_set_forward_number},
529 { "6", "run", NULL, run_ss_set_forward, NULL},
534 static struct menu_data menu_ss_get_forward_status[] = {
535 { "1", "class", NULL, NULL, data_ss_get_forward_status_class},
536 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
537 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
538 { "2", "condition", NULL, NULL, data_ss_get_forward_status_condition},
539 { "-", "(1=CFU, 2=CFB, 3=CFNRy, 4=CFNRc, 5=CF_ALL, 6=CFC)", NULL, NULL, NULL},
540 { "3", "run", NULL, run_ss_get_forward_status, NULL},
544 static struct menu_data menu_ss_set_waiting[] = {
545 { "1", "class", NULL, NULL, data_ss_set_waiting_class},
546 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
547 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
548 { "2", "mode", NULL, NULL, data_ss_set_waiting_mode},
549 { "-", "(0=Activate, 1=Deactivate)", NULL, NULL, NULL},
550 { "3", "run", NULL, run_ss_set_waiting, NULL},
554 static struct menu_data menu_ss_get_waiting_status[] = {
555 { "1", "class", NULL, NULL, data_ss_get_waiting_status_class},
556 { "-", "(16=All teleservices, 17=All voice, 18=All data teleservices", NULL, NULL, NULL},
557 { "-", " 19=FAX, 22=SMS, 23=VGCS, 24=VBS, 25=ALL_TELE_EXPT_SMS, ...)", NULL, NULL, NULL},
558 { "2", "run", NULL, run_ss_get_waiting_status, NULL},
562 static struct menu_data menu_ss_set_cli_status[] = {
563 { "1", "type", NULL, NULL, data_ss_set_cli_status_type},
564 { "-", "(1=CLIP, 2=CLIR, 3=COLP, 4=COLR, 5=CDIP, 6=CNAP)", NULL, NULL, NULL},
565 { "2", "mode", NULL, NULL, data_ss_set_cli_status},
566 { "-", "(1=SS_CLI_STATUS_NOT_PROVISONED, 2=SS_CLI_STATUS_PROVISIONED ,)", NULL, NULL, NULL},
567 { "-", "(3=SS_CLI_STATUS_ACTIVATED, 4=SS_CLI_STATUS_UNKOWN ,)", NULL, NULL, NULL},
568 { "-", "(5 =SS_CLI_STATUS_TEMP_RESTRICTED (Only for CLIR) , 6=SS_CLI_STATUS_TEMP_ALLOWED (Only for CLIR) ,)", NULL, NULL, NULL},
569 { "3", "run", NULL, run_ss_set_cli_status, NULL},
573 static struct menu_data menu_ss_get_cli_status[] = {
574 { "1", "type", NULL, NULL, data_ss_get_cli_status_type},
575 { "-", "(1=CLIP, 2=CLIR, 3=COLP, 4=COLR, 5=CDIP, 6=CNAP)", NULL, NULL, NULL},
576 { "2", "run", NULL, run_ss_get_cli_status, NULL},
580 static struct menu_data menu_ss_send_ussd_request[] = {
581 { "1", "type", NULL, NULL, data_ss_ussd_request_type},
582 { "-", "(1=INIT, 2=RSP, 3=REL)", NULL, NULL, NULL},
583 { "2", "string", NULL, NULL, data_ss_ussd_request_string},
584 { "3", "run", NULL, run_ss_send_ussd_request, NULL},
588 struct menu_data menu_ss_3gpp[] = {
589 { "1", "tel_set_ss_barring", menu_ss_set_barring, NULL, NULL},
590 { "2", "tel_get_ss_barring_status", menu_ss_get_barring_status, NULL, NULL},
591 { "3", "tel_change_ss_barring_password", menu_ss_change_barring_password, NULL, NULL},
592 { "4", "tel_set_ss_forward", menu_ss_set_forward, NULL, NULL},
593 { "5", "tel_get_ss_forward_status", menu_ss_get_forward_status, NULL, NULL},
594 { "6", "tel_set_ss_waiting", menu_ss_set_waiting, NULL, NULL},
595 { "7", "tel_get_ss_waiting_status", menu_ss_get_waiting_status, NULL, NULL},
596 { "8", "tel_set__cli_status", menu_ss_set_cli_status, NULL, NULL},
597 { "9", "tel_get_ss_cli_status", menu_ss_get_cli_status, NULL, NULL},
598 { "10", "tel_send_ss_ussd_request", menu_ss_send_ussd_request, NULL, NULL},
602 struct menu_data menu_ss[] = {
603 { "1", "3GPP(GSM/WCDMA/LTE)", menu_ss_3gpp, NULL, NULL},
604 { "2", "3GPP2(CDMA) Not Supported", NULL, NULL, NULL},
608 void register_ss_event(TapiHandle *handle)
612 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_USSD, on_noti_ss_ussd, NULL);
613 if (ret != TAPI_API_SUCCESS)
614 msg("event register failed(%d)", ret);
616 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_RELEASE_COMPLETE, on_noti_ss_release_complete, NULL);
617 if (ret != TAPI_API_SUCCESS)
618 msg("event register failed(%d)", ret);
620 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_FORWARD_STATUS, on_noti_ss_forwarding_status, NULL);
621 if (ret != TAPI_API_SUCCESS)
622 msg("event register failed(%d)", ret);
624 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_BARRING_STATUS, on_noti_ss_barring_status, NULL);
625 if (ret != TAPI_API_SUCCESS)
626 msg("event register failed(%d)", ret);
628 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_WAITING_STATUS, on_noti_ss_waiting_status, NULL);
629 if (ret != TAPI_API_SUCCESS)
630 msg("event register failed(%d)", ret);
632 ret = tel_register_noti_event(handle, TAPI_NOTI_SS_INFO, on_noti_ss_sups_info, NULL);
633 if (ret != TAPI_API_SUCCESS)
634 msg("event register failed(%d)", ret);