# the digits will be retained and dialed.
set phone_dial "VoIP Out" "2029"
val phone_dial "VoIP Out" "2029"
# Take the phone offhook which will cause the digits to be dialed
# if the phone_connect command is sent within 20 seconds of the
# phone_dial command
set phone_connect "VoIP Out" 1
val phone_connect "VoIP Out" 1
Hanging up a Call
This example shows how to hang up a phone call.
# To hang up the phone
set phone_connect "VoIP Out" 0
val phone_connect "VoIP Out" 0
Putting a Call on Hold and Resuming the Call
This example shows how to dial a call, place the call on hold, and resume the existing call.
# Take the phone offhook
set phone_connect "VoIP Out" 1
val phone_connect "VoIP Out" 1
# Dial the digits of the initial call
set phone_dial "VoIP Out" "2029"
val phone_dial "VoIP Out" "2029"
# Once you know the call is connected by waiting for the
# voip_call_appearance_state set to connected
val voip_call_appearance_state "VoIP Out" 1 connected
# Then you can place the connected call on hold
set voip_hold "VoIP Out"
# Once the call is on hold, you will get the confirmation with the
# voip_call_appearance_state acknowledgment
val voip_call_appearance_state "VoIP Out" 1 ncas_call_hold
# To resume the call, use the voip_resume command
set voip_resume "VoIP Out"
# Once you have the acknowledgment that the line is connected,
Polycom, Inc.
383