Pjsip: How To Survive Rejected Registrations?

Home » Asterisk Users » Pjsip: How To Survive Rejected Registrations?
Asterisk Users 5 Comments

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?

5 thoughts on - Pjsip: How To Survive Rejected Registrations?

  • No ideas?

    If pjsip is not able to recover after the internet connection has gone away for a few minutes, it’s totally useless.

  • Le 28/02/2020 à 23:43, hw a écrit :
    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

  • 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 …

  • The best option is to set this to a sufficient value that covers your situation. It doesn’t currently allow infinite to stop situations where an upstream ITSP would be continually hit with traffic. Giving it some thought I think there’s at least one area where it may possibly be improved, which is for timeouts/no responses. In that case you probably haven’t hit a remote server so continued attempts would seem fine.

    I’d need more information on this particular case to know whether that would have resolved it though.