Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  Megaco text encoding problem with embedded Signal

leigh.fiddes at nec.com.a
Posted: Mon May 16, 2005 2:04 am Reply with quote
Guest
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_at_nec.com.au
Software Development Manager Phone: +61 3 9264 3864
Broadband Network Technology Division Fax: +61 3 9264 3892
NEC Australia


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum