sip-error-handling #6

Merged
probablycorey merged 2 commits from sip-error-handling into main 2026-01-21 23:09:07 +00:00

2 Commits

Author SHA1 Message Date
2428afd3db Add SIP registration error handling with Twilio API
- Catch all SIP error codes (not just 403) in registration failures
- Query Twilio API on error to get detailed account status
- Show helpful message like "Twilio account suspended - add funds"
- Retry registration after 2 minutes instead of exiting
- Add restart() method to Baresip for clean reconnection

Requires TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN env vars for
detailed error messages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 14:54:17 -08:00
b53a4197c6 Add .worktrees to gitignore
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 22:54:16 +00:00