The dial number command allows you to add another call leg by means of specifying the number you wish to dial in order to add to a call.
You can specify multiple number commands within the dial command. When one of the numbers is connected the rest are hung up. Known Issues
NOTE: If one of the numbers dialed is a mobile that is diverted to voicemail this will result in a call connection. This will mean that other numbers dialed may not ring at all. It is not possible for BlueVia to determine a call connection is a voice mail connection or not.
Within the number command, the following supporting elements can be provided:
NOTE: The Number format for the destination and callerId elements is always in international dialing format *“tel:+
The following examples describe the element:
The following examples demonstrate how you can use the dial number command
{
"commands": [
{
"dial": {
"number": {
"callerId": "tel:+442012345678",
"destination": "tel:+4471234567"
}
}
}
]
}
This will result in the destination number of +441234567 ringing. If the destination handset supports the display of the caller ID, in this case the number the callerId of +442012345678 is displayed on the destination terminal.
{
"commands": [
{
"dial": {
"number": {
"callerId": "tel:+442012345678",
"destination": "tel:+4471234567"
},
"behaviorOnAnswer": {
"speak": {
"text": "Have a nice day.",
"voice": "Female"
}
}
}
}
]
}
This will result in the destination number of +441234567 ringing. If the destination handset supports the display of the caller ID, in this case the number the callerId of +442012345678 is displayed on the destination terminal. Additionally, in this case, when the destination answers the call the speak command will be executed.
{
"commands": [
{
"dial": {
"number": {
"callerId": "tel:+442012345678",
"destination": [
"tel:+4471234567",
"tel:+4472345678",
"tel:+4473456789"
]
}
}
}
]
}
This will result in the destination number of +441234567, +442345678 and +443456789 ringing. If the destination handset supports the display of the caller ID, in this case the number the callerId of +442012345678 is displayed on the destination terminal. In the case all of the called destinations can join the call.
The same dial number JSON commands can be described in XML as follows
<?xml version="1.0" encoding="UTF-8"?>
<tns:modifyCall xmlns:tns="http://api.bluevia.com/schemas/comms/v1" xmlns:tns1="http://api.bluevia.com/schemas/common/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.bluevia.com/schemas/comms/v1 api.bluevia.com_comms_v1_0.xsd ">
<tns:commands>
<tns:dial>
<tns:number>
<tns:destination>tel:+4471234567</tns:destination>
<tns:callerId>tel:+442012345678</tns:callerId>
</tns:number>
</tns:dial>
</tns:commands>
</tns:modifyCall>
<?xml version="1.0" encoding="UTF-8"?>
<tns:modifyCall xmlns:tns="http://api.bluevia.com/schemas/comms/v1" xmlns:tns1="http://api.bluevia.com/schemas/common/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.bluevia.com/schemas/comms/v1 api.bluevia.com_comms_v1_0.xsd ">
<tns:commands>
<tns:dial>
<tns:number>
<tns:destination>tel:+4471234567</tns:destination>
<tns:callerId>tel:+442012345678</tns:callerId>
<tns:behaviorOnAnswer>
<tns:speak>
<tns:text>Hope you have a nice day </tns:text>
<tns:voice>Female</tns:voice>
</tns:speak>
</tns:behaviorOnAnswer>
</tns:number>
</tns:dial>
</tns:commands>
</tns:modifyCall>
<?xml version="1.0" encoding="UTF-8"?>
<tns:modifyCall xmlns:tns="http://api.bluevia.com/schemas/comms/v1" xmlns:tns1="http://api.bluevia.com/schemas/common/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.bluevia.com/schemas/comms/v1 api.bluevia.com_comms_v1_0.xsd ">
<tns:commands>
<tns:dial>
<tns:number>
<tns:destination>tel:+4471234567</tns:destination>
<tns:destination>tel:+4472345678</tns:destination>
<tns:destination>tel:+4473456789</tns:destination>
<tns:callerId>tel:+442012345678</tns:callerId>
</tns:number>
</tns:dial>
</tns:commands>
</tns:modifyCall>