using Asterisk.NET.Manager.Event;
namespace Asterisk.NET.Manager.Event
{
///
/// A FaxReceivedEvent is triggered by spandsp after a new fax has been received.
/// It is only available if you installed the spandsp patches to Asterisk.
/// See http://soft-switch.org/installing-spandsp.html for details.
/// Implemented in apps/app_rxfax.c
.
///
public class FaxReceivedEvent : AbstractAgentEvent
{
private string exten;
private string callerId;
private string remoteStationId;
private string localStationId;
private int pagesTransferred;
private int resolution;
private int transferRate;
private string filename;
public FaxReceivedEvent(ManagerConnection source)
: base(source)
{
}
///
/// Get/Set the extension in Asterisk's dialplan the fax was received
///
public string Exten
{
get { return exten; }
set { exten = value; }
}
///
/// Get/Set the Caller*ID of the calling party or an empty string if none is
///
public string CallerId
{
get { return callerId; }
set { callerId = value; }
}
///
/// Get/Set the identifier of the remote fax station.
///
public string RemoteStationId
{
get { return remoteStationId; }
set { remoteStationId = value; }
}
///
/// Get/Set the identifier of the local fax station.
///
public string LocalStationId
{
get { return localStationId; }
set { localStationId = value; }
}
///
/// Get/Set the number of pages transferred.
///
public int PagesTransferred
{
get { return pagesTransferred; }
set { pagesTransferred = value; }
}
///
/// Get/Set the row resolution of the received fax.
///
public int Resolution
{
get { return resolution; }
set { resolution = value; }
}
///
/// Get/Set the transfer rate in bits/s.
///
public int TransferRate
{
get { return transferRate; }
set { transferRate = value; }
}
///
/// Get/Set the filename of the received fax including its full path on the Asterisk server.
///
public string Filename
{
get { return filename; }
set { filename = value; }
}
}
}