Fixed pjsua app cli redirection answer (3xx) (#3437)

This commit is contained in:
sauwming 2023-03-14 10:59:00 +08:00 committed by GitHub
parent fd6125c4dd
commit 874ca0dfd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1599,7 +1599,6 @@ static pj_status_t cmd_answer_call(pj_cli_cmd_val *cval)
} else {
int st_code;
char contact[120];
pj_str_t hname = { "Contact", 7 };
pj_str_t hvalue;
pjsip_generic_string_hdr hcontact;
@ -1618,7 +1617,7 @@ static pj_status_t cmd_answer_call(pj_cli_cmd_val *cval)
return PJ_SUCCESS;
}
hvalue = pj_str(contact);
hvalue = cval->argv[2];
pjsip_generic_string_hdr_init2(&hcontact, &hname, &hvalue);
pj_list_push_back(&msg_data.hdr_list, &hcontact);