[feature][T8TSK-195][TCAM_T800_SW_0284][rtp] add interface to set call rtp ssrc
Change-Id: I73909cdeba4b835e23460a1dd4a0f8da9dda8c91
diff --git a/src/lynq/lib/liblynq-call/include/libcall/lynq_call.h b/src/lynq/lib/liblynq-call/include/libcall/lynq_call.h
index 21de03b..ec50ef7 100755
--- a/src/lynq/lib/liblynq-call/include/libcall/lynq_call.h
+++ b/src/lynq/lib/liblynq-call/include/libcall/lynq_call.h
@@ -151,7 +151,7 @@
typedef enum{
Rtp_Ssrc_random = 0,
- RTP_Ssrc_specific =1,
+ Rtp_Ssrc_specific =1,
}LYNQ_Rtp_Ssrc_Mode;
/*set*/
@@ -168,7 +168,7 @@
int lynq_get_vlan_info(char* vlan_info, const int vlan_info_length);
int lynq_get_rtp_port(const LYNQ_Rtp_Mode rtp_mode, int* port);
int lynq_get_rtp_param(int* clock_rate,int* channels, int* latency);//only for client
-int lynq_get_call_rtp_ssrc(LYNQ_Rtp_Ssrc_Mode* ssrc_mod, unsigned int* ssrc);
+int lynq_get_call_rtp_ssrc(int* ssrc_mod, unsigned int* ssrc);
/*Audio Path setting end*/
void lynq_set_test_mode(const int test_mode);
diff --git a/src/lynq/lib/liblynq-call/lynq_call_rtp.cpp b/src/lynq/lib/liblynq-call/lynq_call_rtp.cpp
index 9e0d546..4d6c1b3 100755
--- a/src/lynq/lib/liblynq-call/lynq_call_rtp.cpp
+++ b/src/lynq/lib/liblynq-call/lynq_call_rtp.cpp
@@ -29,7 +29,7 @@
{
char ip[MAX_IP_LENGTH];
int port;
- LYNQ_Rtp_Ssrc_Mode ssrc_mode;
+ int ssrc_mode;
unsigned int ssrc;
char vlan_info[MAX_VLAN_INFO_LENGTH];
}lynq_rtp_server_info;
@@ -126,7 +126,7 @@
sprintf(vlan_para_string,RTP_VLAN_INFO_FORMAT,g_rtp_server_info.vlan_info);
}
- if(g_rtp_server_info.ssrc_mode == RTP_Ssrc_specific)
+ if(g_rtp_server_info.ssrc_mode == Rtp_Ssrc_specific)
{
sprintf(ssrc_para_string,RTP_SSRC_INFO_FORMAT,g_rtp_server_info.ssrc);
}
@@ -287,7 +287,7 @@
}
int lynq_set_call_rtp_ssrc(const LYNQ_Rtp_Ssrc_Mode ssrc_mode,const unsigned int ssrc)
{
- if(ssrc_mode < Rtp_Ssrc_random || ssrc_mode > RTP_Ssrc_specific)
+ if(ssrc_mode < Rtp_Ssrc_random || ssrc_mode > Rtp_Ssrc_specific)
{
return LYNQ_E_PARAMETER_ANONALY;
}
@@ -376,7 +376,7 @@
return RESULT_OK;
}
-int lynq_get_call_rtp_ssrc(LYNQ_Rtp_Ssrc_Mode* ssrc_mode, unsigned int* ssrc)
+int lynq_get_call_rtp_ssrc(int* ssrc_mode, unsigned int* ssrc)
{
if(ssrc_mode == NULL || ssrc ==NULL)
{