Skip to content
Snippets Groups Projects
Commit f4bdbfd9 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#6298: Fix record file name serialization for conference

parent 0949b191
Branches
Tags
No related merge requests found
...@@ -499,8 +499,7 @@ gchar* serialize_history_call_entry (callable_obj_t *entry) ...@@ -499,8 +499,7 @@ gchar* serialize_history_call_entry (callable_obj_t *entry)
account_id, separator, account_id, separator,
record_file, separator, record_file, separator,
confID, separator, confID, separator,
time_added, time_added, NULL);
NULL);
return result; return result;
} }
......
...@@ -266,9 +266,10 @@ gchar *serialize_history_conference_entry(conference_obj_t *entry) ...@@ -266,9 +266,10 @@ gchar *serialize_history_conference_entry(conference_obj_t *entry)
time_start, separator, time_start, separator,
time_stop, separator, time_stop, separator,
confID, separator, confID, separator,
"", separator, // peer AccountID "empty", separator, // peer AccountID
entry->_recordfile ? entry->_recordfile : "", entry->_recordfile ? entry->_recordfile : "", separator,
NULL); "empty", separator,
"empty", NULL);
return result; return result;
...@@ -291,14 +292,14 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob ...@@ -291,14 +292,14 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob
DEBUG("Conference: Create a conference from serialized form"); DEBUG("Conference: Create a conference from serialized form");
ptr = g_strsplit(entry, delim, 8); ptr = g_strsplit(entry, delim, 10);
while(ptr != NULL && token < 8) { while(ptr != NULL && token < 10) {
switch(token) { switch(token) {
case 0: case 0:
history_state = MISSED; history_state = MISSED;
break; break;
case 1: case 1:
participant = g_strdup(*ptr); participant = *ptr;
break; break;
case 2: case 2:
name = *ptr; name = *ptr;
...@@ -318,6 +319,8 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob ...@@ -318,6 +319,8 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob
case 7: case 7:
recordfile = *ptr; recordfile = *ptr;
break; break;
case 8:
case 9:
default: default:
break; break;
} }
...@@ -329,9 +332,10 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob ...@@ -329,9 +332,10 @@ void create_conference_history_entry_from_serialized(gchar *entry, conference_ob
// create a new empty conference // create a new empty conference
create_new_conference(state, confID, conf); create_new_conference(state, confID, conf);
// process_conference_participant_from_serialized(participant, *conf); (*conf)->_time_start = convert_gchar_to_timestamp(time_start);
(*conf)->_time_stop = convert_gchar_to_timestamp(time_stop);
(*conf)->_recordfile = g_strdup(recordfile);
g_free(participant);
} }
static void process_conference_participant_from_serialized(gchar *participant, conference_obj_t *conf) static void process_conference_participant_from_serialized(gchar *participant, conference_obj_t *conf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment