Administrator
2020-Feb-29 10:29 UTC
[asterisk-users] pjsip: how to survive rejected registrations?
Le 28/02/2020 à 23:43, hw a écrit :> On Thursday, February 27, 2020 3:03:47 PM CET hw wrote: >> Hi, >> >> sometimes 'pjsip show registrations' shows registrations to the VOIP >> provider as Rejected. I have already added >> >> >> max_retries = 0 >> auth_rejection_permanent = no >> >> >> in pjsip_wizard.conf and still asterisk does not recover. >> >> I need asterisk to keep trying to register and to renew the registration >> without requiring manual intervention. How can I make asterisk do that? > No ideas? > > If pjsip is not able to recover after the internet connection has gone away > for a few minutes, it's totally useless.A workaround is to have a cron script which looks if your asterisk is registered and if not to send again the register command -- Daniel
On Saturday, February 29, 2020 11:29:37 AM CET Administrator wrote:> Le 28/02/2020 à 23:43, hw a écrit : > > On Thursday, February 27, 2020 3:03:47 PM CET hw wrote: > >> Hi, > >> > >> sometimes 'pjsip show registrations' shows registrations to the VOIP > >> provider as Rejected. I have already added > >> > >> > >> max_retries = 0 > >> auth_rejection_permanent = no > >> > >> > >> in pjsip_wizard.conf and still asterisk does not recover. > >> > >> I need asterisk to keep trying to register and to renew the registration > >> without requiring manual intervention. How can I make asterisk do that? > > > > No ideas? > > > > If pjsip is not able to recover after the internet connection has gone > > away > > for a few minutes, it's totally useless. > > A workaround is to have a cron script which looks if your asterisk is > registered and if not to send again the register commandThanks, I'll try that if I can find out which command that is :) This shouldn't be necessary, though. Before switching to PJSIP, there was no problem with registrations going away and not coming back. Is PJSIP still too buggy to be used and not recommended? Maybe I'll make a bug report ...
From: https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_outbound_registration#Asterisk16Configuration_res_pjsip_outbound_registration-registration_max_retries max_retries This sets the maximum number of registration attempts that are made before stopping any further attempts.* If set to 0 then upon failure no further attempts are made.* Regards, IanG On 17/03/2020 12:54, hw wrote:> On Saturday, February 29, 2020 11:29:37 AM CET Administrator wrote: >> Le 28/02/2020 à 23:43, hw a écrit : >>> On Thursday, February 27, 2020 3:03:47 PM CET hw wrote: >>>> Hi, >>>> >>>> sometimes 'pjsip show registrations' shows registrations to the VOIP >>>> provider as Rejected. I have already added >>>> >>>> >>>> max_retries = 0 >>>> auth_rejection_permanent = no >>>> >>>> >>>> in pjsip_wizard.conf and still asterisk does not recover. >>>> >>>> I need asterisk to keep trying to register and to renew the registration >>>> without requiring manual intervention. How can I make asterisk do that? >>> No ideas? >>> >>> If pjsip is not able to recover after the internet connection has gone >>> away >>> for a few minutes, it's totally useless. >> A workaround is to have a cron script which looks if your asterisk is >> registered and if not to send again the register command > Thanks, I'll try that if I can find out which command that is :) > > This shouldn't be necessary, though. Before switching to PJSIP, there was no > problem with registrations going away and not coming back. Is PJSIP still too > buggy to be used and not recommended? > > Maybe I'll make a bug report ... > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200317/bc37421b/attachment.html>