mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
Do not notify that a call was received when INVITE was invalid and rejected (488 Not acceptable for instance)
This commit is contained in:
parent
f2c6b211aa
commit
1466639bac
1 changed files with 8 additions and 8 deletions
|
|
@ -330,7 +330,7 @@ static void call_process_transaction_terminated(void *user_ctx, const belle_sip_
|
|||
belle_sip_request_t* req;
|
||||
belle_sip_response_t* resp;
|
||||
bool_t release_call=FALSE;
|
||||
|
||||
|
||||
if (client_transaction) {
|
||||
req=belle_sip_transaction_get_request(BELLE_SIP_TRANSACTION(client_transaction));
|
||||
resp=belle_sip_transaction_get_response(BELLE_SIP_TRANSACTION(client_transaction));
|
||||
|
|
@ -484,15 +484,15 @@ static void process_request_event(void *op_base, const belle_sip_request_event_t
|
|||
ms_warning("replace header already set");
|
||||
}
|
||||
|
||||
process_sdp_for_invite(op,req);
|
||||
|
||||
if ((call_info=belle_sip_message_get_header(BELLE_SIP_MESSAGE(req),"Call-Info"))) {
|
||||
if( strstr(belle_sip_header_get_unparsed_value(call_info),"answer-after=") != NULL) {
|
||||
op->auto_answer_asked=TRUE;
|
||||
ms_message("The caller asked to automatically answer the call(Emergency?)\n");
|
||||
if (process_sdp_for_invite(op,req) == 0) {
|
||||
if ((call_info=belle_sip_message_get_header(BELLE_SIP_MESSAGE(req),"Call-Info"))) {
|
||||
if( strstr(belle_sip_header_get_unparsed_value(call_info),"answer-after=") != NULL) {
|
||||
op->auto_answer_asked=TRUE;
|
||||
ms_message("The caller asked to automatically answer the call(Emergency?)\n");
|
||||
}
|
||||
}
|
||||
op->base.root->callbacks.call_received(op);
|
||||
}
|
||||
op->base.root->callbacks.call_received(op);
|
||||
break;
|
||||
} /* else same behavior as for EARLY state*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue