[asterisk-dev] [Code Review] 2874: Allow Asterisk to retry after 403 on register
opticron
reviewboard at asterisk.org
Fri Sep 27 07:51:59 CDT 2013
> On Sept. 26, 2013, 4:35 p.m., Mark Michelson wrote:
> > The pjsip implementation seems a bit odd to me. Rather than setting an interval, why not just set an option similar to sip.conf where a 403 is not treated as a permanent failure? Then, you can add 403 to the list of error responses that sip_outbound_registration_is_temporal treats as a temporary failure. Is there a need to wait a different amount of time than normal for a 403 response as opposed to other responses?
It was requested by one of the people experiencing the problem. In their case, the transient problem takes a bit of time to resolve itself and using the standard timeout would cause the registrar to get hammered. This could be implemented for chan_sip as well, but is less useful since it is a global setting and not per-registration.
- opticron
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2874/#review9810
-----------------------------------------------------------
On Sept. 23, 2013, 2:48 p.m., opticron wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2874/
> -----------------------------------------------------------
>
> (Updated Sept. 23, 2013, 2:48 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-17138
> https://issues.asterisk.org/jira/browse/ASTERISK-17138
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> This adds an option in chan_sip and chan_pjsip to allow them to continue attempting registration if a 403 is received. Normally, this would cause registration attempts to that endpoint to stop.
>
> In the case of chan_sip, this global option simply allows registration to continue past a 403 as if it was a non-fatal reply to retry later.
>
> For chan_pjsip, this is a per outbound registration option that takes an interval in seconds to wait after a 403 to try again.
>
>
> Diffs
> -----
>
> /trunk/channels/chan_sip.c 399644
> /trunk/configs/pjsip.conf.sample 399644
> /trunk/configs/sip.conf.sample 399644
> /trunk/res/res_pjsip_outbound_registration.c 399644
>
> Diff: https://reviewboard.asterisk.org/r/2874/diff/
>
>
> Testing
> -------
>
> Tests are available in the following review:
> https://reviewboard.asterisk.org/r/2875/
>
>
> Thanks,
>
> opticron
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130927/1d8071b0/attachment-0002.html>
More information about the asterisk-dev
mailing list