Asterisk -- Trunk Registration Timeout
Asterisk -- Trunk Registration Timeout
Hello,
Every day or 2 my asterisk times out, and won't register to FFL. I believe it is because I haven't set the registration timeout.
I see the following error in my asterisk Logs
Got SIP response 486 "Too many requests" back from 208.65.240.44:5060
Do you know what setting I need to change in Asterisk? I am using FreePBX.
Every day or 2 my asterisk times out, and won't register to FFL. I believe it is because I haven't set the registration timeout.
I see the following error in my asterisk Logs
Got SIP response 486 "Too many requests" back from 208.65.240.44:5060
Do you know what setting I need to change in Asterisk? I am using FreePBX.
-
- Tried and True
- Posts: 411
- Joined: 08/14/2014
- SIP Device Name: OBi110
- Firmware Version: 1.3.0 (Build: 2824)
- ISP Name: Telus
- Computer OS: Windows 7
- Router: Toastman Tomato
Re: Asterisk -- Trunk Registration Timeout
Not familiar with FreePBX, but for plain vanilla Asterisk the settings would be,
In the [general] section of your sip.conf:
Unfortunately, this cannot be defined per-peer.
If your Asterisk is behind NAT, set the following for your FreePhoneLine peer:
In the [general] section of your sip.conf:
Code: Select all
defaultexpiry=3600
registertimeout=120
If your Asterisk is behind NAT, set the following for your FreePhoneLine peer:
Code: Select all
qualify=yes
Re: Asterisk -- Trunk Registration Timeout
I am looking in the top of my sip.conf file, and see this. Does anyone know how to add those lines to the sip.conf file in another way?
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
- Fongo Support
- Site Moderator
- Posts: 1689
- Joined: 01/01/2013
Re: Asterisk -- Trunk Registration Timeout
Hi,bartekd wrote:I am looking in the top of my sip.conf file, and see this. Does anyone know how to add those lines to the sip.conf file in another way?
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
If you are using freepbx you have to do it from the web interface .
I believe is under Asterisk->Asterisk SIP settings
regards,
- Attachments
-
- asterisk_juneFPL.png (17.4 KiB) Viewed 9728 times
-
- Tried and True
- Posts: 411
- Joined: 08/14/2014
- SIP Device Name: OBi110
- Firmware Version: 1.3.0 (Build: 2824)
- ISP Name: Telus
- Computer OS: Windows 7
- Router: Toastman Tomato
Re: Asterisk -- Trunk Registration Timeout
I Googled this for you.
Please see the SIP Settings user guide for FreePBX pages 6 and 7: http://literature.schmoozecom.com/aster ... rguide.pdf
Try to set qualify=yes from within Edit SIP Trunk >> PEER Details.
EDIT: Fongo Support is faster than me![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Please see the SIP Settings user guide for FreePBX pages 6 and 7: http://literature.schmoozecom.com/aster ... rguide.pdf
Try to set qualify=yes from within Edit SIP Trunk >> PEER Details.
EDIT: Fongo Support is faster than me
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: Asterisk -- Trunk Registration Timeout
Actually I found the same settings in the FreePBX GUI. For anyone else having this issue, its located here:
Settings --> Asterisk Sip Settings
This is the options
Registrations
- RegisterTimeOut -- I set it at 120
- Register Attempts --- I left it at 0
Registration Times
- MinExpiry -- I left it at 60
- MaxExpiry -- I left it at 3600
- DefaultExpiry -- I changed it to 3600
Hopefully that will fix it. Ill try it and let everyone know in a few days if that worked.
Settings --> Asterisk Sip Settings
This is the options
Registrations
- RegisterTimeOut -- I set it at 120
- Register Attempts --- I left it at 0
Registration Times
- MinExpiry -- I left it at 60
- MaxExpiry -- I left it at 3600
- DefaultExpiry -- I changed it to 3600
Hopefully that will fix it. Ill try it and let everyone know in a few days if that worked.
Re: Asterisk -- Trunk Registration Timeout
You are both faster than me...
Thanks for your help. Ill see how it goes.
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Asterisk -- Trunk Registration Timeout
Its been a couple days, and I am still registered. The settings worked. Thanks for your help Mango and Fongo_Support!!