VoiceHangup
The VoiceHangup instruction is used to hang up the voice modem.
Syntax
VoiceHangup

In the following example program, the modem will dial out and make an announcement if the variable TCTemp is greater than 28.
'CR6 Datalogger
'Declare Variables
Public PTemp, TCTemp, Counter
'Main Program
BeginProg
Scan (1,Sec,3,0)
PanelTemp (PTemp,15000)
TCDiff (TCTemp,1,mv200C,U1,TypeT,PTemp,True ,0,15000,1.0,0)
Counter=0
If TCTemp>28
DialVoice ("9,1 800 555 1212")
Do
Counter=Counter+1
VoiceSpeak ("WARNING THE TEMPERATURE IS" + TCTemp + "DEGREES", 2)
VoiceSpeak ("PRESS STAR TO DISCONNECT", 2)
Loop Until VoiceKey(500)=42 OR Counter=60
VoiceHangup
EndIf
NextScan
EndProg
Remarks
The VoiceHangup instruction is used most often with the DialVoice instruction to hang up the modem after communication. The VoiceHangup instruction is not needed if the voice commands are enclosed within the VoiceBeg/EndVoice instructions.