Subject: [Megaco] questions about syntax error

From: [email-masked]
Date: Mon, 4 Mar 2002 18:54:53 +0900

hi, list.

consider the example message below.

MEGACO/1 [125.125.125.111]:55555
Transaction = 10000 {
    Context - 5000 {
        // syntax error in Action
        Subtract= A4444 {
             ...
        }
    },
    Context = 4900 {
        Add=A5555 {
            ...
         }
         Add=A7777 {
           ...
         }
    }
}
In real application, I think this example maybe hardly happens. but anyway,
in above case, shall the second action be processed by MG? or shall MG just
send TransactionReply
with a error descriptor about the first action and do not precess the
second action?
if error descriptor and action reply be sent at the same transaction reply,
then ABNF grammer does not allow this.
ABNF grammer reads
"
transactionReply=ReplyToken EQUAL TransactionID LBRKT
                         [ImmAckRequiredToken COMMA]
                         (errorDescriptor/actionReplyList) RBRKT
"

and the second example message below
(it is originally come from Sundareswaram P V)

case 1)
MEGACO/1 [125.125.125.111]:55555
Transaction = 50009 {
   Context = 5000 {
      Subtract = A5555 {
         Statistics {
            ........
         }
       },
       abc = A5556 { 
                    // --- request type is corrupted 
                    // instead of subtract it become 'abc'
               Statistics {
                  ......
                    nt/os=62345, ; octets sent
                    rtp/pr=780, ; packets received
                    nt/or=45123, ; octets received
               }
           }
        }
 }

case 2)
MEGACO/1 [125.125.125.111]:55555
Transaction = 50009 {
   Context = 5000 {
       abc = A5556 { 
                    // --- request type is corrupted 
                    // instead of subtract it become 'abc'
               Statistics {
                  ......
                    nt/os=62345, ; octets sent
                    rtp/pr=780, ; packets received
                    nt/or=45123, ; octets received
               }
           }
        },
      Subtract = A5555 {
         Statistics {
            ........
         }
       }
 }

In case 1, Can I think in following manner?
        1) it is neeed to send both error descriptor and command reply, and
        2) ABNF grammer will address this problem
In case 2, as long as a parser can not determine the first command is
"optional", must not  the second command be processed by MG? and will a
error descriptor for the first command be placed in actionReply?

thanks in advance.