The SoundStructure VoIP Interface
12 - 83
Dialing Two Calls on the Same Line
This example shows how you can dial and bridge together two calls on the
same line.
# Take the phone offhook
set phone_connect “VoIP Out” 1
# Dial the digits of the first call
set 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 use the conference feature to place the connected
# call on hold and get a new dialtone
set voip_conference “VoIP Out”
# Dial the second call and tell the system to dial with the
# voip_send command
set phone_dial “VoIP Out” “5148”
# a voip_send command will tell the call management to use these digits
# without waiting for any dialplan time-out
set voip_send “VoIP Out”
# Once the call is connected with the call_appearance state
val voip_call_appearance_state "VoIP Out" 1 connected
# Then send voip_conference again to merge all the parties together
set voip_conference “VoIP Out”
# Once you have the acknowledgment that the line has been answered
# by the remote party then the call has been conferenced.
val voip_call_appearance_state "VoIP Out" 1 ncas_call_conference
# To hang up the conference call phone. If either party hangs up
# first, you will still be connected to the other remote party until
# you hang up the phone
set phone_connect “VoIP Out” 0
val phone_connect “VoIP Out” 0