Skip to content

Share auto-hang-up lifecycle across telephony serializers#5014

Open
mr-meetpatel wants to merge 2 commits into
pipecat-ai:mainfrom
mr-meetpatel:feat/telephony-auto-hangup-base
Open

Share auto-hang-up lifecycle across telephony serializers#5014
mr-meetpatel wants to merge 2 commits into
pipecat-ai:mainfrom
mr-meetpatel:feat/telephony-auto-hangup-base

Conversation

@mr-meetpatel

Copy link
Copy Markdown

Summary

  • Adds AutoHangupFrameSerializer to share terminal-frame handling across REST-based telephony serializers
  • Migrates Twilio, Telnyx, and Plivo while preserving their provider-specific hang-up behavior
  • Prevents repeated or concurrent EndFrame and CancelFrame processing from triggering duplicate hang-up attempts
  • Leaves Genesys, Exotel, Vonage, and non-telephony serializers unchanged

Testing

  • Added lifecycle tests covering terminal-frame detection, disabled handling, duplicate attempts, concurrency, and provider errors
  • Added regression coverage for Twilio, Telnyx, and Plivo
  • Verified Genesys and Protobuf serializer behavior remains unchanged
  • Ran 59 focused tests, Ruff lint, and Ruff formatting checks

Fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce a Reusable Auto-Hang-Up Lifecycle for REST-Based Telephony Serializers

1 participant