Skip to contentSkip to navigationSkip to topbar
On this page

Voice Insights Frequently Asked Questions



What is the difference between Voice Insights and Voice Insights Advanced Features?

what-is-the-difference-between-voice-insights-and-voice-insights-advanced-features page anchor

The Voice Insights Dashboard and Call Summary pages in Console are included with every voice minute as a feature of the Twilio platform. These pages represent what we commonly refer to as Voice Insights; in the absence of greater detail assume these are what is being talked about when we talk about Voice Insights.

Voice Insights Advanced Features is a per-minute paid feature enabled on an individual account basis which exposes additional capabilities, including:

  • Logging of call events and metrics
  • Metrics tab in Console which displays the captured metrics and events
  • Programmatic availability of events, metrics, and summary records via API and Event Streams

Do I need Voice Insights Advanced Features?

do-i-need-voice-insights-advanced-features page anchor

It depends. There are two primary use cases where Voice Insights Advanced Features is required: one is the capture of per-interval metrics and events; two is programmatic access via API or Event Streams.

Twilio does not write per-interval metrics or events to disk unless Voice Insights Advanced Features is enabled on the account; we analyze the stream of metrics and events in-flight, calculate the cumulative metrics for the call, and store those cumulative stats in the Call Summary. If cumulative statistics for calls is not sufficient for your purposes and you need to know not just that a potential issue was detected, but also when it was detected, on which stream, how the performance changed, and for how long, enabling Voice Insights Advanced Features will result in Twilio writing those details to disk and making them available to you via Console and API.

If you need access to any of the Voice Insights resources via API or Event Streams, then Voice Insights Advanced Features must be enabled. Some customers consume Voice Insights data and build sophisticated monitoring and alerting applications, some use Call Summary data to decorate their own internal call records, and some customers write everything to a data lake "just in case" they need it beyond 30 days. If you want to consume Voice Insights Call Summary, Events, Metrics, or Conference Insights Conference Summary and Participant Summary endpoints, you will need to have Voice Insights Advanced Features enabled on the account. Attempts to request resources for accounts which did not have Voice Insights Advanced Features enabled when the call was created will result in an HTTP 401 Unauthorized response.


How is Insights data gathered?

how-is-insights-data-gathered page anchor

Sensors in the Twilio Voice SDKs and on Twilio media gateways gather call metrics and events and send them to the Voice Insights platform for analysis and aggregation.


What are the requirements for Voice Insights data to be gathered on a call?

what-are-the-requirements-for-voice-insights-data-to-be-gathered-on-a-call page anchor

Insights is available for all calls made using Twilio Voice SDKs for JavaScript (v1.3+), mobile SDKs for Android and iOS (v3.0+), using the Programmable Voice APIs(link takes you to an external page), or calls placed using Elastic SIP Trunking.

Metrics and events are provided as-is for calls placed using unsupported Voice SDK for JavaScript 1.2 and mobile SDKs for Android and iOS 2.0. With this in mind you may see unexpected or impossible values for certain metrics.


Why is Voice Insights focused on network metrics instead of audio quality?

why-is-voice-insights-focused-on-network-metrics-instead-of-audio-quality page anchor

In the world of Voice-over-IP network metrics and audio quality are essentially synonymous, and our analysis of hundreds of billions of calls over more than ten years supports the theory that network transport issues are the number one contributor to reports of audio quality degradation for VoIP calls.

In the old school world of plain-old-telephone-services the only transport metric that mattered was physical continuity of copper wires buried underground, but in a VoIP telecom deployment when people talk about "choppiness" on a call what they are actually talking about is packet loss. When they talk about "noise" or "robotic speech" they are almost certainly talking about jitter. Many reports of "one-way audio" and "dropped calls" are really high post-dial delay.

We monitor and report on these metrics because without visibility into the underlying behavior of the network infrastructure it is not possible to detect, diagnose, or resolve the causes of quality issues.


What types of audio quality issues can Voice Insights not detect?

what-types-of-audio-quality-issues-can-voice-insights-not-detect page anchor

In-stream audio issues like echo, or noise that is not related to jitter or packet loss, can't be detected by Voice Insights today but may be captured in any recordings of the calls made using Twilio. In our experience, most echo is due to a call participant having their speaker volume or microphone gain set high enough that the output of the speaker is picked up by the microphone and pumped back into the media stream.


