Ver Fonte

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

- 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 space and
the 'from_tag' variable in the 'to_tag' parameter space. Reversing them
resolved the issue of multiple appearance showing up on a held and seize
events.
Kevin Scott Adams há 9 anos atrás
pai
commit
308adadbe7
1 ficheiros alterados com 2 adições e 2 exclusões
  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);
 	}