home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / callrt13.zip / RMDEMO.BAT < prev   
DOS Batch File  |  1993-03-10  |  2KB  |  75 lines

  1. @ECHO OFF
  2. CLS
  3. ECHO - Call Router V1.3 RingMate Demo -
  4. ECHO   For use with Unregistered version
  5. ECHO.
  6. ECHO This batch file demonstrates how Call Router V1.3
  7. ECHO may be used in conjunction with "RingMate" service...
  8. ECHO.
  9. ECHO  Note that in the example here it is assumed that you have RingMate
  10. ECHO  service active on your telephone. RingMate is a service that your
  11. ECHO  telephone company offers. When used with this service, Call Router
  12. ECHO  will enable you to provide a separate "data" or "fax" number to
  13. ECHO  customers, associates, etc. without an additional phone line
  14. ECHO  hookup. Consult your local telephone company for information on
  15. ECHO  the availability and pricing of this service.
  16. ECHO.
  17. ECHO Call Router V1.3 demonstrates only some of the features currently
  18. ECHO available in the registered-user version. Please consult the
  19. ECHO documentation for other features and ordering information.
  20. ECHO.
  21. ECHO.
  22. ECHO.
  23. ECHO.
  24. ECHO.
  25. ECHO.
  26. ECHO.
  27. PAUSE
  28.  
  29. IF "%1" == "" goto Usage
  30.  
  31. :Start
  32. REM Start program with COM port taken from command-line.
  33. REM Call Router v1.3 will default to 2400 baud and answer in two rings.
  34. REM The 'rm' parameter indicates that RingMate detection is needed.
  35. CALLROUT %1 rm
  36.  
  37. REM Act according to the ERRORLEVEL set on program exit...
  38. REM Short Ring - Branch to a routine to start a FAX program, perhaps.
  39. IF ERRORLEVEL 4 goto FaxProgram
  40.  
  41. REM Long Ring - Regular number dialed, used for voice in this case, reload.
  42. IF ERRORLEVEL 3 goto Start
  43.  
  44. REM Program timed out... caller hung up before start of ring 3.
  45. IF ERRORLEVEL 2 goto Start
  46.  
  47. REM Program error condition!
  48. IF ERRORLEVEL 1 goto Error
  49.  
  50. REM Program ended normally...
  51. IF ERRORLEVEL 0 goto End
  52.  
  53. :Usage
  54. CLS
  55. ECHO.
  56. ECHO Please specify which COM port to use.
  57. ECHO Correct usage is: RMDEMO n
  58. ECHO            where: n = 1,2,3, or 4 (COM port to open)
  59. ECHO.
  60. goto End
  61.  
  62. :FaxProgram
  63. ECHO.
  64. ECHO Run an External program Here!
  65. ECHO.
  66. PAUSE
  67. goto Start
  68.  
  69. :Error
  70. ECHO.
  71. ECHO Call Router ended with an error!
  72. ECHO.
  73.  
  74. :End
  75.