Parse error at the message level
"Elad Chomsky" <[email protected]>
| Newsgroups | gmane.ietf.megaco |
|---|---|
| Message-ID | <[email protected]> |
Hello All,
I was wondering about the correct behavior when a parse error at the
Message level is encountered (i.e. before any transaction request or
reply was parsed).
For example, consider the following message:
!/3 [XXX 123.123.123.4]:55555
T = 5 {
...
}
This message should fail parsing, as it contains an illegal mId.
Option 1 is to reply with a message containing only an error descriptor.
Error code #410 seems the most appropriate. It should look something
like this:
MEGACO/3 [124.124.124.222]:55555
Error = 410 { "Incorrect identifier: [XXX 123.123.123.4]" }
Option 2 is to simply ignore the offending message and not generate any
reply. One (weak) corroboration to this approach is that the definition
of error #410 is "The transaction request(s) has been disregarded due to
a syntax error..."; and when parsing is aborted it is not known whether
the message contains any transaction requests.
My personal preference is option 1.
Thanks,
Elad