NAME
          irEchoRes - get a echo cancellation resource number

     SYNOPSIS
          #include <irapi.h>

          int irEchoRes (channel_id cid);

     DESCRIPTION
          The irEchoRes function returns the allocated echo cancella-
          tion resource number.

          This function returns useful results only when it is called
          after irStartEcho successfully receives a echo cancellation
          resource and before the irStopEcho for echo cancellation.

          This function does not allocate echo cancellation resources.

     EVENT
          This function returns no events.

     RETURN VALUE
          An echo cancellation resource number is returned if the
          function succeeds.

          IRR_FAIL is returned if an error occurs.

     ERROR
          irError is set as follows if an error occurs:

          IRER_INVALID if the cid is not valid

          IRER_BADSTATE if the echo cancellation is not allocated.

     SEE ALSO
          irEcho(3IRAPI), irRecog(3IRAPI), irReserveRes(3IRAPI),
          IrDEFINES(4IRAPI)

     VERSION
          This is version 8/31/00 of this man page.