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

accountID are stored in call history

parent 3e2a4f2c
No related branches found
No related tags found
No related merge requests found
...@@ -677,7 +677,17 @@ sflphone_place_call ( call_t * c ) ...@@ -677,7 +677,17 @@ sflphone_place_call ( call_t * c )
else else
{ {
account_t * current = account_list_get_current(); account_t * current;
if(c->accountID != 0)
current = account_list_get_by_id(c->accountID);
else
current = account_list_get_current();
// printf("sflphone_place_call :: c->accountID : %i \n",c->accountID);
// account_t * current = c->accountID;
if( current ) if( current )
{ {
if(g_strcasecmp(g_hash_table_lookup( current->properties, "Status"),"REGISTERED")==0) if(g_strcasecmp(g_hash_table_lookup( current->properties, "Status"),"REGISTERED")==0)
......
...@@ -37,7 +37,7 @@ GtkToolItem * hangupButton; ...@@ -37,7 +37,7 @@ GtkToolItem * hangupButton;
GtkToolItem * holdButton; GtkToolItem * holdButton;
GtkToolItem * transfertButton; GtkToolItem * transfertButton;
GtkToolItem * unholdButton; GtkToolItem * unholdButton;
GtkToolItem * historyButton; // GtkToolItem * historyButton;
GtkToolItem * mailboxButton; GtkToolItem * mailboxButton;
GtkToolItem * recButton; GtkToolItem * recButton;
guint transfertButtonConnId; //The button toggled signal connection ID guint transfertButtonConnId; //The button toggled signal connection ID
...@@ -395,6 +395,7 @@ void row_activated(GtkTreeView *tree_view UNUSED, ...@@ -395,6 +395,7 @@ void row_activated(GtkTreeView *tree_view UNUSED,
break; break;
} }
} }
// if history
else else
{ {
newCall = g_new0( call_t, 1 ); newCall = g_new0( call_t, 1 );
...@@ -405,7 +406,8 @@ void row_activated(GtkTreeView *tree_view UNUSED, ...@@ -405,7 +406,8 @@ void row_activated(GtkTreeView *tree_view UNUSED,
g_sprintf(newCall->callID, "%d", rand()); g_sprintf(newCall->callID, "%d", rand());
newCall->_start = 0; newCall->_start = 0;
newCall->_stop = 0; newCall->_stop = 0;
printf("call : account : %s \n", selectedCall->accountID);
newCall->accountID = selectedCall->accountID;
printf("call : from : %s to %s\n", newCall->from, newCall->to); printf("call : from : %s to %s\n", newCall->from, newCall->to);
call_list_add(current_calls, newCall); call_list_add(current_calls, newCall);
update_call_tree_add(current_calls, newCall); update_call_tree_add(current_calls, newCall);
......
...@@ -222,7 +222,7 @@ IAXVoIPLink::getEvent() ...@@ -222,7 +222,7 @@ IAXVoIPLink::getEvent()
} }
if(call){ if(call){
_debug("Are we recording"); // _debug("Are we recording");
call->recAudio.recData(spkrDataConverted,micData,nbSampleForRec_,nbSampleForRec_); call->recAudio.recData(spkrDataConverted,micData,nbSampleForRec_,nbSampleForRec_);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment