Prechádzať zdrojové kódy

sca: Fixed SCA owner on seizing a held call from a different SCA UA.

- Part of the issue reported by Kevin Scott Adams, GH #341. When using
'kamcmd sca.all_appearances' to display the appearances the owner and
the callee became the same. I think the owner should be a SCA endpoint
of the call and not a non-SCA endpoint. Uploaded compiled and tested
inbound and outbound calls.
Kevin Scott Adams 9 rokov pred
rodič
commit
c6740876ec
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      modules/sca/sca_call_info.c

+ 2 - 1
modules/sca/sca_call_info.c

@@ -1196,7 +1196,8 @@ static int sca_call_info_invite_reply_200_handler(sip_msg_t *msg,
 			STR_FMT(from_aor), STR_FMT(to_aor),STR_FMT(&from->uri), STR_FMT(&to->uri),
 			STR_FMT(contact_uri), call_info->index);
 
-	if (SCA_CALL_INFO_IS_SHARED_CALLEE(call_info)) {
+	if (SCA_CALL_INFO_IS_SHARED_CALLEE(call_info) &&
+			(!SCA_STR_EQ(from_aor, to_aor))) {
 		rc = sca_call_info_uri_update(to_aor, call_info, from, to, contact_uri,
 				&msg->callid->body);
 	}