[asterisk-dev] [Code Review] 2874: Allow Asterisk to retry after 403 on register

Mark Michelson reviewboard at asterisk.org
Thu Sep 26 16:35:41 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2874/#review9810
-----------------------------------------------------------


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?

- Mark Michelson


On Sept. 23, 2013, 7: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, 7: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/20130926/0fff4cdf/attachment-0002.html>


More information about the asterisk-dev mailing list