mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
mgcp: Add testdata for MDCX handling
This commit is contained in:
@@ -34,6 +34,21 @@
|
||||
#define SHORT "CRCX \r\n"
|
||||
#define SHORT_RET "510 000000 FAIL\r\n"
|
||||
|
||||
#define MDCX_WRONG_EP "MDCX 18983213 ds/e1-3/1@172.16.6.66 MGCP 1.0\r\n"
|
||||
#define MDCX_ERR_RET "510 18983213 FAIL\r\n"
|
||||
#define MDCX_UNALLOCATED "MDCX 18983214 ds/e1-1/2@172.16.6.66 MGCP 1.0\r\n"
|
||||
#define MDCX_RET "400 18983214 FAIL\r\n"
|
||||
#define MDCX3 "MDCX 18983215 1@mgw MGCP 1.0\r\n"
|
||||
#define MDCX3_RET "200 18983215 OK\r\n" \
|
||||
"I: 1\n" \
|
||||
"\n" \
|
||||
"v=0\r\n" \
|
||||
"o=- 1 23 IN IP4 0.0.0.0\r\n" \
|
||||
"c=IN IP4 0.0.0.0\r\n" \
|
||||
"t=0 0\r\n" \
|
||||
"m=audio 0 RTP/AVP 126\r\n" \
|
||||
"a=rtpmap:126 AMR/8000\r\n"
|
||||
|
||||
#define SHORT2 "CRCX 1"
|
||||
#define SHORT2_RET "510 000000 FAIL\r\n"
|
||||
#define SHORT3 "CRCX 1 1@mgw"
|
||||
@@ -103,7 +118,10 @@ struct mgcp_test {
|
||||
static const struct mgcp_test tests[] = {
|
||||
{ "AUEP1", AUEP1, AUEP1_RET },
|
||||
{ "AUEP2", AUEP2, AUEP2_RET },
|
||||
{ "MDCX1", MDCX_WRONG_EP, MDCX_ERR_RET },
|
||||
{ "MDCX2", MDCX_UNALLOCATED, MDCX_RET },
|
||||
{ "CRCX", CRCX, CRCX_RET },
|
||||
{ "MDCX3", MDCX3, MDCX3_RET },
|
||||
{ "DLCX", DLCX, DLCX_RET },
|
||||
{ "CRCX_ZYN", CRCX_ZYN, CRCX_ZYN_RET },
|
||||
{ "EMPTY", EMPTY, EMPTY_RET },
|
||||
|
@@ -1,6 +1,9 @@
|
||||
Testing AUEP1
|
||||
Testing AUEP2
|
||||
Testing MDCX1
|
||||
Testing MDCX2
|
||||
Testing CRCX
|
||||
Testing MDCX3
|
||||
Testing DLCX
|
||||
Testing CRCX_ZYN
|
||||
Testing EMPTY
|
||||
|
Reference in New Issue
Block a user