Skip to content
Snippets Groups Projects
Commit e7518eb3 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3649] Fix sipvoip client decrementation for default account

parent 0b4e9f6e
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
#define MD5_APPEND(pms,buf,len) pj_md5_update(pms, (const pj_uint8_t*)buf, len) #define MD5_APPEND(pms,buf,len) pj_md5_update(pms, (const pj_uint8_t*)buf, len)
// Default account used to get default parametersa if requested by client (to build ne account)
SIPAccount defaultAccount("default"); SIPAccount defaultAccount("default");
ManagerImpl::ManagerImpl (void) : ManagerImpl::ManagerImpl (void) :
......
...@@ -144,6 +144,7 @@ SIPAccount::SIPAccount (const AccountID& accountID) ...@@ -144,6 +144,7 @@ SIPAccount::SIPAccount (const AccountID& accountID)
SIPAccount::~SIPAccount() SIPAccount::~SIPAccount()
{ {
/* One SIP account less connected to the sip voiplink */ /* One SIP account less connected to the sip voiplink */
if(_accountID != "default")
dynamic_cast<SIPVoIPLink*> (_link)->decrementClients(); dynamic_cast<SIPVoIPLink*> (_link)->decrementClients();
/* Delete accounts-related information */ /* Delete accounts-related information */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment