Dials the phone
number of the user to make an outgoing call.
Parameters
<PhoneNumber>
Specify the phone number of the user to be called.
Return Value
If successful
returns TRUE, else returns FALSE.
Remarks
An outgoing
call is made to the phone number given.
For IP drivers like Opal H323, Skype etc., IP number is specified
instead of destination phone number.
Asynchronous dial()
only initiates the function before it falls through. To know the status of the dial out function,
use GetCallProgress().
Example
(1)
$Status = Dial("1234567890")
while true
$Status = GetCallProgress()
if $Status == "CONNECTED"
Play "Welcome.wav"
wait 0
break
endif
sleep 250
endwhile
The
function dials the number "1234567890". Meanwhile, the call progress is monitored. If $Status shows "CONNECTED" the system welcomes the user and breaks out of the loop.
(2)
$Status = Dial("196.167.11.1")
IP number is specified in place of phone number for IP drivers.