How does Twilio's silence detection work?

how-does-twilios-silence-detection-work page anchor

Twilio's media gateways can detect missing RTP streams or streams which contain only silence. We will mark those calls has having contained silence in the Call Summary API response and in the Call Summary properties in Console. Note that silence detection is not the same thing as human speech detection, so a call could conceivably contain no one speaking but display enough background noise to result in Twilio failing to mark the call as having been silent.


How is "Who Hung Up" determined?

how-is-who-hung-up-determined page anchor

We look at our external signaling edge and the direction of which party sent the SIP BYE.


Why might "Who Hung Up" not be available?

why-might-who-hung-up-not-be-available page anchor

We use the source of the SIP BYE at our signaling edge to determine who hung up. From a SIP perspective a call needs to have been answered before it can be ended via a SIP BYE, so calls that are no-answer, failed, or canceled we will not provide who hung up; however you can infer that any unanswered call was ended by the calling party.

For Voice SDK calls, who hung up might be missing due to multiple reasons: computer crashes, network issues, the browser being closed or crashing while the call was in progress, the client object being destroyed before the event could be sent to Twilio Insights, or any other behavior that results in Twilio not receiving the final events from the SDK unexpectedly. These will appear as "disconnected by: unknown" when viewing Insights data in Console and aggregate reports.


Can Twilio detect dropped calls?

can-twilio-detect-dropped-calls page anchor

Dropped calls are challenging to detect programmatically because the overwhelming majority of calls that are reported as "dropped calls" look normal from an application and signaling perspective. The best way to know if a call was a dropped call is to ask your user. The Voice SDKs come with a feedback API that can be integrated directly into your application to capture the subjective user feedback. The feedback values submitted with this method are made available by the Voice Insights Call Events API. For non-SDK calls, Twilio provides a separate Feedback API and additionally makes the feedback available via call logs in the console.

In the absence of direct input from your users, the Voice Insights Call Summary includes the final SIP response which allows you to locate calls that did not end normally; any calls that do not end with a SIP 200 OK are considered abnormal sessions.

For Voice SDK calls you can look at the disconnected by reason; if you see unknown that means that a computer crash, browser crash, network loss, or application error prevented the final event reporting to Twilio, and whatever condition caused this almost assuredly resulted in the call being dropped as well.


When we say "packet loss > 1% in 3 out of last 5 samples", what's a "sample"?

when-we-say-packet-loss--1-in-3-out-of-last-5-samples-whats-a-sample page anchor

For Voice SDK calls we sample each second; for Carrier and SIP calls we sample the cumulative stats for the previous 10 seconds every 10 seconds.


Isn't 1% packet loss and 30 ms jitter a little too sensitive?

isnt-1-packet-loss-and-30-ms-jitter-a-little-too-sensitive page anchor

Our quality thresholds are based of ITU-T standards for VoIP quality, and do indeed lean toward sensitivity. The goal behind highlighting issues at-or-below the edges of perceptibility is to allow detection and mitigation to occur before users notice; however, we also provide cumulative metrics in the call Summary, which allow you to craft your own internal threshold for performance.


Why are the network and audio warnings emitted by the Voice SDKs more sensitive than the tagging thresholds?

why-are-the-network-and-audio-warnings-emitted-by-the-voice-sdks-more-sensitive-than-the-tagging-thresholds page anchor

Almost all quality issues for Voice SDK calls are due to local network conditions, which are typically caused by things like misapplied or absent quality of service (QoS), asymmetric bandwidth allocations, or bandwidth limitations. We expose a more sensitive threshold of data for Voice SDK calls to allow developers to identify and respond to changing quality conditions before their users notice by surfacing warnings in their applications and giving prescriptive instructions; e.g. "quality issues detected, try moving to a different location".


Why is Post-Dial Delay tagging based on a percentile and not a numeric threshold?

why-is-post-dial-delay-tagging-based-on-a-percentile-and-not-a-numeric-threshold page anchor

Different destinations have different expectations for post-dial delay, and accordingly varying thresholds for acceptable PDD. In the US, for example, PDD higher than 6 seconds is typically something that could be escalated to the carrier; however, in South Africa PDD of 10 seconds is common and considered acceptable, so tagging calls to South Africa with PDD > 6 seconds would result in us tagging basically all the calls in South Africa, reducing the utility of the data to uncover outliers in performance.


