<Number>
A phone number to dial, in E.164 (+14155550100). Anything after a ; is dropped. Routed over the PSTN by the account’s rates and routes.
Used inside <Dial>.
Example
Section titled “Example”<Response> <Dial> <Number sendDigits="ww1234" statusCallback="https://example.com/leg-status" statusCallbackEvent="ringing answered completed">+14155550100</Number> </Dial></Response>Attributes
Section titled “Attributes”| Attribute | Values | Default | Description |
|---|---|---|---|
sendDigits |
DTMF digits 0-9, * and #; a lower-case w waits half a second | — | DTMF digits sent once the number answers (w = half-second wait), e.g. an extension. |
byoc |
string | — | Accepted and ignored. Accepted; currently has no effect (routing comes from the account’s routes). |
url |
An absolute http:// or https:// URL | — | Whisper URL: when this party answers, SIPRTC runs the TinyML at this URL on their leg only (e.g. <Say> who is calling, or a <Gather> to accept) and then connects them to the caller. |
method |
GET, POST |
POST |
HTTP method for url. |
statusCallback |
An absolute http:// or https:// URL | — | URL notified of this leg’s progress (see statusCallbackEvent). |
statusCallbackMethod |
GET, POST |
POST |
HTTP method for statusCallback. |
statusCallbackEvent |
A space- or comma-separated list of event names | completed |
Which progress events to send besides the final one: initiated, ringing, answered, completed. The end of the leg is always sent. |
machineDetection |
string | — | Accepted and ignored. Accepted; answering machine detection is not run on <Dial> legs (use the Calls API). |
machineDetectionTimeout |
string | — | Accepted and ignored. Accepted; currently has no effect. |
machineDetectionSpeechThreshold |
string | — | Accepted and ignored. Accepted; currently has no effect. |
machineDetectionSpeechEndThreshold |
string | — | Accepted and ignored. Accepted; currently has no effect. |
machineDetectionSilenceTimeout |
string | — | Accepted and ignored. Accepted; currently has no effect. |
amdStatusCallback |
string | — | Accepted and ignored. Accepted; currently has no effect. |
amdStatusCallbackMethod |
string | — | Accepted and ignored. Accepted; currently has no effect. |
Callback parameters
Section titled “Callback parameters”Sent to statusCallback:
| Parameter | Description |
|---|---|
CallSid |
Call id of this leg. |
ParentCallSid |
The call that dialled it. |
CallStatus |
initiated, ringing, in-progress, completed, busy, no-answer, failed or canceled. |
CallDuration |
Seconds connected (final event). |
SipResponseCode |
SIP response of a failed leg. |
InitiationTime |
When the leg was created. |
RingTime |
When it started ringing. |
AnswerTime |
When it was answered. |
HangupTime |
When it ended. |
SequenceNumber |
Order of the event for this leg. |
Sent to url:
| Parameter | Description |
|---|---|
CallSid |
Call id of the answered leg; the request carries the standard call parameters of that leg. |
- statusCallback also carries From, To, Direction, AccountSid, Timestamp, ApiVersion and CallbackSource (call-progress-events).