浏览代码

htable: set the value for dmq replicate of rm with sw operation

Daniel-Constantin Mierla 4 年之前
父节点
当前提交
d80ae5e88e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/modules/htable/htable.c

+ 1 - 0
src/modules/htable/htable.c

@@ -493,6 +493,7 @@ static int ht_rm_items(sip_msg_t* msg, str* hname, str* op, str *val,
 				}
 				}
 				return 1;
 				return 1;
 			} else if(strncmp(op->s, "sw", 2)==0) {
 			} else if(strncmp(op->s, "sw", 2)==0) {
+				isval.s = *val;
 				if (ht_dmq_replicate_action(HT_DMQ_RM_CELL_SW, &ht->name, NULL,
 				if (ht_dmq_replicate_action(HT_DMQ_RM_CELL_SW, &ht->name, NULL,
 							AVP_VAL_STR, &isval, mkey)!=0) {
 							AVP_VAL_STR, &isval, mkey)!=0) {
 					LM_ERR("dmq relication failed (op %d)\n", mkey);
 					LM_ERR("dmq relication failed (op %d)\n", mkey);