Deleted extensions still showing up as offline

Hi everyone,

we’re running FreePBX 16.30.0 and as others have already reported, sometimes deleted extensions still show up as offline under “Reports - Asterisk Info - Channels”.

In addition to that, we also have a strange “anonymous” extension that showed up out of nowere.

Since there is no info here or anywhere else about how to remove them, I started digging around in /etc/asterisk/ and found an anonymous entry in pjsip.endpoint.conf

freepbx_bug2

Furthermore, I queried the database and found entries for the deleted extension 6621 in tables extensionroutes and xmpp-users.

Extension 332 might vanish after a reboot, which I am not going to do until the weekend, where I’m going to create a snapshot of the system and start removing those entries by hand. Let’s see where it gets me.

Is there any other way to remove deleted extensions from the offline list reliably? I need the offline list, because my colleagues tend to disconnect their phones “by accident” and then complain when they are not reachable.

Regards

/admin/config.php?display=devices

and

Settings > Asterisk SIP Settings > General SIP Settings > Allow Anonymous Inbound SIP Calls / Allow SIP Guests > No

We have created the github jira :
[bug]: Deleted extensions still showing up as offline in Asterisk Info module · Issue #807 · FreePBX/issue-tracker
You can follow this jira for the fix update.

I closed out the FreePBX one, it’s an Asterisk issue.

Thanks for the answer.

Anonymous inbound calls and SIP guests are turned off now, at least in pjsip.endpoint.conf .
The devices list is clean, there are no deleted devices showing up.

Yet still anonymous and the deleted devices show up under “Reports - Asterisk Info - Channels”.

I am going to try my solution on the weekend.

If Asterisk is restarted they’ll go away. The PJSIP configuration when reloaded will have removed them, but that isn’t currently reconciled with the internal Asterisk endpoint. It’s pretty much just a cosmetic thing. It doesn’t allow calls in, you can’t place calls to them. They’ll just show up as offline with no channels.

I wish I could treat it as a “cosmetic thing”. As I mentioned in my initial question, I’d like to see reliably if phones are connected.

If this is not possible with FreePBX, I have to look into other options.

Unless FreePBX switched to querying PJSIP endpoint information instead of the general endpoints, this would be a fix within Asterisk. I have no timeframe on when such a thing would be fixed, and it would not be fixed in Asterisk 16.

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