All calls go to voicemail

,

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

I’m sorry but I have no idea what these mean.

Hope someone can help,

Bill.

Does anyone have any ideas? I have removed extensions and added them back but the situation is the same.

Bill.

Where you on SIP or PJSIP on v15? Are you on SIP or PJSIP on v16?

Both have to match. I suspect you were on SIP in 15 and are on PJSIP in 16

Edit:
CHAN_SIP vs PJSIP I meant to say

1 Like

Thanks for the thought but I’ve always used PJSIP because of the future-proofing.

Bill.

You AstDB doesn’t seem to exist or is corrupted. That will cause issues. That is why it can’t bind contacts, they get stored in the AstDB.

Thanks. Is there a way to repair/re-create it?

Bill.

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.

Bill.