From: Sipwise Development Team <support@sipwise.com>
Date: Thu, 26 Mar 2020 10:06:46 +0100
Subject: sca-fix-notify-after-bye

---
 src/modules/sca/sca_call_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/sca/sca_call_info.c b/src/modules/sca/sca_call_info.c
index 2eb035e..d01ab86 100644
--- a/src/modules/sca/sca_call_info.c
+++ b/src/modules/sca/sca_call_info.c
@@ -714,7 +714,7 @@ 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, from_tag, to_tag)
+			   &dialog, sizeof(dlg_buf), call_id, to_tag, from_tag)
 			< 0) {
 		LM_ERR("sca_call_info_uri_update: Failed to build dialog from tags\n");
 		return (-1);
