From 082bc1f363c5501bfdaeb8425a89a48640c18ed4 Mon Sep 17 00:00:00 2001 From: sinikang Date: Mon, 24 Jul 2017 16:44:21 +0900 Subject: [PATCH] Fix test function of tel_join_call() in tapiest Change-Id: Ie0f1e160d27f2268a6bfde962d502335b33efe06 --- packaging/libtapi.spec | 2 +- test_src/call.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packaging/libtapi.spec b/packaging/libtapi.spec index 6319f99..6be239b 100644 --- a/packaging/libtapi.spec +++ b/packaging/libtapi.spec @@ -1,6 +1,6 @@ %define major 0 %define minor 8 -%define patchlevel 21 +%define patchlevel 22 Name: libtapi Version: %{major}.%{minor}.%{patchlevel} diff --git a/test_src/call.c b/test_src/call.c index a81a3e3..d9faaea 100644 --- a/test_src/call.c +++ b/test_src/call.c @@ -550,13 +550,14 @@ static int run_call_join(MManager *mm, struct menu_data *menu) { TapiHandle *handle = menu_manager_ref_user_data(mm); int result; - unsigned int call_id; + unsigned int call_id, call_id2; msg("call tel_join_call()"); call_id = atoi(data_call_id); + call_id2 = atoi(data_call_id2); - result = tel_join_call(handle, call_id, 0, on_join_call, NULL); + result = tel_join_call(handle, call_id, call_id2, on_join_call, NULL); if (result != TAPI_API_SUCCESS) msg("failed. (result = %d)", result); @@ -949,11 +950,13 @@ static struct menu_data menu_call_swap[] = { { "1", "id", NULL, NULL, data_call_id}, { "2", "id2", NULL, NULL, data_call_id2}, { "3", "run", NULL, run_call_swap, NULL}, + { NULL, NULL, }, }; static struct menu_data menu_call_join[] = { { "1", "id", NULL, NULL, data_call_id}, - { "2", "run", NULL, run_call_join, NULL}, + { "2", "id2", NULL, NULL, data_call_id2}, + { "3", "run", NULL, run_call_join, NULL}, { NULL, NULL, }, }; -- 2.34.1