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

[#2006] Update conference_added_cb to add new conference to the list

parent 2d1e1839
No related branches found
No related tags found
No related merge requests found
......@@ -977,8 +977,9 @@ void sflphone_fill_conference_list(void)
{
gchar** conferences = (gchar**)dbus_get_conference_list();
gchar** pl;
GHashTable *conference_details;
gchar* conf_id;
gchar* c;
conference_obj_t* c;
DEBUG("sflphone_fill_conference_list");
......@@ -986,9 +987,11 @@ void sflphone_fill_conference_list(void)
{
for (pl = conferences; *conferences; conferences++)
{
c = g_new0(gchar,1);
c = g_new0(conference_obj_t, 1);
conf_id = (gchar*)(*conferences);
c = g_strdup(conf_id);
conference_details = dbus_get_conference_details(conf_id);
create_new_call_from_details (conf_id, conference_details, &c);
c->_confID = g_strdup(conf_id);
conferencelist_add(c);
}
......
......@@ -218,7 +218,11 @@ conference_added_cb (DBusGProxy *proxy UNUSED,
void * foo UNUSED )
{
DEBUG ("Conference added %s\n", confID);
// sflphone_display_transfer_status("Transfer successfull");
conference_obj_t* new_conf;
create_new_conference(CONFERENCE_STATE_ACTIVE, confID, &new_conf);
conferencelist_add(new_conf);
calltree_add_conference (current_calls, confID);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment