Make call to defined phone number
Establish phone call to defined phone number
// PRIVILEGE needed to be set in tizen-manifest.xml:
// http://tizen.org/privilege/appmanager.launch
// http://tizen.org/privilege/call
#include <dlog.h> // for logging purposes
#include <app_control.h>
void
call_number(char* number) {
app_control_h app_control = NULL;
app_control_create(&app_control);
app_control_set_app_id(app_control, "com.samsung.call");
app_control_add_extra_data(app_control, "number", number);
app_control_add_extra_data(app_control, "launch-type", "MO");
if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
LOGI("Phone launched!");
app_control_destroy(app_control);
}