MGC_Types: Add work-around for failure to distinguish between Cmd + Resp

This commit is contained in:
Harald Welte 2017-11-24 20:41:04 +01:00
parent 51f34ada61
commit 7dc5d37b33
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ module MGCP_Types {
type charstring MgcpVerb ("EPCF", "CRCX", "MDCX", "DLCX", "RQNT", "NTFY",
"AUEP", "AUCX", "RSIP") with {
variant "TEXT_CODING(,convert=upper_case,,case_insensitive)"
/* see https://www.eclipse.org/forums/index.php/t/1088893/ on why this
* match expression is needed here */
variant "TEXT_CODING(,convert=upper_case,'((EPCF)|(CRCX)|(MDCX)|(DLCX)|(RQNT)|(NTFY)|(AUEP)|(AUCX)|(RSIP))',case_insensitive)"
};
type charstring MgcpTransId (pattern "\d#(1,9)");
type charstring MgcpEndpoint (pattern "*@*");