Changed FreePBX and now previously registered extensions shows state Suscription failed

Hi, I have this strange scenario and I’ve been trying to get to the bottom of it.

My company had a FreePBX hosted in an AWS instance, let’s call this (Old-PBX). Then, I have created a new PBX instance with a working CDR report system, let’s call this (New-PBX). I created this new instance because previously the Old-PBX didn’t have the CDR report working at all. Note that I have attached the Public IP Address from the previous Old-PBX to the New-PBX. Everything works fine, trunks are established and extensions are registered successfully with the New-PBX instance.

Note: I have used the same extension numbers and same passwords for all the extensions so that I wouldn’t have to go one by one and re-register every extension with our New-PBX. And, Indeed all previously registered extensions with the Old-PBX did register with the New-PBX, no changes were needed.

Now, I have a concurrent issue. Although everything works with the New-PBX, I started getting this errors in the Asterisk Logs:

Endpoint '7XX2' state subscription failed: Extension '7XX1' does not exist in context 'from-internal
' or has no associated hint

When the phones started getting registered with the New-PBX, the BLF lights started not working at all. You could call extensions, receive calls and everything but the presence wasn’t working.

After a lot of digging, I decided to create a new extension number that hadn’t been registered on any phone before. Lo and behold, the BLF started working for that specific extension. When I switched back to an old extension number, all BLFs stopped working again.

Does anyone know why BLF and subscription presence are working only on the newly created extension number? It seems that all the BLF light statuses are not working with all the phones that were previously registered with the Old PBX, even thought the public IP Address is literally the same as well as the password.

