From da40f49659cc1e1806c0a320bce88c8dd1212fe8 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.com> Date: Mon, 26 Mar 2012 23:43:52 -0400 Subject: [PATCH] #9547: Destroy the STUN resolver in Transport shutdown --- daemon/src/sip/sipvoiplink.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 196c56b2c5..6073aae826 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -1566,6 +1566,12 @@ pjsip_transport *SIPVoIPLink::createStunTransport(pj_str_t serverName, pj_uint16 void SIPVoIPLink::shutdownSipTransport(SIPAccount *account) { + if (account->isStunEnabled()) { + pj_str_t stunServerName = account->getStunServerName(); + std::string server(stunServerName.ptr, stunServerName.slen); + destroyStunResolver(server); + } + if (account->transport_) { pjsip_transport_dec_ref(account->transport_); account->transport_ = NULL; -- GitLab