Skip to content
Snippets Groups Projects
Commit b736fe2d authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

sip: release dialog after invite creation


PJSIP dialog is locked at creation during incoming call,
but invite structure lock it also and our lock wasn't released.

Add this dialog lock release right after invite creation.

This fix non-destroyed transport for incoming calls.

Change-Id: I5ad1bb0d6dd87e1a58f0a23cd93c85dac5fed5fa
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent c0dfd893
Branches
Tags
No related merge requests found
...@@ -361,6 +361,9 @@ transaction_request_cb(pjsip_rx_data *rdata) ...@@ -361,6 +361,9 @@ transaction_request_cb(pjsip_rx_data *rdata)
return PJ_FALSE; return PJ_FALSE;
} }
// dialog is now owned by invite
pjsip_dlg_dec_lock(dialog);
inv->mod_data[mod_ua_.id] = call.get(); inv->mod_data[mod_ua_.id] = call.get();
call->inv.reset(inv); call->inv.reset(inv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment