Link to home
Start Free TrialLog in
Avatar of taverny
taverny

asked on

SIP TRUNK REGISTRATION ISSUE

Hi Experts,

I am having an issue with my freePBX and the registration with my Net2Phone provider.
I have a SIP trunk setup for our phone lines

Apparently the connection keeps dropping because the registration refresh is not matching the provider's one. My provider ask me to change the refresh from 45 to 60 but whatever settings I put in the Registration Settings does not change the setting.
Can someone help me fixing the registration so are calls never drops?
Apparently I need to change the refresh from 45sec to 60 and the expiration to be 120sec.

Thanks


This is what shows under the Chan_Sip Registry:
                  
Host                                    dnsmgr Username       Refresh State                Reg.Time                
siptrunk.net2phone.com:5060             Y      8764774091          45 Registered           Fri, 14 Jun 2019 10:06:52
1 SIP registrations.


and the attached file shows the registration settings



User generated image
Avatar of Phonebuff
Phonebuff
Flag of United States of America image

After you made the change and saved it did you hit the apply button ?
Avatar of taverny
taverny

ASKER

Yes I did.
In the directory /etc/.asterisk  

grep for the  string registertimeout  (sip.conf)   and then use vi to edit it manually --

Afterwards you need to go to the cli and reload SIP.
Avatar of taverny

ASKER

I don't find this setting. Attached is the sip.conf file.
Thanks
SIP.txt
Avatar of taverny

ASKER

Any other suggestions?
So grep is your friend usually -  

I find the value in sip_general_additional.conf:registertimeout=20

In the /etc/asterisk directory with everything else.  

Be sure and do a sip reload  -- Reload SIP configuration after editing the value.
Avatar of taverny

ASKER

Hi Phonebuff,

I found the setting registertimeout=20 but that setting doesn't modify the refresh# of 45, it tried to change that setting from the Gui and also from the file you pointed; after reloading SIP or rebooting the system that settings doesn't change at all. Is there another setting somewhere else that would take over that ?
I have 2 machines setup exactly the same and they both show 45.
Thanks
David
ASKER CERTIFIED SOLUTION
Avatar of Phonebuff
Phonebuff
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of taverny

ASKER

ok. Let me try to check the forum and will get back if I get the answer.
Thanks
When calls drop, do ALL calls drop or just some?  Are you sure it's the trunk dropping and not the phones?
Are you using softphones are hardware?

If you are certain it's the sip trunk dropping...try with adding the following config lines to the trunk.

qualify=yes
qualifyfreq=30
session-timers=refuse
canreinvite=no
Avatar of taverny

ASKER

I open a question on the freePBX forum and below is what I got:

"Asterisk subtracts 15 seconds from 60 and starts a new registration after 45 seconds. "
"IP authentication is the better approach and you should switch to that. There is never an issue with ‘lost registration’, it’s a little more secure (no credentials for an attacker to steal) and it’s faster (no need for challenge / authorize on every call)."

We switched to IP Authentication. no more issues.
Thanks for your help