[sr-dev] git:master: uac: proper set of enabled/ disabled flag for reg reocrds via rpc

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 22 19:15:06 CEST 2014


Module: sip-router
Branch: master
Commit: da844d7cc76e4db3b4bb2d9e5ba62cdfb394b110
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=da844d7cc76e4db3b4bb2d9e5ba62cdfb394b110

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Oct 22 19:14:03 2014 +0200

uac: proper set of enabled/disabled flag for reg reocrds via rpc

- patch by Savolainen Dmitri, FS#483

---

 modules/uac/uac_reg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 8c354ad..db89917 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -1656,7 +1656,7 @@ static const char* rpc_uac_reg_enable_doc[2] = {
 
 static void rpc_uac_reg_enable(rpc_t* rpc, void* ctx)
 {
-	rpc_uac_reg_update_flag(rpc, ctx, 1, UAC_REG_DISABLED);
+	rpc_uac_reg_update_flag(rpc, ctx, 0, UAC_REG_DISABLED);
 }
 
 static const char* rpc_uac_reg_disable_doc[2] = {
@@ -1666,7 +1666,7 @@ static const char* rpc_uac_reg_disable_doc[2] = {
 
 static void rpc_uac_reg_disable(rpc_t* rpc, void* ctx)
 {
-	rpc_uac_reg_update_flag(rpc, ctx, 0, UAC_REG_DISABLED);
+	rpc_uac_reg_update_flag(rpc, ctx, 1, UAC_REG_DISABLED);
 }
 
 static const char* rpc_uac_reg_reload_doc[2] = {




More information about the sr-dev mailing list