call_status = TCORE_CALL_STATUS_DIALING;
}
- if(TCORE_CALL_STATUS_MT_SETUP == call_status){
+ if (TCORE_CALL_STATUS_MT_SETUP == call_status) {
dbg("MT_SETUP state but Incoming noti not notifed to app," \
"so change it to 'IDLE' ");
call_status = TCORE_CALL_STATUS_IDLE;
g_variant_builder_add(&b, "{sv}", "added_to_conference",
g_variant_new_boolean(added_to_conference));
g_variant_builder_add(&b, "{sv}", "audio_codec",
- g_variant_new_string(audio_codec));
+ audio_codec ? g_variant_new_string(audio_codec) : g_variant_new_string(""));
g_variant_builder_close(&b);
/* Next Call object */
g_variant_get(unpack_participant_v, "as", &iter);
req.participants_list = NULL;
- while (g_variant_iter_loop(iter, "s", &participant)&& (index < num_participants)) {
+ while (g_variant_iter_loop(iter, "s", &participant) && (index < num_participants)) {
dbg("participant_number[%d] = [%s]", index, participant);
req.participants_list = g_slist_append(req.participants_list, g_strdup(participant));
index++;
static gboolean on_call_modify_participants_in_conference(TelephonyCall *call,
GDBusMethodInvocation *invocation,
- gint call_handle, gint type, gint num_participants ,GVariant* participants_list, gpointer user_data)
+ gint call_handle, gint type, gint num_participants, GVariant* participants_list, gpointer user_data)
{
struct custom_data *ctx = user_data;
struct treq_call_modify_participans_in_conference req = {0};
g_variant_get(unpack_participant_v, "as", &iter);
req.participants_list = NULL;
- while (g_variant_iter_loop(iter, "s", &participant)&& (index < num_participants)) {
+ while (g_variant_iter_loop(iter, "s", &participant) && (index < num_participants)) {
dbg("participant_number[%d] = [%s]", index, participant);
req.participants_list = g_slist_append(req.participants_list, g_strdup(participant));
index++;
} else if (noti->rec_info.type == CALL_REC_NUMBER_INFO) {
packet_param = g_variant_new_string(noti->rec_info.data.number);
param = g_variant_new("v", packet_param);
- } else if (noti->rec_info.type == CALL_REC_LINE_CTRL_INFO){
+ } else if (noti->rec_info.type == CALL_REC_LINE_CTRL_INFO) {
g_variant_builder_init(&b, G_VARIANT_TYPE("a{si}"));
g_variant_builder_add(&b, "{si}", "polarity_included", noti->rec_info.data.line_ctrl.polarity_included);
g_variant_builder_add(&b, "{si}", "toggle_mode", noti->rec_info.data.line_ctrl.toggle_mode);
g_variant_builder_add(&b, "{si}", "power_denial_time", noti->rec_info.data.line_ctrl.power_denial_time);
packet_param = g_variant_builder_end(&b);
param = g_variant_new("v", packet_param);
- }else {
+ } else {
err("Unknown rec info type (%d)", noti->rec_info.type);
return FALSE;
}
- dbg("[ check ] TNOTI_CALL_INFO_REC : id:(%d) type:(%d)",noti->rec_info.handle, noti->rec_info.type);
- telephony_call_emit_call_info_rec( call, noti->rec_info.handle, noti->rec_info.type, param);
+ dbg("[ check ] TNOTI_CALL_INFO_REC : id:(%d) type:(%d)", noti->rec_info.handle, noti->rec_info.type);
+ telephony_call_emit_call_info_rec(call, noti->rec_info.handle, noti->rec_info.type, param);
} break;
case TNOTI_CALL_SOUND_PATH: {
break;
case TNOTI_CALL_INFO_MODIFIABLE:{
- struct tnoti_call_info_modifiable* noti = (struct tnoti_call_info_modifiable* )data;
+ struct tnoti_call_info_modifiable* noti = (struct tnoti_call_info_modifiable*)data;
dbg("[%s] CALL_INFO_MODIFIABLE: Call handle: [%d] modifiable: [%d]",
cp_name, noti->handle, noti->modifiable);