# Version 2.1.2 Missed-Call SMS Diagnostics

This patch improves missed-call SMS reliability and troubleshooting.

## Changes

- Adds Telnyx voice event logging.
- Tracks original caller across Telnyx call session/leg/control IDs.
- Triggers missed-call recovery once per call when Telnyx sends a timeout/no-answer/busy/failed hangup.
- Prevents one SMS failure from stopping owner notification or dashboard logging.
- Records `[SMS FAILED]` or `[SMS SKIPPED OR NOT CONFIGURED]` in the lead conversation if the SMS provider fails.
- Adds admin endpoint for manual missed-call recovery testing:
  POST /admin/api/settings/test-missed-call-recovery

## How to test

1. Confirm /voice/health says provider telnyx.
2. Confirm /sms/health says provider textbee or telnyx depending on SMS_PROVIDER.
3. Use /admin/system > Test SMS if your dashboard has that button.
4. Let a forwarded call ring until timeout and do not answer.
5. Check the lead conversation for SMS success/failure markers.
6. Check stderr.log for `[Telnyx voice event]` and `[Missed-call recovery triggered]`.