Any limitations of the Insights Dashboard to be aware of?

any-limitations-of-the-insights-dashboard-to-be-aware-of page anchor

Due to GDPR Voice Insights data is only stored for 30 days, so the Dashboard is limited to 30 days worth of data. Since only 30 days worth of data is available, we can only show comparisons for up to 15 days. CSV export is limited to 2000 rows.


How can I address the SIP errors?

how-can-i-address-the-sip-errors page anchor

For SIP Interface and Elastic SIP trunking calls you can view your local SIP infrastructure logs and pcaps, and compare with the Twilio public pcap available in the call resource page in Console.

Voice SDK SIP errors are often due to unexpected application behavior. We recommend enabling debug logging in your apps and reproducing the issue to understand the cause.

SIP errors that originate from the carriers are currently not actionable by you directly. In case there are issues with a specific carrier are impacting your users, you can reach out to Twilio Support with the data to get more help.


Is this data available using REST APIs?

is-this-data-available-using-rest-apis page anchor

An API is available as part of Voice Insights Advanced Features that provides access to call events, metrics, and summaries.


How long is the data retained?

how-long-is-the-data-retained page anchor

Voice Insights data is retained for 30 days after the call is made.


Why is there a discrepancy between the numbers we see in the call logs and the Voice Insights Dashboard?

why-is-there-a-discrepancy-between-the-numbers-we-see-in-the-call-logs-and-the-voice-insights-dashboard page anchor

In order to provide the dynamic filtering and search functionality in the Voice Insights Dashboard the top-level aggregations don't operate on values directly but on their hashes, and thus they return approximate results. The call logs use linear counting which has excellent precision on low-cardinality sets but does not provide multi-dimensional searches and top-level filtering like the Voice Insights Dashboard does. In practice, we typically see differences of less than five on sets of calls with ~100K results.


Why don't I see Voice Insights Metrics or Events for my calls?

why-dont-i-see-voice-insights-metrics-or-events-for-my-calls page anchor

Enable Voice Insights Advanced Features using the Voice Insights Settings page in Console(link takes you to an external page) to see call events and metrics.


Why are there missing Insights metrics/events/summary for this Voice SDK call?

why-are-there-missing-insights-metricseventssummary-for-this-voice-sdk-call page anchor

Missing metrics/events/summaries can be caused by:

  • local network configuration blocking publishing to the Insights events gateway
  • expired tokens
  • publishing delays on the Voice Insights backend

I just enabled Voice Insights advanced features. Why do I see only one day worth of data?

i-just-enabled-voice-insights-advanced-features-why-do-i-see-only-one-day-worth-of-data page anchor

Advanced features data is available only while the feature is active on the account, any calls placed before the feature is enabled will not be flagged by the Voice Insights infrastructure, and the per-interval metrics and event stream will not be stored.


What does high latency mean?

what-does-high-latency-mean page anchor

Twilio will tag a call with high latency if the Twilio-internal RTP time for outbound packets received at the media edge for a call SID is greater than 150ms. The Call Summary will show the received latency for the provided call SID; i.e. how long it took packets from the media edge for the other side of the call to traverse Twilio's network on the way to the media edge for this call SID. We are tagging the received call and not the sending call because it is the received call that most commonly experiences the effects of the latency; e.g. there are long gaps between their speech and responses, they are being talked over, etc.


How is Twilio RTP Latency calculated?

how-is-twilio-rtp-latency-calculated page anchor

Twilio RTP latency shows the average and max Twilio-internal media stream traversal time in milliseconds. The Voice Insights platform analyzes the timestamps of when RTP packets are received at the ingress of Twilio's media gateway and compares that timestamp against the timestamp of the same packets at the egress on the other media edge.


What sources contribute to Twilio internal RTP traversal time?

what-sources-contribute-to-twilio-internal-rtp-traversal-time page anchor

