Commit ef4087ab authored by Alexandre Savard's avatar Alexandre Savard

accountID are stored in call history

parent 3e2a4f2c
......@@ -677,7 +677,17 @@ sflphone_place_call ( call_t * c )
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(g_strcasecmp(g_hash_table_lookup( current->properties, "Status"),"REGISTERED")==0)
......
......@@ -37,7 +37,7 @@ GtkToolItem * hangupButton;
GtkToolItem * holdButton;
GtkToolItem * transfertButton;
GtkToolItem * unholdButton;
GtkToolItem * historyButton;
// GtkToolItem * historyButton;
GtkToolItem * mailboxButton;
GtkToolItem * recButton;
guint transfertButtonConnId; //The button toggled signal connection ID
......@@ -395,6 +395,7 @@ void row_activated(GtkTreeView *tree_view UNUSED,
break;
}
}
// if history
else
{
newCall = g_new0( call_t, 1 );
......@@ -405,7 +406,8 @@ void row_activated(GtkTreeView *tree_view UNUSED,
g_sprintf(newCall->callID, "%d", rand());
newCall->_start = 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);
call_list_add(current_calls, newCall);
update_call_tree_add(current_calls, newCall);
......
......@@ -222,7 +222,7 @@ IAXVoIPLink::getEvent()
}
if(call){
_debug("Are we recording");
// _debug("Are we recording");
call->recAudio.recData(spkrDataConverted,micData,nbSampleForRec_,nbSampleForRec_);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment