aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-05-15 18:37:05 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2020-05-15 18:42:20 +0200
commit4c2a1eaea25c7e06eeea8fab281e5525a7ce9272 (patch)
treea5d34042c18edbe33f730d3a69ed8214523f00ff
parent45b664b8af4683990a2f221011b4d88284619690 (diff)
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
-rw-r--r--mgw/MGCP_Test.ttcn6
1 files changed, 5 insertions, 1 deletions
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 77eed4b8..0de53087 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -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);
}