The overwhelming number of calls marked as having high latency are calls with participants in distant geographic locations; e.g. a Voice SDK user in the Philippines dialing into a conference being mixed in Ireland. Calls placed using a conference call flow will have a small jitter buffer(link takes you to an external page) that can result in conference calls being more prone to be marked as having high latency; high jitter from Voice SDK participants can cause the jitter buffer to swell and delay playout of their media to the other participants in the conference. . Optimizing the region selections for Voice SDK instances and conferences is the best way to mitigate the impact of internal RTP traversal time. Ultimately if you have users separated by large distances, some degree of Twilio-internal latency can't be avoided.


What's the difference between high round trip time, high latency, and participant latency?

whats-the-difference-between-high-round-trip-time-high-latency-and-participant-latency page anchor
Twilio Audio Latency Metrics.

High round trip time (RTT) indicates the measurement of how long it took packets to arrive at the Voice SDK application sensors from Twilio's media gateway has breached 400 ms in 3 out of the last 5 samples. This measurement captures latency outside of Twilio's infrastructure.

High latency indicates that the average of the Twilio internal RTP traversal time was greater than 150 ms. This measurement capturers latency inside of Twilio's infrastructure, from when a packet arrived at Twilio's media edge, to when it exited Twilio's media edge on the other side of the call.

Participant latency indicates how long it took packets from a given participant to arrive at the conference mixer, and how long it took packets from other participants in the conference to arrive at the participant.


Do I need to pay for Voice Insights advanced features to utilize the event handlers in the SDKs?

do-i-need-to-pay-for-voice-insights-advanced-features-to-utilize-the-event-handlers-in-the-sdks page anchor

No. The SDK-level events like constant audio warnings and low MOS warnings can be instrumented without needing to pay for advanced features. Availability of the events via Console is an advanced feature.


What are some best practices for implementing these events in applications?

what-are-some-best-practices-for-implementing-these-events-in-applications page anchor

Implement handlers for network-quality-warning-raised group to warn users that their local network conditions might be impacting call quality—use the SDK to display warnings and prescriptive actions to users in the application; e.g. "check headset connection" or "move to an area with better WiFi".

Implement handlers for audio-level-warning-raised events to show visual indication to users that their audio is not being detected by the application.

Create post-call surveys using feedback events asking users to rate the subjective quality of experience and correlate responses with other metrics and properties to identify commonalities in call behavior changes.


Why is the "To" information always blank for calls placed from Voice SDK?

why-is-the-to-information-always-blank-for-calls-placed-from-voice-sdk page anchor

The "To" for a Voice SDK call is the Twilio application SID; the TwiML returned from the webhook configured in the application SID will create a child call, and that child call will contain the expected "To" details.


Why do we see jitter on the incoming stream of one side of this call, but no jitter on the outgoing stream of the other call?

why-do-we-see-jitter-on-the-incoming-stream-of-one-side-of-this-call-but-no-jitter-on-the-outgoing-stream-of-the-other-call page anchor

Twilio's conference mixers have a small jitter buffer that can reduce or eliminate jitter received on one call before passing it along to the other calls. The tradeoff for this is a proportional increase in latency.


This call looks like there was no jitter or packet loss on the incoming stream to Twilio, but on the outgoing stream of the child call we see some jitter and packet loss, is Twilio introducing these?

this-call-looks-like-there-was-no-jitter-or-packet-loss-on-the-incoming-stream-to-twilio-but-on-the-outgoing-stream-of-the-child-call-we-see-some-jitter-and-packet-loss-is-twilio-introducing-these page anchor

It's possible. RTP media streams are sent via User Datagram Protocol (UDP) which is a fire-and-forget protocol with no error correction. Jitter and packet loss for UDP transport is a fact of life in any network, and calls whose media streams traverse large distances (e.g. a Voice SDK call in Singapore terminating in a conference mixed in Brazil) are more likely to be impacted by inevitable-but-rare backbone-level jitter and packet loss.


Why does this Voice SDK call have low bytes sent/received warning events, but no packet loss warning?

why-does-this-voice-sdk-call-have-low-bytes-sentreceived-warning-events-but-no-packet-loss-warning page anchor

WebRTC uses RTCP to indicate the number of packets sent from the gateway to the Voice SDK application. Based on the RTCP sender reports if the sensors in the SDK are expecting packets, but packets don't arrive, those expected-but-missing packets will be calculated as packet loss. If the RTCP sender report indicates that no packets are expected, the absence of packets will not be calculated as packet loss, but will be reported as low bytes sent/received.


