Some PJSIP extensions have no contact in the AOR

I’m at a loss.

Got a site with a total of about 50 extensions. Using PJSIP. About 6 of the extensions will not register a contact with the AOR, so you are unable to place an inbound call to them. They’re registered and can make outbound calls, they just can’t receive calls.

When I look through the asterisk logs, I see the following:
37719 [2021-09-27 15:03:42] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37720 [2021-09-27 15:03:42] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37721 [2021-09-27 15:03:59] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37722 [2021-09-27 15:04:12] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37723 [2021-09-27 15:04:26] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37724 [2021-09-27 15:04:26] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37725 [2021-09-27 15:04:43] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37726 [2021-09-27 15:04:56] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37727 [2021-09-27 15:05:10] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37728 [2021-09-27 15:05:10] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37729 [2021-09-27 15:05:27] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37730 [2021-09-27 15:05:40] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37731 [2021-09-27 15:05:54] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37732 [2021-09-27 15:05:54] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37733 [2021-09-27 15:06:11] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37734 [2021-09-27 15:06:24] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37735 [2021-09-27 15:06:38] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37736 [2021-09-27 15:06:38] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37737 [2021-09-27 15:06:55] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37738 [2021-09-27 15:07:08] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37739 [2021-09-27 15:07:22] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37740 [2021-09-27 15:07:22] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37741 [2021-09-27 15:07:39] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37742 [2021-09-27 15:07:52] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds
37743 [2021-09-27 15:08:06] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1120’ with expiration of 60 seconds
37744 [2021-09-27 15:08:06] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1270’ with expiration of 60 seconds
37745 [2021-09-27 15:08:23] VERBOSE[15575] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1110’ with expiration of 60 seconds
37746 [2021-09-27 15:08:36] VERBOSE[11046] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:5060’ to AOR ‘1190’ with expiration of 60 seconds

Yet no contacts are ever registered.

Everything is on the same LAN. Endpoints are Mitel 6867i phones. I’ve power cycled, reset to factory defaults, tried different firmware versions, all to no avail. I’m at a loss.

Which of those problematic extensions are shown in the log snippet?

Have you restore this server from a previous version/server?
What’s the output of ‘pjsip show aor XXXX’? (on the Asterisk CLI) being ‘XXXX’ one of the extensions throwing errors.

All of those in that log snippet are the extensions causing trouble.

This is a brand new install.

  Aor:  1190                                                 1

ParameterName : ParameterValue

authenticate_qualify : false
contact :
default_expiration : 3600
mailboxes :
max_contacts : 1
maximum_expiration : 7200
minimum_expiration : 60
outbound_proxy :
qualify_frequency : 60
qualify_timeout : 3.000000
remove_existing : true
support_path : false
voicemail_extension :

if you run the sngrep command line tool, can you give the output of one of these extensions Registering?

Some parameters are missing. Try by going to ‘Extensions > Modify’ and submit the extension without changing anything and Apply Config. Then check the AOR again.
If it doesn’t help, try by creating a new extension and check if the AOR is ok on the Asterisk console to rule out any other issue.

Here is a sample for extension 1110

aaahhhh character encoding and SNGREP… your session is not using UTF-8 to render properly.

But the flow there definitely APPEARS to be a successful negotiation and registration with a 60 second expiration. hmm. I agree with the other poster - go to the extension in freepbx’s web up and Submit / Apply, then try again.

I did give that a try first, and that didn’t help either. Next try is to delete and re-add. Incidentally changing to chan_sip the extension works fine.

… what port do you have PJSIP listening on? if you didn’t have to modify the port for your phone, something is very weird here.

It’s listening on 5060. This one is a real head scratcher. I’ve never come across this before either. I made all these extensions at the same time. Not sure why this handful is being a pain.

I’ve seen this issue occur when the sqlite3 database is corrupted or not functioning correctly. It fails to persist out to astdb (which is what is queried for registrations). The 200 OK will contain the complete contacts from astdb, so seeing that would show what’s in there. A “database show” would also double check things there.

2 Likes

When I do a database show command and compare a bad extension to a good one, they don’t look any different.

Can you tell us:

  • version of FPBX
  • asterisk version
  • are these aastra phones all running the same firmware version?

as I haven’t seen that yet…

FreePBX 15.0.17.53
Asterisk 16.20.0

Aastra/Mitel Firmware 5.1.0.4040 (though I’ve gone up one version and down one version, nothing helped)

Incidentally, removing and readding the extension has not helped either. The only way I’ve been able to make these extensions function thus far is to change them to chan_sip.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.