瀏覽代碼

sca: reversed the from_tag and to_tag variables in the function call

- Part of the issue reported by Kevin Scott Adams, GH #341.  The
function sca_dialog_build_from_tags() has the following parameter
listing...(sca_dialog *dialog, int maxlen, str *call_id, str *from_tag,
str *to_tag). The call to this function in the
sca_call_info_uri_update() function had the ‘to_tag’ variable in the
‘from_tag’ parameter position and the ‘from_tag’ variable in the
‘to_tag’ parameter position. Reversing the ‘to_tag’ and ‘from_tag’
variables in the function call resolved the issue of multiple appearance
showing up on held and seize events.
Kevin Scott Adams 9 年之前
父節點
當前提交
57c4ec824f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/sca/sca_call_info.c

+ 2 - 2
modules/sca/sca_call_info.c

@@ -734,8 +734,8 @@ static int sca_call_info_uri_update(str *aor, sca_call_info *call_info,
 	}
 
 	dialog.id.s = dlg_buf;
-	if (sca_dialog_build_from_tags(&dialog, sizeof(dlg_buf), call_id, to_tag,
-			from_tag) < 0) {
+	if (sca_dialog_build_from_tags(&dialog, sizeof(dlg_buf), call_id, from_tag,
+			to_tag) < 0) {
 		LM_ERR("sca_call_info_uri_update: Failed to build dialog from tags\n");
 		return (-1);
 	}