From 31b25e9f98e22c38c74ec9db54819e6c136b88d2 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 14 Jun 2013 17:30:19 +0200 Subject: [PATCH] give a chance to update contact address during re-INVITEs --- coreapi/linphonecore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 09633cefc..f0beca008 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2887,6 +2887,10 @@ int linphone_core_start_update_call(LinphoneCore *lc, LinphoneCall *call){ if (lc->vtable.display_status) lc->vtable.display_status(lc,_("Modifying call parameters...")); sal_call_set_local_media_description (call->op,call->localdesc); + if (call->dest_proxy && call->dest_proxy->op && sal_op_get_contact(call->dest_proxy->op)){ + /*give a chance to update the contact address if connectivity has changed*/ + sal_op_set_contact(call->op,sal_op_get_contact(call->dest_proxy->op)); + } return sal_call_update(call->op,subject); }