mgw: f_tc_two_crcx_mdcx_and_rtp: add arguments
Add arguments for codec_name and payload_type. Related: OS#4395 Change-Id: I94d1628470db49c53eda64c29bc0716bcb339798
This commit is contained in:
parent
e5af8a3576
commit
3cfa2cce75
|
@ -1990,7 +1990,9 @@ module MGCP_Test {
|
||||||
|
|
||||||
/* create two local RTP emulations and pass data in both directions */
|
/* create two local RTP emulations and pass data in both directions */
|
||||||
function f_tc_two_crcx_mdcx_and_rtp(charstring local_ip_a, charstring remote_ip_a,
|
function f_tc_two_crcx_mdcx_and_rtp(charstring local_ip_a, charstring remote_ip_a,
|
||||||
charstring local_ip_b, charstring remote_ip_b) runs on dummy_CT {
|
charstring local_ip_b, charstring remote_ip_b,
|
||||||
|
uint7_t payload_type := 3,
|
||||||
|
charstring codec_name := "GSM/8000/1") runs on dummy_CT {
|
||||||
var RtpFlowData flow[2];
|
var RtpFlowData flow[2];
|
||||||
var RtpemStats stats[2];
|
var RtpemStats stats[2];
|
||||||
var MgcpResponse resp;
|
var MgcpResponse resp;
|
||||||
|
@ -2002,13 +2004,13 @@ module MGCP_Test {
|
||||||
f_init(ep);
|
f_init(ep);
|
||||||
|
|
||||||
/* Create the first connection in receive only mode */
|
/* Create the first connection in receive only mode */
|
||||||
flow[0] := valueof(t_RtpFlow(local_ip_a, remote_ip_a, 3, "GSM/8000/1"));
|
flow[0] := valueof(t_RtpFlow(local_ip_a, remote_ip_a, payload_type, codec_name));
|
||||||
flow[0].em.portnr := 10000;
|
flow[0].em.portnr := 10000;
|
||||||
f_flow_create(RTPEM[0], ep, call_id, "recvonly", flow[0], true);
|
f_flow_create(RTPEM[0], ep, call_id, "recvonly", flow[0], true);
|
||||||
|
|
||||||
/* Create the second connection. This connection will be also
|
/* Create the second connection. This connection will be also
|
||||||
* in receive only mode */
|
* in receive only mode */
|
||||||
flow[1] := valueof(t_RtpFlow(local_ip_b, remote_ip_b, 3, "GSM/8000/1"));
|
flow[1] := valueof(t_RtpFlow(local_ip_b, remote_ip_b, payload_type, codec_name));
|
||||||
flow[1].em.portnr := 20000;
|
flow[1].em.portnr := 20000;
|
||||||
f_flow_create(RTPEM[1], ep, call_id, "recvonly", flow[1], true);
|
f_flow_create(RTPEM[1], ep, call_id, "recvonly", flow[1], true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue