Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.3 #758

Closed
wants to merge 7 commits into from
31 changes: 22 additions & 9 deletions modules/sca/sca_call_info.c
Expand Up @@ -1265,15 +1265,28 @@ static int sca_call_info_invite_reply_200_handler(sip_msg_t *msg,
goto done;
}

if (sca_appearance_update_unsafe(app, state, &to->display, &app_uri_aor,
&dialog, NULL, contact_uri) < 0) {
sca_appearance_state_to_str(state, &state_str);
LM_ERR( "sca_call_info_invite_handler: failed to update appearance "
"%.*s appearance-index %d with dialog id %.*s to "
"state %.*s\n", STR_FMT( &app->owner ), app->index,
STR_FMT( &app->dialog.id ), STR_FMT( &state_str ));
rc = -1;
goto done;
if (SCA_STR_EQ(from_aor, to_aor)) {
if (sca_appearance_update_unsafe(app, state, NULL, NULL,
&dialog, NULL, contact_uri) < 0) {
sca_appearance_state_to_str(state, &state_str);
LM_ERR( "sca_call_info_invite_handler: failed to update appearance "
"%.*s appearance-index %d with dialog id %.*s to "
"state %.*s", STR_FMT( &app->owner ), app->index,
STR_FMT( &app->dialog.id ), STR_FMT( &state_str ));
rc = -1;
goto done;
}
} else {
if (sca_appearance_update_unsafe(app, state, &to->display, &app_uri_aor,
&dialog, NULL, contact_uri) < 0) {
sca_appearance_state_to_str(state, &state_str);
LM_ERR( "sca_call_info_invite_handler: failed to update appearance "
"%.*s appearance-index %d with dialog id %.*s to "
"state %.*s\n", STR_FMT( &app->owner ), app->index,
STR_FMT( &app->dialog.id ), STR_FMT( &state_str ));
rc = -1;
goto done;
}
}

rc = 1;
Expand Down