mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
partial fix for multiple dialog
This commit is contained in:
parent
1f9453fea6
commit
a7618e45c1
1 changed files with 8 additions and 0 deletions
|
|
@ -165,6 +165,14 @@ static void call_response_event(void *op_base, const belle_sip_response_event_t
|
|||
}
|
||||
return;
|
||||
}
|
||||
/*check if dialog has changed*/
|
||||
if (belle_sip_response_event_get_dialog(event) != op->dialog) {
|
||||
ms_message("Dialog as changed from [%p] to [%p] for op [%p], updating",op->dialog,belle_sip_response_event_get_dialog(event),op);
|
||||
/*fixme, shouldn't we cancel previous dialog*/
|
||||
belle_sip_object_unref(op->dialog);
|
||||
op->dialog=belle_sip_response_event_get_dialog(event);
|
||||
belle_sip_object_ref(op->dialog);
|
||||
}
|
||||
/*check if op is terminating*/
|
||||
dialog_state=belle_sip_dialog_get_state(op->dialog);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue