I have a provider that I register to. Every once in a while I get a 403 response and Asterisk gives up trying. If I add these lines to pjsip.conf in the type=registration section will it allow Asterisk to retry that registration? At the moment it seems to just give up forever.
By default, Asterisk treats a 403 Forbidden response as a permanent registration failure and stops retrying.
Setting auth_rejection_permanent=false makes 403 a non-permanent failure.
With forbidden_retry_interval and fatal_retry_interval set, Asterisk will retry the registration instead of giving up.
That’s how I hoped it worked, thanks for confirming. Is there a reason it defaults to failing after exactly one try? I certainly did not understand why that account lost registration occasionally and just restarted Asterisk on occasion. I just got lucky and look at the console right after it happened and saw the 403. I’m afraid to call the provider because I don’t pay for that number and I don’t want to remind them that 15 years ago or so they offered free incoming numbers to people on the mailing list lest they decide it’s been long enough.
I think it will stop after one failure because forbidden is not usually something that changes without human intervention. There’s possibly a second factor in that it multiple 403 responses may result in the UAS system blacklisting the IP address of the UAC, meaning that management intervention may be needed at the UAS end, even if the actual misconfiguration was at the UAC end, and is fixed there.