Fix test function of tel_join_call() in tapiest 36/140236/1
authorsinikang <sinikang@samsung.com>
Mon, 24 Jul 2017 07:44:21 +0000 (16:44 +0900)
committersinikang <sinikang@samsung.com>
Mon, 24 Jul 2017 07:44:21 +0000 (16:44 +0900)
Change-Id: Ie0f1e160d27f2268a6bfde962d502335b33efe06

packaging/libtapi.spec
test_src/call.c

index 6319f999de092dd216ade1d80ad41d44c5656473..6be239beef9fe2019f6393c113063a2cf8e92e7a 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 8
-%define patchlevel 21
+%define patchlevel 22
 
 Name:           libtapi
 Version:        %{major}.%{minor}.%{patchlevel}
index a81a3e3d11eb7cb1d6168aba46397506cbb9d20a..d9faaea8ead9ba440efa2e200833c9bcd01090ef 100644 (file)
@@ -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, },
 };