asternet/Asterisk.2013/Asterisk.NET/Manager/Event/CdrEvent.cs
2015-01-03 15:37:29 +00:00

48 lines
1.3 KiB
C#

namespace AsterNET.Manager.Event
{
/// <summary>
/// A CdrEvent is triggered when a call detail record is generated, usually at the end of a call.<br />
/// To enable CdrEvents you have to add <code>enabled = yes</code> to the general section in
/// <code>cdr_manager.conf</code>.<br />
/// This event is implemented in <code>cdr/cdr_manager.c</code>
/// </summary>
public class CdrEvent : ManagerEvent
{
public CdrEvent(ManagerConnection source)
: base(source)
{
}
public string AccountCode { get; set; }
public string Src { get; set; }
public string Destination { get; set; }
public string DestinationContext { get; set; }
public string CallerId { get; set; }
public string DestinationChannel { get; set; }
public string LastApplication { get; set; }
public string LastData { get; set; }
public string StartTime { get; set; }
public string AnswerTime { get; set; }
public string EndTime { get; set; }
public long Duration { get; set; }
public long BillableSeconds { get; set; }
public string Disposition { get; set; }
public string AmaFlags { get; set; }
public string UserField { get; set; }
}
}