[asterisk-bugs] [JIRA] (ASTERISK-28602) res_pjsip_outbound_registration: Maximum retries reached

Daniel (JIRA) noreply at issues.asterisk.org
Thu Oct 24 17:13:47 CDT 2019


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

Daniel updated ASTERISK-28602:
------------------------------

    Description: 
I set up a SIP trunk with my local telephone provider. In pjsip.conf I set max_retries = 0 in the hope that there will be infinite registration attempts in the case of an error. The following night Asterisk lost the registration and stopped the re-registration.

{noformat}
[Oct 24 04:54:40] WARNING[2225]: res_pjsip_outbound_registration.c:977 handle_registration_response: Maximum retries reached when attempting outbound registration to 'sip:dfs.netcologne.de:5060' with client 'sip:221987654321 at dfs.netcologne.de:5060', stopping registration attempt
{noformat}

The documentation https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_outbound_registration does not show clearly what max_retries = 0 means. Usually, zero is often infinite. After looking at the source code of the file res_pjsip_outbound_registration.c, it turned out that max_retries = 0 means that no new registration attempt should be made at all:

{noformat}
response->client_state->retries = 0;
...
if (response->client_state->retries == response->client_state->max_retries) {
  ast_log(LOG_WARNING, "Maximum retries reached when attempting outbound registration to...
  ...
} else {
  response->client_state->retries++;
  ...
}
{noformat}

I would like in the documentation will be added a hint: max_retries = 0 = no try. Or an additional pjsip.conf option with infinite registration attempts.

Thank you very much.

  was:
I set up a SIP trunk with my local telephone provider. In pjsip.conf I set max_retries = 0 in the hope that there will be infinite registration attempts in the case of an error. The following night Asterisk lost the registration and stopped the re-registration.

[Oct 24 04:54:40] WARNING[2225]: res_pjsip_outbound_registration.c:977 handle_registration_response: Maximum retries reached when attempting outbound registration to 'sip:dfs.netcologne.de:5060' with client 'sip:221987654321 at dfs.netcologne.de:5060', stopping registration attempt

The documentation https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_outbound_registration does not show clearly what max_retries = 0 means. Usually, zero is often infinite. After looking at the source code of the file res_pjsip_outbound_registration.c, it turned out that max_retries = 0 means that no new registration attempt should be made at all:

response->client_state->retries = 0;
...
if (response->client_state->retries == response->client_state->max_retries) {
  ast_log(LOG_WARNING, "Maximum retries reached when attempting outbound registration to...
  ...
} else {
  response->client_state->retries++;
  ...
}

I would like in the documentation will be added a hint: max_retries = 0 = no try. Or an additional pjsip.conf option with infinite registration attempts.

Thank you very much.


> res_pjsip_outbound_registration: Maximum retries reached
> --------------------------------------------------------
>
>                 Key: ASTERISK-28602
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28602
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_pjsip_outbound_registration
>    Affects Versions: 16.6.1
>            Reporter: Daniel
>            Severity: Trivial
>
> I set up a SIP trunk with my local telephone provider. In pjsip.conf I set max_retries = 0 in the hope that there will be infinite registration attempts in the case of an error. The following night Asterisk lost the registration and stopped the re-registration.
> {noformat}
> [Oct 24 04:54:40] WARNING[2225]: res_pjsip_outbound_registration.c:977 handle_registration_response: Maximum retries reached when attempting outbound registration to 'sip:dfs.netcologne.de:5060' with client 'sip:221987654321 at dfs.netcologne.de:5060', stopping registration attempt
> {noformat}
> The documentation https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_outbound_registration does not show clearly what max_retries = 0 means. Usually, zero is often infinite. After looking at the source code of the file res_pjsip_outbound_registration.c, it turned out that max_retries = 0 means that no new registration attempt should be made at all:
> {noformat}
> response->client_state->retries = 0;
> ...
> if (response->client_state->retries == response->client_state->max_retries) {
>   ast_log(LOG_WARNING, "Maximum retries reached when attempting outbound registration to...
>   ...
> } else {
>   response->client_state->retries++;
>   ...
> }
> {noformat}
> I would like in the documentation will be added a hint: max_retries = 0 = no try. Or an additional pjsip.conf option with infinite registration attempts.
> Thank you very much.



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



More information about the asterisk-bugs mailing list