Asterisk -- Trunk Registration Timeout

Have a question or problem with your Fongo application? This forum is the place to get help from both staff and fellow community members.
Fongo recommends Fongo Home Phone for a fully supported Home Phone system for only $4.95/mo
Post Reply
bartekd
Active Poster
Posts: 62
Joined: 11/07/2012

Asterisk -- Trunk Registration Timeout

Post by bartekd »

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.
Mango
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

Post by Mango »

Not familiar with FreePBX, but for plain vanilla Asterisk the settings would be,

In the [general] section of your sip.conf:

Code: Select all

defaultexpiry=3600
registertimeout=120
Unfortunately, this cannot be defined per-peer.

If your Asterisk is behind NAT, set the following for your FreePhoneLine peer:

Code: Select all

qualify=yes
bartekd
Active Poster
Posts: 62
Joined: 11/07/2012

Re: Asterisk -- Trunk Registration Timeout

Post by bartekd »

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 ;
;--------------------------------------------------------------------------------;
User avatar
Fongo Support
Site Moderator
Posts: 1689
Joined: 01/01/2013

Re: Asterisk -- Trunk Registration Timeout

Post by Fongo Support »

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 ;
;--------------------------------------------------------------------------------;
Hi,

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
asterisk_juneFPL.png (17.4 KiB) Viewed 9728 times
Mango
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

Post by Mango »

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 :D
bartekd
Active Poster
Posts: 62
Joined: 11/07/2012

Re: Asterisk -- Trunk Registration Timeout

Post by bartekd »

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.
bartekd
Active Poster
Posts: 62
Joined: 11/07/2012

Re: Asterisk -- Trunk Registration Timeout

Post by bartekd »

You are both faster than me... :) Thanks for your help. Ill see how it goes.
bartekd
Active Poster
Posts: 62
Joined: 11/07/2012

Re: Asterisk -- Trunk Registration Timeout

Post by bartekd »

Its been a couple days, and I am still registered. The settings worked. Thanks for your help Mango and Fongo_Support!!
Post Reply