Megaco text encoding problem with embedded Signal

Leigh Fiddes <>
Mon May 16 03:45:30 CEST 2005


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: 
Software Development Manager          Phone: +61 3 9264 3864
Broadband Network Technology Division   Fax: +61 3 9264 3892
NEC Australia



More information about the erlang-bugs mailing list