]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_pjsip_outbound_registration: Initialize auth_reject_permanent parameter
authorMatthew Jordan <mjordan@digium.com>
Tue, 7 Oct 2014 17:40:58 +0000 (17:40 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 7 Oct 2014 17:40:58 +0000 (17:40 +0000)
Prior to this patch, the auth_reject_permanent parameter was not initialized on
the registration client state, leading to the parameter being disabled
regardless of the value specified in pjsip.conf.

This patch initialized the setting on the registration client state to the
provided configuration value.

ASTERISK-24398 #close

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424730 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip_outbound_registration.c

index ccd50557901fa9a94126ff15cc77c81f4f05d88e..41a4c3368da0bb9b9f3a1cbdeb9cd68d3773a08e 100644 (file)
@@ -855,6 +855,7 @@ static int sip_outbound_registration_perform(void *data)
        registration->state->client_state->max_retries = registration->max_retries;
        registration->state->client_state->retries = 0;
        registration->state->client_state->support_path = registration->support_path;
+       registration->state->client_state->auth_rejection_permanent = registration->auth_rejection_permanent;
 
        pjsip_regc_update_expires(registration->state->client_state->client, registration->expiration);