优化demo代码和api接口
Change-Id: I094570a31d63204aaa5da809751e27acd60f60d8
diff --git a/mbtk/test/liblynq_lib/lynq_call_test.c b/mbtk/test/liblynq_lib/lynq_call_test.c
index c68d92e..670eb10 100755
--- a/mbtk/test/liblynq_lib/lynq_call_test.c
+++ b/mbtk/test/liblynq_lib/lynq_call_test.c
@@ -300,22 +300,23 @@
voice_client_handle_type handle = -1;
int voice_call_id = 0;
mbtk_log_init("radio", "CALL_TEST");
-
+
+ printf("=========call main=========\n"
+ "\t0 exit\n"
+ "\t1 call init\n"
+ "\t2 call add register handle\n"
+ "\t3 call start\n"
+ "\t4 call end\n"
+ "\t5 call answer\n"
+ "\t6 call remove register handle\n"
+ "\t7 call set volume level 0-5\n"
+ "\t8 call get volume\n"
+ "\t9 call dtmf\n"
+ "\t10 call deinit\n"
+ "operator: >> \n");
+
while(1)
{
- printf("=========call main=========\n"
- "\t0 exit\n"
- "\t1 call init\n"
- "\t2 call add register handle\n"
- "\t3 call start\n"
- "\t4 call end\n"
- "\t5 call answer\n"
- "\t6 call remove register handle\n"
- "\t7 call set volume level 0-5\n"
- "\t8 call get volume\n"
- "\t9 call deinit\n"
- "operator: >> \n");
-
fgets(operator, sizeof(operator), stdin);
fflush(stdin);
opt = atoi(operator);
@@ -362,6 +363,20 @@
printf("volume level = %d\n",lv_voll);
break;
case 9:
+ {
+ char inputChar;
+
+ printf("Enter set dtmf\n");
+ scanf(" %c", &inputChar);
+ printf("inputChar is %c\n", inputChar);
+
+ if (qser_voice_set_dtmf(inputChar) != 0)
+ {
+ printf("qser set voice dtmf failed\n");
+ }
+ }
+ break;
+ case 10:
qser_voice_call_client_deinit(handle);
break;
default: