[Bugfix][T108][bug-view-1234] in demo, test gsw_voice_set_rtp_port fail
Only Configure: No
Affected branch: unknown
Affected module: rtp
Is it affected on both ZXIC and ASR: only ASR
Self-test: yes
Doc Update: no
Change-Id: I66c71d2fb3bc40a774be580aa80e58807c703d3c
diff --git a/mbtk/test/libgsw_lib/gsw_voice_test.c b/mbtk/test/libgsw_lib/gsw_voice_test.c
index 28098c2..93d64e6 100755
--- a/mbtk/test/libgsw_lib/gsw_voice_test.c
+++ b/mbtk/test/libgsw_lib/gsw_voice_test.c
@@ -429,16 +429,23 @@
int mode;
int port;
- printf("Enter set mode (0: server, 1:client)\n");
+ printf("Enter set mode (0: client, 1: server)\n");
printf("%d\n",scanf("%d", &mode));
fflush(stdin);
printf("mode is %d\n", mode);
-
- printf("Enter set port\n");
+
+ if(mode==0)
+ {
+ printf("Enter set port, for client, port should > 1024 and < 65535\n");
+ }
+ else
+ {
+ printf("Enter set port, for server, port should >= 0 and <= 7\n");
+ }
printf("%d\n",scanf("%d", &port));
fflush(stdin);
printf("port is %d\n", port);
-
+
ret = gsw_voice_set_rtp_port(mode,port);
if(ret != 0)
{