classifyPlivoAmd (telephony/plivo.ts)

Patter · libraries/typescript/src/telephony/plivo.ts · typescript · MIT
voice, Voice / Speech

Plivo telephony bridge handling credentials, signature validation, and AMD classification for calls.

// Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/** Plivo carrier credentials holder + telephony bridge for Patter.
 *
 * Plivo's wire-protocol oddities live entirely in this file:
 *   - the answer XML puts the WSS URL in the ``<Stream>`` element's text
 *     content (not a ``url=`` attribute, like Twilio)
 *   - outbound audio is a ``playAudio`` command (vs Twilio's ``media``)
 *   - barge-in flush is ``clearAudio`` (vs ``clear``)
 *   - playback markers use ``checkpoint`` / ``playedStream`` (vs ``mark``)
 *   - DTMF send is ``sendDTMF`` over the WS (Twilio can't send DTMF at all)
 *   - webhooks sign with V3 (HMAC-SHA256 of url + nonce)
 *
 * The ``PlivoBridge`` and signat

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key