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