I need help :(!

7XX2 != 7XX1, check your configs for typos.

Hi Dicko, Sorry I have little experience with digging into the config files. Could you please guide me through where I can check this?

Not so much understanding, just check your work (BLF’s) for typos. As you where informed, 7XX2 can’t subscribe to 7XX1

So here is the strange part. Let’s say I have extension 7101, this extension was registered on the previous old PBX as well. I have a phone registered with extension 7101 and it had a BLF pointing to 7102. BLF is not showing the presence “green light”. I dial 7102 from the 7101 phone, it works.

Now, let’s create a new extension: 7103, and let’s register this extension in the phone that had 70101. BLF config doesn’t change and keeps pointing to 7102. Once the 7103 phone is registered, BLF lights up! It shows “green light”.

Then I switch back and register the previous extension 7101 and BLF stopped showing presence.

I am so confused, there are no typos at all :confused:

You can most easily check your dynamic SUBSCRIBE’s and NOTIFY’s with sngrep in almost realtime

Hi Dicko, So I would need to install sngrep on my Linux host server, and then figure out how to use it so I can see the SUBSCRIBE’S and NOTIFY’S. What sort of information can I find using this tool?

You will probably find it already installed. From a shell

man sngrep

I was able to install it as I didn’t have it installed in my shell,

I run it and I can see some subscribe messages and if a get inside one of these messages I get something like this:

│SUBSCRIBE sip:[email protected]:5060 SIP/2.0

││From: “Test-Phone” sip:[email protected]:5060;tag=16274??414
││To: sip:[email protected]:5060
││Allow: INVITE,INFO,PRACK,ACK,BYE,CANCEL,OPTIONS,NOTIFY,REGISTER,SUBSCRIBE,REFER,PUBLISH,UP
││ Accept: application/dialog-info+xml
││Max-Forwards: 70
│││User-Agent: Yealink SIP-T46S
│││Expires: 1800
│││Event: dialog
│││Content-Length: 0

And in the left hand-side it shows:

---------> SUBSCRIBE
<--------- 401 Unauthorized
---------> SUBSCRIBE
<--------- 404 Not Found

No idea why it shows this 401 and 404 errors?

From an Asterisk CLI

core show hints

-= Registered Asterisk Dial Plan Hints =-
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
*[email protected]    : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
_*45*[email protected]  : ${DB(AMPUSER/${EXTEN  State:Unavailable     Presence:                Watchers  0
_*46*[email protected]  : ${DB(AMPUSER/${EXTEN  State:Unavailable     Presence:                Watchers  0
[email protected]     : PJSIP/7101&Custom:D  State:Idle            Presence:                Watchers  4
[email protected]     : PJSIP/70122&Custom:D  State:Idle            Presence:                Watchers  3
*[email protected]: Custom:TC2            State:InUse           Presence:not_set         Watchers  0
*[email protected]: Custom:TC1            State:Idle            Presence:not_set         Watchers  0
_*45XXXXX*[email protected]: Custom:QUEUE${EXTEN:  State:Unavailable     Presence:                Watchers  0
[email protected]     : PJSIP/7102&Custom:D  State:Idle            Presence:                Watchers  7
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
_*46*XXXXX*[email protected]: Queue:70100_pause_Lo  State:Unavailable     Presence:                Watchers  0
[email protected]       : park:[email protected]&  State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]       : park:[email protected]   State:Idle            Presence:not_set         Watchers  0
[email protected]     : PJSIP/70222&Custom:D  State:Idle            Presence:not_set         Watchers  0
[email protected]     : PJSIP/70221&Custom:D  State:Idle            Presence:not_set         Watchers  0
[email protected]      : &Custom:DND7013,Cust  State:Idle            Presence:not_set         Watchers  0
[email protected]      : &Custom:DND7012,Cust  State:Idle            Presence:not_set         Watchers  0
[email protected]      : &Custom:DND7011,Cust  State:Idle            Presence:not_set         Watchers  0
[email protected]      : &Custom:DND7010,Cust  State:Idle            Presence:not_set         Watchers  1
_*46*XXXXX*[email protected]: Queue:70114_pause_Lo  State:Unavailable     Presence:                Watchers  0
_*46*XXXXX*[email protected]: Queue:70111_pause_Lo  State:Unavailable     Presence:                Watchers  0
_*46*XXXXX*[email protected]: Queue:70110_pause_Lo  State:Unavailable     Presence:                Watchers  0
_*46*XXXXX*[email protected]: Queue:70113_pause_Lo  State:Unavailable     Presence:                Watchers  0
_*46*XXXXX*[email protected]: Queue:70112_pause_Lo  State:Unavailable     Presence:                Watchers  0
[email protected]     : PJSIP/70171&Custom:D  State:Idle            Presence:                Watchers  3
[email protected]     : PJSIP/70172&Custom:D  State:Unavailable     Presence:                Watchers  3
[email protected]     : PJSIP/70241&Custom:D  State:Unavailable     Presence:                Watchers  5
[email protected]     : PJSIP/70242&Custom:D  State:Unavailable     Presence:                Watchers  5
[email protected]     : PJSIP/70144&Custom:D  State:Unavailable     Presence:                Watchers  5
[email protected]     : PJSIP/70143&Custom:D  State:Unavailable     Presence:                Watchers  5
[email protected]     : PJSIP/70142&Custom:D  State:Unavailable     Presence:                Watchers  5
[email protected]     : PJSIP/70141&Custom:D  State:Idle            Presence:                Watchers  5
[email protected]     : PJSIP/70151&Custom:D  State:Idle            Presence:                Watchers  3
_*[email protected] : Custom:DEVCF${EXTEN:  State:Unavailable     Presence:                Watchers  0
[email protected]     : PJSIP/70251&Custom:D  State:Unavailable     Presence:                Watchers  2
_*[email protected]: Custom:DEVDND${EXTEN  State:Unavailable     Presence:                Watchers  0
[email protected]     : PJSIP/70252&Custom:D  State:Unavailable     Presence:                Watchers  2
[email protected]     : PJSIP/70183&Custom:D  State:Idle            Presence:not_set         Watchers  1
[email protected]     : PJSIP/70182&Custom:D  State:Idle            Presence:not_set         Watchers  0
[email protected]     : PJSIP/70181&Custom:D  State:Unavailable     Presence:                Watchers  2
_*[email protected]    : ${DB(AMPUSER/${EXTEN  State:Unavailable     Presence:                Watchers  0
*[email protected]: Custom:DAYNIGHT1      State:Idle            Presence:not_set         Watchers  0
*[email protected]: Custom:DAYNIGHT2      State:Idle            Presence:not_set         Watchers  0
_*[email protected]: Custom:FOLLOWME${EXT  State:Unavailable     Presence:                Watchers  0
_*[email protected]   : MWI:${EXTEN:3}@${DB(  State:Unavailable     Presence:                Watchers  0
----------------
- 58 hints registered

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