Update upnp igd, and early destroy upnp session on call fail

This commit is contained in:
Yann Diorcet 2013-01-08 13:56:07 +01:00
parent 4b257d3de4
commit 492f3c9b91
3 changed files with 7 additions and 1 deletions

View file

@ -628,6 +628,11 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
/*resume to the call that send us the refer automatically*/
linphone_core_resume_call(lc,call->referer);
}
#ifdef BUILD_UPNP
linphone_call_delete_upnp_session(call);
#endif //BUILD_UPNP
if (sr == SalReasonDeclined) {
call->reason=LinphoneReasonDeclined;
linphone_call_set_state(call,LinphoneCallEnd,"Call declined.");

View file

@ -529,6 +529,7 @@ bool_t linphone_core_upnp_hook(void *data) {
if(port_bindings != NULL) {
for(port_bindings_item = port_bindings;port_bindings_item!=NULL;port_bindings_item=port_bindings_item->next) {
port_mapping = (UpnpPortBinding *)port_bindings_item->data;
//TODO: Don't send id it's udp/tcp/tls port binding
upnp_context_send_remove_port_binding(lc, port_mapping);
}
ms_list_for_each(port_bindings,(void (*)(void*))upnp_port_binding_release);

@ -1 +1 @@
Subproject commit 34de96d6b33f58b248f7d46e9c25edb11e6a5426
Subproject commit f9e4fed0b113f04895ae24a4e40f618e156b3754