I recently started to use v16 and restored my v15 backup. All went well except now all calls to extensions go to voicemail. Outgoing calls to the public networks work fine. DND is not set. I checked the logs and see the following (there are similar ones for all extensions):
[2025-05-07 13:14:42] WARNING[2922]: db.c:348 ast_db_put: Couldn’t execute statement: SQL logic error or missing database
[2025-05-07 13:14:42] ERROR[2922]: res_pjsip_registrar.c:861 register_aor_core: Unable to bind contact ‘sip:[email protected]:5207’ to AOR ‘768’
[2025-05-07 13:15:37] NOTICE[2922]: res_pjsip_exten_state.c:421 new_subscribe: Endpoint ‘767’ state subscription failed: Extension ‘’ does not exist in context ‘from-internal’ or has no associated hint
The way to repair it is to delete it. Asterisk will recreated it, in an empty state. I’d hope a FreePBX reload would trigger the recreation process, and fully re-instate what FreePBX needs, but I haven’t tried this in anger.
I deleted my astdb today because after every update (apt upgrade, fwconsole ma upgrade all) I had the problem that extensions were not reachable. I was not able to understand why but I think my FreePBX 17 installation was confused about whether Voicemail was enable or not and decided to just ignore the extensions even though a phone was registered.
Deleting the astdb file had the same effect though, I had to manually click every extension and enable voicemail, save&apply and then disable voicemail again for all. I hope a broken astdb was the root cause and at least future updates won’t break it again?
Thanks to advice here, I now have it working again. I renamed the file astdb.sqlite3 in directory /var/lib/asterisk to astdb.sqlite3a so I could go back easily to where I was. I tried to reload but it didn’t work until I did a full reboot. If you use the Asterisk phonebook, export it to a separate file and import it afterwards because it is stored in astdb and doesn’t get regenerated.
After that, I turned off voicemail on each extension (noting the access passwords), submitted the change and applied the config. The extensins then became accessible. I then added back voicemail on each extension, submitted and applied the config.
I still have the NOTICE:
[2025-05-07 13:15:37] NOTICE[2922]: res_pjsip_exten_state.c:421 new_subscribe: Endpoint ‘767’ state subscription failed: Extension ‘’ does not exist in context ‘from-internal’ or has no associated hint
but it doesn’t seem to affect operation. It would be nice to know what is different about that extension but I imagine I’ll never find out.
Thanks once again to everyone who steered me in the right direction.