Module: kamailio
Branch: master
Commit: bd09692fbd7390a1f58deef4c410124e2b91f4bc
URL:
https://github.com/kamailio/kamailio/commit/bd09692fbd7390a1f58deef4c410124…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-24T13:50:59+02:00
Merge pull request #634 from snen/uac_flag_update_fix
uac: reset UAC_REG_DISABLED flag (if need) after refresh
---
Modified: modules/uac/uac_reg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bd09692fbd7390a1f58deef4c410124…
Patch:
https://github.com/kamailio/kamailio/commit/bd09692fbd7390a1f58deef4c410124…
---
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index c1236ae..86b17e9 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -607,7 +607,10 @@ int reg_ht_update_attrs(reg_uac_t *reg)
strncpy(ri->r->auth_proxy.s, reg->auth_proxy.s, reg->auth_proxy.len);
ri->r->auth_proxy.len = reg->auth_proxy.len;
ri->r->auth_proxy.s[reg->auth_proxy.len] = '\0';
- if(reg->flags & UAC_REG_DISABLED) ri->r->flags |= UAC_REG_DISABLED;
+ if(reg->flags & UAC_REG_DISABLED)
+ ri->r->flags |= UAC_REG_DISABLED;
+ else
+ ri->r->flags &= ~UAC_REG_DISABLED;
lock_release(&_reg_htable->entries[slot].lock);
return 0;
}