The "last" issue: A left over extension


(Hs) #1

I did now migrate the FreePBX Server to a new hardware including an upgrade to FreePBX 15. All works well.
I have just a little remaining issue:
From my initial testing I have still 2 extensions somewhere hidden which lead to this warning in dashboard:

2 extensions/trunks have weak secrets
Warning: The use of weak SIP/IAX passwords can compromise this system
resulting in toll theft of your telephony service. You should change the
reported devices and trunks to use strong secrets.

Nebenstelle: 119 / Secret less than 6 digits
Nebenstelle: 118 / Secret less than 6 digits

These extensions are not listed anywhere in the FreePBX GUI and I want to remove them. Any idea where to look for it in the configuration files? A recursive grep was not successful so far…

TIA,

HS


(Itzik) #2
grep 119 /etc/asterisk/*

Returns nothing?

Then it probably doesn’t exist.

To be safe, check the following places.

http://pbx.address/admin/config.php?display=trunks
http://pbx.address/admin/config.php?display=users
http://pbx.address/admin/config.php?display=devices


(Hs) #3

Yes.

grep -R 119 /etc/asterisk/*

returns nothing.

Still there is the Warning in FreePBX and I’d like to get rid of it…


(Lorne Gaetz) #4

Manually browse to the URL

http://serverip/admin/config.php?display=devices

and delete them from that page


(Hs) #5

The extensions are not listed on that page. I looked at “All devices” and each other tab too to be sure…


(Hs) #6

I missed that before but now I checked these URL´s too: nothing listed.


(Hs) #7

Just a thought:
I removed the extensions several weeks ago after the first tests are finished. Is it possible that there is just a left over password saved somewhere and nothing else?
Where to look for that?


#8

perhaps try

rasterisk -x "database show"|grep  "11[89]"

(Hs) #9

Yep. There are entries for

/CALLTRACE/119 : 119
/CustomDevstate/FOLLOWME119 : NOT_INUSE
/DEVICE/119/tech : pjsip

How can I remove them?


#10
rasterisk -x "database deltree DEVICE/119"


(Hs) #11

Great. This is very helpful because now I know where to look for entries and in case something went wrong how to fix this.

I removed now the obsolete 11* entries from the database. Still I get the

2 extensions/trunks have weak secrets

message. I did also a

rasterisk -x “core restart now”

which did not change anything.
So there must be still another location where these extensions are referred.


#12
mysql asterisk -e "delete from notifications"

(Hs) #13

Ok. Now the warnings are gone.

I guess it is time for me to look for the command line tools to trust not only the GUI :wink:

Many thanks for your help!


(Itzik) #14

Well, that deleted the notification, it did not clean-up whatever but or leftovers there’s on the PBX


#15

Actually the only thing leftover are the notifications. The module itself doesn’t seem to clean up after its own self.


(Hs) #16

I removed the configuration before. So there was just the notification leftover.


(system) closed #17

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