Fixed pjsua app cli redirection answer (3xx) (#3437)
This commit is contained in:
parent
fd6125c4dd
commit
874ca0dfd6
|
@ -1599,7 +1599,6 @@ static pj_status_t cmd_answer_call(pj_cli_cmd_val *cval)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
int st_code;
|
int st_code;
|
||||||
char contact[120];
|
|
||||||
pj_str_t hname = { "Contact", 7 };
|
pj_str_t hname = { "Contact", 7 };
|
||||||
pj_str_t hvalue;
|
pj_str_t hvalue;
|
||||||
pjsip_generic_string_hdr hcontact;
|
pjsip_generic_string_hdr hcontact;
|
||||||
|
@ -1618,7 +1617,7 @@ static pj_status_t cmd_answer_call(pj_cli_cmd_val *cval)
|
||||||
return PJ_SUCCESS;
|
return PJ_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
hvalue = pj_str(contact);
|
hvalue = cval->argv[2];
|
||||||
pjsip_generic_string_hdr_init2(&hcontact, &hname, &hvalue);
|
pjsip_generic_string_hdr_init2(&hcontact, &hname, &hvalue);
|
||||||
|
|
||||||
pj_list_push_back(&msg_data.hdr_list, &hcontact);
|
pj_list_push_back(&msg_data.hdr_list, &hcontact);
|
||||||
|
|
Loading…
Reference in New Issue