<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2730.1700" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial><FONT size=2><STRONG>Hi to make this command
:</STRONG></FONT></FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>MEGACO/1 [172.16.0.1]:2944<BR>Transaction = 1
{<BR>Context = - {<BR>AuditCapabilities = ui {<BR>Audit{Events}<BR>}}}</FONT>
<DIV><FONT face=Arial
size=2>|-----------------------------------------------------------------------------|</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><STRONG>I wrote this code:</STRONG></FONT></DIV>
<DIV><FONT face=Arial>******************************</FONT></DIV>
<DIV>
<P><FONT face=Arial color=#000000>auditcapabilities(ConnHandle,
Events)-><BR> AUD=#'AuditDescriptor'{auditToken=Audit},
<BR> TermId=ui,<BR> AUR=#'AuditRequest'{terminationID = TermId,
auditDescriptor = AUD},<BR> CR = #'CommandRequest'{command =
{auditCapabilities, AUR}}, <BR> AR =
#'ActionRequest'{contextId = ?megaco_null_context_id, commandRequests =
[CR]},<BR> io:format("AR:~p~n", [AR]),<BR> {ProtocolVersion,
UserReply}=megaco:call(ConnHandle, [AR], [])</FONT></P>
<P><FONT face=Arial>****************************</FONT></P>
<P><FONT face=Arial><STRONG>but, auditToken should also be a structure to be
able to load Event, rigth?</STRONG></FONT></P>
<P><STRONG><FONT face=Arial>Because, in the RFC3015 page 89 is
written:</FONT></STRONG></P>
<P><FONT face=Arial size=2>AuditDescriptor ::= SEQUENCE<BR>
{<BR>
auditToken BIT
STRING<BR>
{<BR>
muxToken(0), modemToken(1),
mediaToken(2),<BR>
eventsToken(3),
signalsToken(4),<BR>
digitMapToken(5),
statsToken(6),<BR>
observedEventsToken(7),<BR>
packagesToken(8),
eventBufferToken(9)<BR> }
OPTIONAL,<BR> ...<BR>
}</FONT></P>
<P><FONT face=Arial size=2><STRONG>thanks for your
time</STRONG></FONT></P></DIV></BODY></HTML>