- Shipped
- September 27, 2026 at 10:26 AM UTC
- Author
- Kamo
- Commit
- 3c3c382
Every POLICY_SECONDS the agent pulls GET /api/voip/pbx/config (also its heartbeat) and writes [kamo-outbound-allowed] and [kamo-ai-extensions] as a managed section of extensions_custom.conf, plus one endpoint and one static AOR contact per AI extension in the pjsip custom-post files. The WebRTC reconciler skips AI extensions but still pins direct_media=no. Both writers run on every pull, not only when the version moves: an AI line is listed from PROVISIONING, before FreePBX has generated the endpoint, and the version does not change when it does. A reload that fails is owed and retried. A managed section is rewritten where it stands, so two sections in one file no longer reorder each other on every write. The AMI client redials when its kept connection has died, as it does on every Asterisk restart.
