Megaco text encoding problem with embedded Signal (fwd)

Micael Karlberg micael.karlberg@REDACTED
Wed May 18 14:59:17 CEST 2005


Hi,

Judging from the comment in the standard (below), it seems that you
are correct. That is, since both embedWithSig and embedNoSig cannot be
present and since there have a signal, then embedWithSig should be
used!

; at-most-once each of KeepActiveToken , eventDM and eventStream
; at most one of either embedWithSig or embedNoSig but not both
; KeepActiveToken and embedWithSig must not both be present
eventParameter = ( embedWithSig / embedNoSig / KeepActiveToken /
                   eventDM / eventStream / eventOther )

Thanks,

/BMK

Leigh Fiddes writes:
 > Hi,
 > 
 > I am experimenting with the Erlang Megaco stack (3.0.1) and I am having a 
 > problem encoding an
 > embedded Signal within an Event.
 > 
 > The erlang code I am using is:
 > 
 >      SRE1 = #'SecondRequestedEvent'{ pkgdName = "al/on",
 >                                      evParList = [] },
 > 
 >      SED = #'SecondEventsDescriptor'{ requestID = 2,
 >                                       eventList = [ SRE1 ] },
 > 
 >      SIG = { signal, #'Signal'{ signalName = "cg/dt",
 >                                 sigParList = [] } },
 > 
 >      RA = #'RequestedActions'{ secondEvent = SED,
 >                                signalsDescriptor = [ SIG ] },
 > 
 >      RE = #'RequestedEvent'{ pkgdName = "al/of",
 >                              eventAction = RA,
 >                              evParList = [] },
 > 
 >      EV = #'EventsDescriptor'{ requestID = 1, eventList = [ RE ] },
 > 
 >      TermID = {megaco_term_id, true, [[$*]] },
 > 
 >      AMMR = #'AmmRequest'{ terminationID = [ TermID ],
 >                            descriptors = [ { eventsDescriptor, EV } ] },
 > 
 >      CR = #'CommandRequest'{command = {modReq, AMMR}},
 > 
 >      AR = #'ActionRequest'{contextId = ?megaco_null_context_id,
 >  			  commandRequests = [CR]},
 > 
 > but the megaco message produced is:
 > Context = - {
 >          Modify = * {
 >                  Events = 1 {
 >                          al/of {
 >                                  Embed {
 >                                          Events = 2 {
 >                                                  al/on
 >                                          }
 >                                  },
 >                                  Signals {
 >                                          cg/dt
 >                                  }
 >                          }
 >                  }
 >          }
 > }
 > whereas my reading of H.248.1 say that the correct syntax for this should be:
 > 
 > Context = - {
 >          Modify = * {
 >                  Events = 1 {
 >                          al/of {
 >                                  Embed {
 >  	                                Signals {
 >          	                                cg/dt
 >                  	                },
 >                                          Events = 2 {
 >                                                  al/on
 >                                          }
 >                                  }
 >                          }
 >                  }
 >          }
 > }
 > 
 > Is my interpretation or method incorrect or is the pretty text encoder 
 > incorrect?
 > 
 > Regards,
 > Leigh
 > -- 
 > ============================================================
 > Leigh Fiddes                  email: Leigh.Fiddes@REDACTED
 > Software Development Manager          Phone: +61 3 9264 3864
 > Broadband Network Technology Division   Fax: +61 3 9264 3892
 > NEC Australia



More information about the erlang-questions mailing list