Based on the transport metrics this call should sound terrible, but the users didn't report any problems?

based-on-the-transport-metrics-this-call-should-sound-terrible-but-the-users-didnt-report-any-problems page anchor

It's challenging to infer the subjective user experience from transport-level metrics alone. In general, it's safe to say packet loss >5% is going to result in noticeably choppy audio; average jitter >5 is going to result in robotic audio, and RTT > 1000 ms is going to result in people either talking over each other or long periods of silence between speech.

Transport-level metrics like jitter and packet loss are attempts at monitoring indicators that can contribute to call quality degradation; however, browsers like Chrome have dynamic adaptive jitter buffers that can mask the impact of jitter by introducing latency. Codecs like Opus have packet loss concealment algorithms that can smooth out the impact of missing packets. At the SDK level we don't have a good sense for the jitter buffer or packet loss concealment activities at any given time, so we report on the underlying transport metrics in the absence of subjective feedback. SIP and PSTN carrier infrastructure may also be implementing jitter buffers or transcoding to reduce quality issues.


How can we know "for sure" that a user experienced a detectable issue?

how-can-we-know-for-sure-that-a-user-experienced-a-detectable-issue page anchor

The short answer is, we can't. We can infer the subjective experience from objective metrics, but we don't have end-to-end visibility of the performance characteristics of local hardware, local networks, intermediate carriers, etc. Voice Insights call tagging is based off the International Telecommunications Union ITU-T standards for VoIP quality, and we have tuned the performance based on years of feedback from customers to expose potential issues at the detectable-but-tolerating level. The idea behind this is that if we were to wait for the detectable-and-frustrated or frustrated-and-abandoning thresholds to be breached it would be too late to do anything about it. Erring on the side of alerting early allows developers to detect emerging issues before they become problems, and to provide guidance to users on behaviors that could be influencing the call in real time; e.g. "Poor network connection detected, try moving to a different location".

Another variable is variance in tolerance between individuals, and sometimes whole regions. You may have some users who are highly sensitive to latency and find it unacceptable, while others are more than willing to adjust their speech patterns to get in sync with a transcontinental conference call, just like some users balk at the first crackle of jitter and some are fine with piecing together choppy speech.

Ultimately your use case and your users' preferences will dictate whether or not something was a real problem, regardless of what the metrics say, and the best way to know is to ask them. Consider creating post-call surveys asking users to rate the subjective quality of experience and correlate responses with other metrics and properties to identify commonalities.


Can we detect if a Voice SDK user is connected via VPN?

can-we-detect-if-a-voice-sdk-user-is-connected-via-vpn page anchor

Not directly; the IP address reported to Insights would be that of the VPN IP, not the local device location. You can sometimes infer this from conversations with users; e.g. a user who is physically located in Germany but whose IP is showing up as being in Spain.


Do we know the mobile signal strength of the called party?

do-we-know-the-mobile-signal-strength-of-the-called-party page anchor

Not at this time. We are working on including signal strength and battery metrics in future versions of Insights for the mobile SDK, but the PLMN conditions are not available today.


How can we check the external network status? What are the tools used to check the external network for audio issues?

how-can-we-check-the-external-network-status-what-are-the-tools-used-to-check-the-external-network-for-audio-issues page anchor

The metrics reported at the carrier gateway represent what Twilio received from the PSTN. Twilio's Super Network is monitoring these connections in real-time and will raise quality degradations to carriers and file incidents as appropriate. Destination carriers often have status pages that can be checked for their local conditions as well, but they tend to be very conservative and slow to update.

Voice Insights is limited to inferring quality issues from proxy metrics like jitter and packet loss or silence detection. Voice Insights has visibility into what we sent from, and was received by, our media edges; degradation introduced on the way to the destination due to poor signal strength or a carrier issue would be transparent to Voice Insights today.


Where can I learn more about Voice Insights?

where-can-i-learn-more-about-voice-insights page anchor

Twilio has created a free self-paced online course for Voice Insights on our Twilio Training platform(link takes you to an external page). If you're looking for something a little higher level, check out our SIGNAL conference talks from 2021(link takes you to an external page), 2020(link takes you to an external page), 2019(link takes you to an external page), or 2018(link takes you to an external page).

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.