Module: kamailio
Branch: master
Commit: 8e0ae1f825c080a050c7e755eea67d2c56d6841f
URL:
https://github.com/kamailio/kamailio/commit/8e0ae1f825c080a050c7e755eea67d2…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Committer: Dmitri Savolainen <savolainen(a)erinaco.ru>
Date: 2016-05-24T12:51:06+03:00
uac: reset UAC_REG_DISABLED flag (if need) after refresh
---
Modified: modules/uac/uac_reg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8e0ae1f825c080a050c7e755eea67d2…
Patch:
https://github.com/kamailio/kamailio/commit/8e0ae1f825c080a050c7e755eea67d2…
---
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;
}