Display popup message in casee ciss launch is failed 82/72182/1 accepted/tizen/common/20160602.140248 accepted/tizen/ivi/20160602.230822 accepted/tizen/mobile/20160602.230841 submit/tizen/20160602.021644 submit/tizen/20160602.064517
authorWootak Jung <wootak.jung@samsung.com>
Tue, 31 May 2016 06:02:42 +0000 (15:02 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 31 May 2016 06:02:42 +0000 (15:02 +0900)
Change-Id: I65cb0911d5ec325adf7251e5f88f0ae6ad128de9

common/src/callmgr-util.c
service/src/callmgr-core.c

index 35179aa..e37460d 100755 (executable)
@@ -794,6 +794,9 @@ int _callmgr_util_launch_ciss(const char* number, int sim_slot)
                warn("app_control_add_extra_data() is failed");
        } else if (app_control_send_launch_request(app_control, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
                warn("app_control_send_launch_request() is failed");
+               free(sim_slot_id_string);
+               app_control_destroy(app_control);
+               return -1;
        }
 
        free(sim_slot_id_string);
index 47b2909..2164c31 100644 (file)
@@ -2526,7 +2526,11 @@ int _callmgr_core_process_dial(callmgr_core_data_t *core_data, const char *numbe
 
        if (is_ss) {
                info("SS string");
-               _callmgr_util_launch_ciss(number, active_sim);
+               ret = _callmgr_util_launch_ciss(number, active_sim);
+               if (ret != 0) {
+                       err("ciss launch failed. display popup message");
+                       __callmgr_core_launch_error_popup(CALL_ERR_CAUSE_WRONG_NUMBER_E, number);
+               }
                _callmgr_dbus_send_dial_status(core_data, CALL_MANAGER_DIAL_FAIL_SS);
                return 0;
        }