Empty number means re-dial and should be passed as NULL. --- android/hal-handsfree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c index 4117ed0..196b046 100644 --- a/android/hal-handsfree.c +++ b/android/hal-handsfree.c @@ -89,8 +89,13 @@ static void handle_dial(void *buf, uint16_t len) exit(EXIT_FAILURE); } - if (cbs->dial_call_cmd_cb) + if (!cbs->dial_call_cmd_cb) + return; + + if (ev->number_len) cbs->dial_call_cmd_cb((char *) ev->number); + else + cbs->dial_call_cmd_cb(NULL); } static void handle_dtmf(void *buf, uint16_t len) -- 1.8.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html