recordingFilterDelete

The recordingFilterDelete method removes filter from MiaRec.ini configuration file.

 

Syntax (in C#)

bool recordingFilterDelete(
    string section, 
    string name
);

 

 

Parameters

Name of parameterTypeDescription
sectionstring

Section, from where to load filter. It can be one of following values:

  • OnCallStart
  • OnCallStop
namestringUnique name of the filter

 

 

Return Value

If the function succeds, the return boolean TRUE value.

If the function fails, then one of folloiwng SOAP Exceptions is thrown.

 

NotFoundExceptionInvalid section parameter or filter with such name doesn't exist
InvalidParameterExceptionName is invalid (empty or contains invalid character)

 

Remarks

This method removes a recording filter from MiaRec.ini configuration file.

Method reloadConfig should be executed to apply changes to running MiaRec application.

Otherwise changes will be reloaded only when MiaRec is restarted.

 

Example (in C#)

try
{
    service.recordingFilterDelete("OnCallStart", "filter1-");
}
catch (FaultException<MiaRec::InvalidParameterException> ex)
{
    Console.WriteLine("Failed: " + ex.Detail.Description);
}
catch (FaultException<MiaRec::NotFoundException> ex)
{
    Console.WriteLine("Failed: " + ex.Detail.Description);
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message)
}

 

 

See Also