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:506 0 Y 8764774091 45 Registered Fri, 14 Jun 2019 10:06:52
1 SIP registrations.
and the attached file shows the registration settings
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:506
1 SIP registrations.
and the attached file shows the registration settings
After you made the change and saved it did you hit the apply button ?
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.
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.
ASKER
ASKER
Any other suggestions?
So grep is your friend usually -
I find the value in sip_general_additional.con f:registertimeout=20
In the /etc/asterisk directory with everything else.
Be sure and do a sip reload -- Reload SIP configuration after editing the value.
I find the value in sip_general_additional.con
In the /etc/asterisk directory with everything else.
Be sure and do a sip reload -- Reload SIP configuration after editing the value.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok. Let me try to check the forum and will get back if I get the answer.
Thanks
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
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
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
"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