mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
add user-agent field in ACKs of accepted INVITE transactions
This commit is contained in:
parent
fc392c38c2
commit
48b5d06445
1 changed files with 2 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ static void call_process_response(void *op_base, const belle_sip_response_event_
|
|||
if (code >=200 && code<300) {
|
||||
handle_sdp_from_response(op,response);
|
||||
ack=belle_sip_dialog_create_ack(op->dialog,belle_sip_dialog_get_local_seq_number(op->dialog));
|
||||
if (ack==NULL) {
|
||||
if (ack == NULL) {
|
||||
ms_error("This call has been already terminated.");
|
||||
return ;
|
||||
}
|
||||
|
|
@ -317,6 +317,7 @@ static void call_process_response(void *op_base, const belle_sip_response_event_
|
|||
belle_sip_object_unref(op->sdp_answer);
|
||||
op->sdp_answer=NULL;
|
||||
}
|
||||
belle_sip_message_add_header(BELLE_SIP_MESSAGE(ack),BELLE_SIP_HEADER(op->base.root->user_agent));
|
||||
belle_sip_dialog_send_ack(op->dialog,ack);
|
||||
op->base.root->callbacks.call_accepted(op); /*INVITE*/
|
||||
op->state=SalOpStateActive;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue