瀏覽代碼

tm: rpc_cancel() switch to get/set T/branch helpers

Daniel-Constantin Mierla 10 月之前
父節點
當前提交
ec30f5831e
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/modules/tm/t_cancel.c

+ 2 - 3
src/modules/tm/t_cancel.c

@@ -417,8 +417,7 @@ void rpc_cancel(rpc_t *rpc, void *c)
 		return;
 		return;
 	}
 	}
 
 
-	orig_t = get_t();
-	orig_branch = get_t_branch();
+	tm_get_tb(&orig_t, &orig_branch);
 	if(t_lookup_callid(&trans, callid_s, cseq_s) < 0) {
 	if(t_lookup_callid(&trans, callid_s, cseq_s) < 0) {
 		LM_DBG("Lookup failed\n");
 		LM_DBG("Lookup failed\n");
 		rpc->fault(c, 400, "Transaction not found");
 		rpc->fault(c, 400, "Transaction not found");
@@ -433,7 +432,7 @@ void rpc_cancel(rpc_t *rpc, void *c)
 
 
 	/* t_lookup_callid REF`d the transaction for us, we must UNREF here! */
 	/* t_lookup_callid REF`d the transaction for us, we must UNREF here! */
 	UNREF(trans);
 	UNREF(trans);
-	set_t(orig_t, orig_branch);
+	tm_set_tb(orig_t, orig_branch);
 	j = 0;
 	j = 0;
 	while(i) {
 	while(i) {
 		j++;
 		j++;