mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
make sure to delete ongoing dialog if any in case of 481 received to a
subscription
This commit is contained in:
parent
fe7f78c52e
commit
37ca2d40db
1 changed files with 5 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ static void presence_refresher_listener( const belle_sip_refresher_t* refresher,
|
|||
case 481:
|
||||
ms_message("The server or remote ua lost the SUBSCRIBE dialog context. Let's restart a new one.");
|
||||
belle_sip_refresher_stop(op->refresher);
|
||||
if (op->dialog) { /*delete previous dialog if any*/
|
||||
belle_sip_dialog_set_application_data(op->dialog,NULL);
|
||||
belle_sip_object_unref(op->dialog);
|
||||
op->dialog=NULL;
|
||||
}
|
||||
sal_subscribe_presence(op,NULL,NULL,-1);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue