Phones randomly unregister. Reboot to make them register again

Need help to solve this one. Every so often (once per day or so) a phone will unregister, when rebooted it will register again.

I tried factory reset to clear out any bad parameters being held, but after the fresh config is loaded again, it still happens.

The phone is set to register: 3600, register: yes

Why would it register successfully sometimes, then unregister other times, but be fine again when rebooted?

Cisco SPA514G phone XML Config of problem phone

<flat-profile>

  <XML_Directory_Service_Name ua="na">HM Directory</XML_Directory_Service_Name>
  <XML_Directory_Service_URL ua="na">http&#58;&#47;&#47;10.1.1.10&#47;directory&#47;dir.xml</XML_Directory_Service_URL>



<Server_Type ua="na">Asterisk</Server_Type>
<!-- Line Key 2 -->

  <Extension_2_ ua="na">Disabled</Extension_2_> <!-- options: 1/2/3/4/5/6/7/8/9/10/11/12/Disabled -->
  <Short_Name_2_ ua="na">Voicemail</Short_Name_2_>
  <Share_Call_Appearance_2_ ua="na">private</Share_Call_Appearance_2_> <!-- options: private/shared -->
  <Extended_Function_2_ ua="na">fnc=xml;url=http://10.1.1.10/voicemail/voicemail.php?user=124</Extended_Function_2_>


 <!-- Line Key 3 -->

  <Extension_3_ ua="na">Disabled</Extension_3_> <!-- options: 1/2/3/4/5/6/7/8/9/10/11/12/Disabled -->
  <Short_Name_3_ ua="na">Hunt Group</Short_Name_3_>
  <Share_Call_Appearance_3_ ua="na">private</Share_Call_Appearance_3_> <!-- options: private/shared -->
  <Extended_Function_3_ ua="na">fnc=sd+blf;sub=*45124*[email protected]:41801</Extended_Function_3_>

  <!-- Line Key 4 -->

  <Extension_4_ ua="na">Disabled</Extension_4_> <!-- options: 1/2/3/4/5/6/7/8/9/10/11/12/Disabled -->
  <Short_Name_4_ ua="na">Night Mode</Short_Name_4_>
  <Share_Call_Appearance_4_ ua="na">private</Share_Call_Appearance_4_> <!-- options: private/shared -->
  <Extended_Function_4_ ua="na">fnc=sd+blf;sub=*[email protected]:41801</Extended_Function_4_>
  <RTP_Packet_Size ua="na">0.020</RTP_Packet_Size>
 <Programmable_Softkey_Enable ua="na">Yes</Programmable_Softkey_Enable>
  <Idle_Key_List ua="na">em_login|1;acd_login|1;acd_logout|1;astate|2;avail|3;unavail|3;redial|5;dir|6;cfwd|7;dnd|8;pickup|10;gpickup|11;unpark|12;guestIn|13;guestOut|13;em_logout</Idle_Key_List>
  <Missed_Call_Key_List ua="na">miss|4</Missed_Call_Key_List>
  <Off_Hook_Key_List ua="na">redial|1;dir|2;cfwd|3</Off_Hook_Key_List>
  <Dialing_Input_Key_List ua="na">dial|1;delchar|2;cancel|3;dir|4</Dialing_Input_Key_List>
  <Progressing_Key_List ua="na">endcall|4</Progressing_Key_List>
  <Connected_Key_List ua="na">xfer|1;bxfer|2;conf|3;endcall|4;toggle;confLx;xferLx;park;phold;flash;</Connected_Key_List>
  <Start-Xfer_Key_List ua="na">hold|1;endcall|2;xfer|4;toggle;</Start-Xfer_Key_List>
  <Start-Conf_Key_List ua="na">hold|1;endcall|2;conf|4;toggle;</Start-Conf_Key_List>
  <Conferencing_Key_List ua="na">hold|1;endcall|2;join|4</Conferencing_Key_List>
  <Releasing_Key_List ua="na">endcall|4;</Releasing_Key_List>
  <Hold_Key_List ua="na">resume|1;endcall|2;newcall|3;redial;dir;cfwd;dnd</Hold_Key_List>
  <Ringing_Key_List ua="na">answer|1;ignore|2;toggle|4</Ringing_Key_List>
  <Shared_Active_Key_List ua="na">newcall|1;barge|2;cfwd|3;dnd|4</Shared_Active_Key_List>
  <Shared_Held_Key_List ua="na">resume|1;barge|2;cfwd|3;dnd|4</Shared_Held_Key_List>
  <PSK_1 ua="na"></PSK_1>
  <PSK_2 ua="na"></PSK_2>
  <PSK_3 ua="na"></PSK_3>
  <PSK_4 ua="na"></PSK_4>
  <PSK_5 ua="na"></PSK_5>
  <PSK_6 ua="na"></PSK_6>
  <PSK_7 ua="na"></PSK_7>
  <PSK_8 ua="na"></PSK_8>
  <PSK_9 ua="na"></PSK_9>
  <PSK_10 ua="na"></PSK_10>
  <PSK_11 ua="na"></PSK_11>
  <PSK_12 ua="na"></PSK_12>
  <PSK_13 ua="na"></PSK_13>
  <PSK_14 ua="na"></PSK_14>
  <PSK_15 ua="na"></PSK_15>
  <PSK_16 ua="na"></PSK_16>



 <Line_Navigation ua="na">Per Call</Line_Navigation>
  <Admin_Passwd ua="na">secret</Admin_Passwd>
  <Signaling_Protocol ua="na">SIP</Signaling_Protocol>
  <Connection_Type ua="rw">Static IP</Connection_Type>
   
    <!-- System Configuration -->

  <Static_IP ua="rw">10.1.1.92</Static_IP>
   
    <!-- System Configuration -->

  <NetMask ua="rw">255.255.255.0</NetMask>
  <Gateway ua="rw">10.1.1.1</Gateway>
  <Primary_DNS ua="rw">10.1.1.1</Primary_DNS>
  <Secondary_DNS ua="rw">4.2.2.2</Secondary_DNS>
  <NTP_Enable ua="na">Yes</NTP_Enable>
  <Primary_NTP_Server ua="na">us.pool.ntp.org</Primary_NTP_Server>
  <Secondary_NTP_Server ua="na">pool.ntp.org</Secondary_NTP_Server>
  <Provision_Enable ua="na">Yes</Provision_Enable>
  <Resync_Periodic ua="na">3600</Resync_Periodic>
  <Transport_Protocol ua="na">tftp</Transport_Protocol>
  <Upgrade_Enable ua="na">Yes</Upgrade_Enable>
  <Upgrade_Rule ua="na">( $SWVER ne 7.5.6 )? tftp://10.1.1.10:41801/sw/spa51x-7-5-6.bin</Upgrade_Rule>
  <Line_Enable_1_ ua="na">Yes</Line_Enable_1_>
  <Proxy_1_ ua="na">10.1.1.10:41801</Proxy_1_>
  <Register_1_ ua="na">Yes</Register_1_>
  <Make_Call_Without_Reg_1_ ua="na">No</Make_Call_Without_Reg_1_>
  <Ans_Call_Without_Reg_1_ ua="na">No</Ans_Call_Without_Reg_1_>
     
    
     <!-- System Configuration -->

  <Display_Name_1_ ua="na">CTP</Display_Name_1_>
  <User_ID_1_ ua="na">124</User_ID_1_>
      
      <!-- System Configuration -->

  <Password_1_ ua="na">secret</Password_1_>
  <Use_Auth_ID_1_ ua="na">No</Use_Auth_ID_1_>
 <Dial_Plan_1_ ua="na">(*xxxxx*xxx|7xxx|1xxS0|[3469]11S0|911S0|[2-9]xxxxxxxxxS0)</Dial_Plan_1_>
  <Line_Enable_2_ ua="na">No</Line_Enable_2_>
  <Line_Enable_3_ ua="na">No</Line_Enable_3_>
  <Line_Enable_4_ ua="na">No</Line_Enable_4_>
  <Log_Missed_Calls_for_EXT_1 ua="na">Yes</Log_Missed_Calls_for_EXT_1>
  <Back_Light_Timer ua="na">Always On</Back_Light_Timer>
    
      <!-- System Configuration -->

  <Station_Name ua="na">CTP</Station_Name>
  <Station_Display_Name ua="na">CTP</Station_Display_Name>
     
      <!-- System Configuration -->

  <Voice_Mail_Number ua="na">*97</Voice_Mail_Number>
    <BMP_Picture_Download_URL ua="na"></BMP_Picture_Download_URL>
  <Select_Logo ua="na"></Select_Logo>
  <Select_Background_Picture ua="na"></Select_Background_Picture>
  <Screen_Saver_Icon ua="rw"></Screen_Saver_Icon>
  <Extension_1_ ua="na">1</Extension_1_>
  <Extension_2_ ua="na">Disabled</Extension_2_>
  <Extension_3_ ua="na">Disabled</Extension_3_>
  <Extension_4_ ua="na">Disabled</Extension_4_>
  <Softkey_Navigation_Style ua="na">More</Softkey_Navigation_Style>
  <Call_Return_Code ua="na"></Call_Return_Code>
  <Blind_Transfer_Code ua="na"></Blind_Transfer_Code>
  <Call_Back_Act_Code ua="na"></Call_Back_Act_Code>
  <Call_Back_Deact_Code ua="na"></Call_Back_Deact_Code>
  <Cfwd_All_Act_Code ua="na"></Cfwd_All_Act_Code>
  <Cfwd_All_Deact_Code ua="na"></Cfwd_All_Deact_Code>
  <Cfwd_Busy_Act_Code ua="na"></Cfwd_Busy_Act_Code>
  <Cfwd_Busy_Deact_Code ua="na"></Cfwd_Busy_Deact_Code>
  <Cfwd_No_Ans_Act_Code ua="na"></Cfwd_No_Ans_Act_Code>
  <Cfwd_No_Ans_Deact_Code ua="na"></Cfwd_No_Ans_Deact_Code>
  <CW_Act_Code ua="na"></CW_Act_Code>
  <CW_Deact_Code ua="na"></CW_Deact_Code>
  <CW_Per_Call_Act_Code ua="na"></CW_Per_Call_Act_Code>
  <CW_Per_Call_Deact_Code ua="na"></CW_Per_Call_Deact_Code>
  <Block_CID_Act_Code ua="na"></Block_CID_Act_Code>
  <Block_CID_Deact_Code ua="na"></Block_CID_Deact_Code>
  <Block_CID_Per_Call_Act_Code ua="na"></Block_CID_Per_Call_Act_Code>
  <Block_CID_Per_Call_Deact_Code ua="na"></Block_CID_Per_Call_Deact_Code>
  <Block_ANC_Act_Code ua="na"></Block_ANC_Act_Code>
  <Block_ANC_Deact_Code ua="na"></Block_ANC_Deact_Code>
  <DND_Act_Code ua="na"></DND_Act_Code>
  <DND_Deact_Code ua="na"></DND_Deact_Code>
  <Secure_All_Call_Act_Code ua="na"></Secure_All_Call_Act_Code>
  <Secure_No_Call_Act_Code ua="na"></Secure_No_Call_Act_Code>
  <Secure_One_Call_Act_Code ua="na"></Secure_One_Call_Act_Code>
  <Secure_One_Call_Deact_Code ua="na"></Secure_One_Call_Deact_Code>
  <Paging_Code ua="na"></Paging_Code>
  <Call_Park_Code ua="na"></Call_Park_Code>
  <Call_Pickup_Code ua="na"></Call_Pickup_Code>
  <Call_UnPark_Code ua="na"></Call_UnPark_Code>
  <Group_Call_Pickup_Code ua="na"></Group_Call_Pickup_Code>
  <Media_Loopback_Code ua="na"></Media_Loopback_Code>
  <Referral_Services_Codes ua="na"></Referral_Services_Codes>
  <Feature_Dial_Services_Codes ua="na"></Feature_Dial_Services_Codes>
  <Service_Annc_Base_Number ua="na"></Service_Annc_Base_Number>
  <Service_Annc_Extension_Codes ua="na"></Service_Annc_Extension_Codes>
  <Prefer_G711u_Code ua="na"></Prefer_G711u_Code>
  <Force_G711u_Code ua="na"></Force_G711u_Code>
  <Prefer_G711a_Code ua="na"></Prefer_G711a_Code>
  <Force_G711a_Code ua="na"></Force_G711a_Code>
  <Prefer_G723_Code ua="na"></Prefer_G723_Code>
  <Force_G723_Code ua="na"></Force_G723_Code>
  <Prefer_G722_Code ua="na"></Prefer_G722_Code>
  <Force_G722_Code ua="na"></Force_G722_Code>
  <Prefer_L16_Code ua="na"></Prefer_L16_Code>
  <Force_L16_Code ua="na"></Force_L16_Code>
  <Prefer_AMR-WB_Code ua="na"></Prefer_AMR-WB_Code>
  <Force_AMR-WB_Code ua="na"></Force_AMR-WB_Code>
  <Prefer_G726r16_Code ua="na"></Prefer_G726r16_Code>
  <Force_G726r16_Code ua="na"></Force_G726r16_Code>
  <Prefer_G726r24_Code ua="na"></Prefer_G726r24_Code>
  <Force_G726r24_Code ua="na"></Force_G726r24_Code>
  <Prefer_G726r32_Code ua="na"></Prefer_G726r32_Code>
  <Force_G726r32_Code ua="na"></Force_G726r32_Code>
  <Prefer_G726r40_Code ua="na"></Prefer_G726r40_Code>
  <Force_G726r40_Code ua="na"></Force_G726r40_Code>
  <Prefer_G729a_Code ua="na"></Prefer_G729a_Code>
  <Force_G729a_Code ua="na"></Force_G729a_Code>
  <Time_Zone ua="na">GMT-06:00</Time_Zone>
  <Daylight_Saving_Time_Rule ua="na">start=3/8/7/2:0:0;end=11/1/7/2:0:0;save=1</Daylight_Saving_Time_Rule>
  <Daylight_Saving_Time_Enable ua="na">Yes</Daylight_Saving_Time_Enable>
  <Locale ua="na">en-US</Locale>
  <Unit_1_Enable ua="na">No</Unit_1_Enable>
  <Unit_2_Enable ua="na">No</Unit_2_Enable>

</flat-profile>

I had a problem like this with our Polycom phones.

I ended up setting the registration timeout to 30 seconds on the individual phones and that fixed the problem; I believe the timeout was 3600 on mine originally as well.

Overkill
Thanks for the reply! It makes sense to me because in Asterisk SIP settings, max registration time is 3600, so if a phone for some reason registered a second late or something then maybe FreePBX marked it as dead.

In Asterisk SIP settings, min is 60, max is 3600, default is 120. So I set my phone config to 120 for now and will watch it over the next 2 days to see if I catch it unregistered and will let you know

Thanks for your help

So its still not working… the phone still randomly unregisters, but when rebooted, registers fine.

In the phone config, I changed the “Resync Periodic” parameter from 3600 to 120, but now that I think about it, that is for it to check to see if it should download a new config, not a SIP timer. So I went to look at the settings in the SIP Timers and not sure what is the registration time setting

Also, is there some other debugging I can do? I looked at reports in FreePBX, the problem extension is 114, its highlighted

Also, here is Asterisk summary page

I’m watching the phone and it says “Next Reg in 30s” so I SSH into FreePBX,

turn on debug with asterisk -rvvvvv

and wait until it says “Next Reg in 0s”

Nothing comes across the screen on the asterisk debug.

The phone says “Failed. No Response” then starts the countdown again.

Okay here is the phone config parameter that I should have changed from 3600 to 120

<Register_Expires_1_ ua="na">120</Register_Expires_1_>

Changed that and will see if it fixes the problem

Several potential causes, I’m going to focus on three:

1) 10.1.1.92 is the LAN IP of the config you showed me, which is registered at x124. Is this maybe an IP conflict between x114 and x124, or was this the config of x124?

2) For all of your 10-dot phones, ForceRport/Comedia are set to no. You said that you’re watching the phone and you’re showing me LAN IPs in the screenshots, so that makes me think these should be no on this line as well.

3) Set your “Reg Max Expires” to the lower value (120), I think this is what I was talking about :slight_smile:

1 Like

Overkill
YOU ARE A GENIUS

It was IP conflict, ext124 and ext 114 IPs were both .92, but 114 was supposed to be .82

Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

:slight_smile:

I didn’t stay in college, but the first networking class I slept through, this was like…day 1 :stuck_out_tongue:

Merry PBX-mas™ :smiley:

1 Like

FYI- It is often better to have the phones obtain their IP addresses via DHCP. If you want to set a phone to a specific IP address, do it via your DHCP server. By doing so, you avoid the problem you encountered here, and the phones can easily be taken to another location and used without the hassle of reconfiguring their IP address.

This also allows you to set the configuration server via DHCP Option 66 instead of having to program the phone with its configuration server manually.

1 Like