feat: provider-agnostic telephony integration with Plivo support - #63
Merged
Conversation
Consolidate telephony as a provider-agnostic integration and wire phone-call agents to telephony numbers with provider selection and fallback custom input. Add telephony playback profiles in voice playground so TTS can be evaluated under narrowband/wideband call conditions. Made-with: Cursor
aadhar-EAI
force-pushed
the
plivo_integration
branch
from
April 24, 2026 06:48
986f03d to
e8d3852
Compare
Use an ALTER-based named FK on telephony phone number agent linkage so SQLAlchemy can drop metadata cleanly in tests without circular dependency errors. Made-with: Cursor
Add backward-compatible persona enum validation for legacy rows and make AgentResponse telephony_phone_number_id optional by default so backend tests pass on current schema fixtures. Made-with: Cursor
Reintroduce missing auth settings and user auth columns expected by the auth stack after rebase so provider resolution and local-password flows work again in Postgres CI. Made-with: Cursor
Restore auth API types and session methods used by Login/Profile/authStore so the frontend TypeScript build succeeds in the API Docker image build stage. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's Included
Backend:
app/services/telephony/— Plivo client wrapper, XML helper, and provider-agnosticTelephonyServicewith outbound calls, OTP verify, number masking, and webhook handlingapp/api/v1/routes/telephony.py— Full REST API: config CRUD, number sync/list/patch, outbound calls, verify sessions, masking, and Plivo webhooks (answer, events, masking)app/models/database.py/enums.py/schemas.py—TelephonyIntegration,TelephonyPhoneNumber,TelephonyVerifySession,TelephonyMaskedSessionmodels withTelephonyProviderenumapp/migrations/016-018— Three sequential migrations: initial Plivo tables, rename to provider-agnostic schema, add telephony link to agentsapp/config.py— Plivo global config fields (auth_id, auth_token, verify_app_uuid, webhook_base_url)telephony_phone_number_idforeign keyFrontend:
Test plan
test_connectionsucceedsPOST /telephony/calls/outboundand verify call is placedMade with Cursor