DIAL Verb

With DIAL verb, you can connect another recipient to the call. The recipient of the conversation (in case of outbound conversation) or the caller of the conversation (in case of inbound) will be connected to the defined, in the DIAL verb, recipient (only 1 DIAL Verb per Dialplan).

{
  "type": "DIAL",
  "from":"mindpuzzle",
  "to": {"phone":"+3069xxxxxxxx"},
  "hangupDelay": 30,
  "maxDuration":60,
  "callback": ":https://xxxxxxxx",
  "record": "true",
  "recordingFormat": "MP3",
  "recordingCallbackUrl":"https://xxxxxxxx"
}

KEY

DESCRIPTION

type*

"DIAL"

from*

The sender Id for this call.

to*

The recipient of this call.

to.phone

A valid phone number (mobile or landline)

to.sip

A valid SIP URI.

to.viber

A valid phone number with Viber App installed (e.g. 306971234567)

hangupDelay

The time in seconds to wait for the second call of the bridge to be answered.
The default value is to wait for the network to terminate the call in case the call is not answered. Min value: 1

maxDuration

Call time length after bridge. Min value: 1

callback

Defines the notification callback information for this call. Check here for more information.

callback.url

The URL that Routee will POST to the callback information.

callback.strategy

Defines when the URL will be called.
Two possible values: on every status change (OnChange) or when a final status arrives (OnCompletion).

record

If the value is true, the conversation will be recorded. Default value is false

recordingFormat

The format of the recorded file (WAV or MP3).
Default value is MP3

recordingCallbackUrl

The URL that Routee will POST to the information about the recorded file.

machineDetection

It is used to detect if the call is answered by human or machine and define the desired actions (in case of machine).

machineDetection.strategy

The strategy to follow when a machine has been detected. Possible values: "Hangup" (terminate the call) or "Continue" (give another dialplan to execute).

machineDetection.eventUrl

The URL that Routee will POST to when a machine is detected (only for "Continue" strategy). A valid dialplan is expected as response.