Skip to main content
  • Products
    • Overview
    • Features
    • Screen Capture
    • Agent evaluation / score cards
    • Speech Analytics
    • Recording Announcement
    • Videos
    • Online demo
    • Quote
    • Download
  • Solutions
    • Businesses
    • Contact centers
    • Financial institutions
    • Healthcare
    • MiFID II compliance
    • Telecom service providers
    • Traders
  • Compatibility
    • AudioCodes
    • Avaya
    • BroadSoft
    • Cisco
    • Genband
    • IPC
    • Metaswitch
    • Oracle AcmePacket
    • SIPREC recording
    • Sonus
  • Documentation
    • User Guide
    • Administration Guide
    • Developer Guide
    • MiaRec v.3 (old) documentation
    • Resource library
    • Videos
  • Support
    • Submit a request
    • Check your existing requests
    • TeamViewer QuickSupport
  • Blog
  • Company
    • About MiaRec
    • Contact us
    • Our clients
    • Become a partner
    • News
    • Careers
    • Events

MiaRec SOAP API

  • MiaRec SOAP API Programmer's Guide
    • Gettings Started
      • Settings up the development environment
        • Obtaining the WSDL document and generating the stubs
      • Request and response framework
      • Learning from sample code
    • MiaRec Web Services
      • Intended Audience
      • Overview
    • Writing a Client Application
      • Setup
        • The HTTP header
        • The SOAP header
        • Setting the URL of the service to be accessed
      • Objects
        • RecordingFilter
          • RecordingFilterCustomParameter
      • Methods
        • getVersion
        • reloadConfig
        • recordingFilterLoad
        • recordingFilterLoadAll
        • recordingFilterSave
        • recordingFilterValidate
        • recordingFilterDelete
      • Exceptions
        • InvalidParameterException
        • InvalidSyntaxException
        • NotFoundException
    • Debugging
Home › MiaRec SOAP API Programmer's Guide › Writing a Client Application › Methods ›
 

recordingFilterLoadAll

The recordingFilterLoadAll method returns all filters from specified section.

 

Syntax (in C#)

RecordingFilter[] recordingFilterLoadAll(
    string section
);

 

 

Parameters

Name of parameterTypeDescription
sectionstring

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

  • OnCallStart
  • OnCallStop

 

 

Return Value

If the function succeds, the return value is an array of RecordingFilter objects.

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

 

NotFoundExceptionInvalid section parameter

 

 

Example (in C#)

try
{
    MiaRec::RecordingFilter[] filters = service.recordingFilterLoadAll("OnCallStart");

    for (int i = 0; i < filters.Length; i++)
    {
       MiaRec::RecordingFilter filter = filters[i];

       Console.WriteLine("Filter #" + i + ":");
       Console.WriteLine("    name:      " + filter.name);
       Console.WriteLine("    filename:  " + filter.filename);
       Console.WriteLine("    condition: " + filter.condition);
       Console.WriteLine("    action:    " + filter.action);

       MiaRec::RecordingFilterCustomParameter[] parameters = filter.customParameters;
       if (parameters != null)
       {
           for (int j = 0; j < parameters.Length; j++)
           {
               Console.WriteLine("    " + parameters[j].name + ": " + parameters[j].value);
           }
       }
    }
}
catch (FaultException<MiaRec::NotFoundException> ex)
{
    Console.WriteLine("Failed: " + ex.Detail.Description);
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message)
}

 

Sample output:

Filter #0:
    name:      filter1-
    filename:  
    condition: caller-number = '123' OR callee-number = '123'
    action:    record
Filter #2:
    name:      filter2-
    filename:  
    condition: caller-number = '555' OR callee-number = '555'
    action:    record
Filter #3:
    name:      default_
    filename:  
    condition: 
    action:    ignore

 

 

See Also

  • Method recordingFilterLoad
  • Method recordingFilterValidate
  • Object RecordingFilter

 

‹ recordingFilterLoad up recordingFilterSave ›
  • Printer-friendly version
  • Login to post comments
MiaRec, Inc. © 2020. All Rights Reserved. | Terms of Use | Privacy Statement | Cancellation Policy