24 | Appendices ~ Appendix C: Serial Commands |
Return values: DIAL returns the dialed string of numbers. The string is returned after the command has been completed (i.e. dialed all the touch tones).
Example: The following command dials the number (801)
The number is to be dialed on device #20. | #20 DIAL 9,8019757200 |
The following is returned out the serial port: | #20 DIAL 9,8019757200 |
HOOK
This command sends a momentary interruption in line seizure (hook flash) to the telephone line. This command is
Command form: DEVICE HOOK
Return values: If hook flash succeeded, the following is returned out the serial
port: DEVICE HOOK
Example: |
|
The command to request hook flash on device 20: | #20 hook |
The following is returned out the serial port: | #20 hook |
HOOKD
This command changes or reports the hook flash duration of the unit.
Command form: DEVICE HOOKD <X>
Explanation: <X> is the action (i.e. hook flash duration, current state)
X=0 | Parameter to set hook flash duration to 50ms |
X=1 | Parameter to set hook flash duration to 500ms |
X=Null | Parameter to report back the current state. |
Return values: The command will return the hook flash duration of the unit in the same format as the command. HOOKD <X>
Example: |
|
The following command requests hook flash duration: | HOOKD |
The following is returned out the serial port: | HOOKD 4 |