[asterisk-bugs] [JIRA] (ASTERISK-28496) PJSIP max_retries

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Tue Aug 6 09:29:47 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Keith Ford updated ASTERISK-28496:
-------------------------------------------

    Assignee: Sinisa  (was: Unassigned)
      Status: Waiting for Feedback  (was: Triage)

Since this is a feature request, we won't be able to work on it, but if you would like to add this as new (and optional) functionality, we would be happy to review it!

As far as documentation goes, that's something that we can update. What about the documentation is confusing? And what would you like to see there to make it more informative?

If you do decide you want to work on the new feature, I would look at {{res/res_pjsip_outbound_registration.c}}. This is where {{max_retries}} is initialized. You can do the same with your new option, and then whenever Asterisk makes the check to see if it should retry, just bypass that with your option. You will need to sign up for Gerrit \[1] as well, and post your patch there. Instructions on how to do all of this can be found here \[2].

I hope this helps!

\[1]: https://gerrit.asterisk.org/#/q/status:open
\[2]: https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage

> PJSIP max_retries
> -----------------
>
>                 Key: ASTERISK-28496
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28496
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 16.5.0
>         Environment: any
>            Reporter: Sinisa
>            Assignee: Sinisa
>            Severity: Minor
>              Labels: pjsip
>
> I have just experienced a “situation”. I have converted my SIP configuration to PJSIP months ago. Everything was working fine until a few days ago, when one of the providers experienced problems. Their system was reachable to “ping”, but registrations were not working, so after some time Asterisk gave up on it with Maximum retries reached when attempting outbound registration to ‘sip:10.x.x.x’ with client ‘sip:xxxx at domain.com’, stopping registration attempt", so after provider fixed its problems, Asterisk did not register to it until I reloaded the config.
> Default value of “max_retries” is 20, which is probably OK for testing, but should be much higher in production. I am not suggesting that you should change the default, but it might be good to add a bit more description here https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_outbound_registration, and also in sample config file, like to set it to 1000000 (one million) (0 does NOT work as 'unlimited' but as NO retries, tested)
> Thank you and best regards
> Sinisa



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list