MGCP_Test: do not use leading zeros in endpoint identifiers

The endpoint number of a virtual endpoint must not use leading zeros
but, but the testcase MGCP_Test.TC_crcx_dlcx_30ep does. Lets not do this
as it violates the spec. See also: RFC 3435, section E.3.

Change-Id: I99d2fa76cb60d0d671c9413f3dbd711ec68aeb77
Related: OS#2659
This commit is contained in:
Philipp Maier 2020-05-15 18:37:05 +02:00
parent 45b664b8af
commit 4c2a1eaea2
1 changed files with 5 additions and 1 deletions

View File

@ -1420,7 +1420,11 @@ module MGCP_Test {
f_init();
for (ep_nr := 1; ep_nr < 30; ep_nr := ep_nr+1) {
ep := c_mgw_ep_rtpbridge & hex2str(int2hex(ep_nr, 2)) & "@" & c_mgw_domain;
if(ep_nr > 15) {
ep := c_mgw_ep_rtpbridge & hex2str(int2hex(ep_nr, 2)) & "@" & c_mgw_domain;
} else {
ep := c_mgw_ep_rtpbridge & hex2str(int2hex(ep_nr, 1)) & "@" & c_mgw_domain;
}
call_id := int2hex(ep_nr, 2) & '1234'H;
f_crcx_and_dlcx_ep_callid_connid(ep, call_id);
}