Commit 80aa779e authored by Alexandre Savard's avatar Alexandre Savard

[#1407] Add a scenario to pick_up action

For pick up action,
When there is no call selected, the default action is a new call
parent b73ed396
......@@ -294,7 +294,7 @@ sflphone_hang_up()
void
sflphone_pick_up()
{
printf("sflphone_pick_up\n");
call_t * selectedCall = calltab_get_selected_call(active_calltree);
if(selectedCall)
{
......@@ -328,6 +328,10 @@ sflphone_pick_up()
break;
}
}
else {
sflphone_new_call();
}
}
void
......@@ -536,6 +540,8 @@ sflphone_new_call()
call_t *c;
gchar *from, *to;
printf("sflphone_new_call\n");
sflphone_on_hold();
// Play a tone when creating a new call
......
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