HACK: Workaround buggy mgw newline parser

Change-Id: Ic16dfe6c2452b2dc3e9560b0fa6bdd67fb59b2fe
daniel/mgcp-emulation
Daniel Willmann 5 years ago
parent d829b55309
commit 2073c41997
  1. 4
      library/MGCP_Types.ttcn

@ -64,7 +64,7 @@ module MGCP_Types {
variant "BEGIN('')"
variant "SEPARATOR(': ', ':[\t ]+')"
//variant "END('\r\n', '(\n)|(\r\n)')"
variant "END('\r\n', '([\r\n])|(\r\n)')"
variant "END('\n', '([\r\n])|(\r\n)')"
}
type set of MgcpParameter MgcpParameterList with {
@ -101,7 +101,7 @@ module MGCP_Types {
SDP_Message sdp optional
} with {
variant "BEGIN('')"
variant (sdp) "BEGIN('\r\n','([\r\n])|(\r\n)')"
variant (sdp) "BEGIN('\n','([\r\n])|(\r\n)')"
}
external function enc_MgcpResponse(in MgcpResponse id) return charstring

Loading…
Cancel
Save