Properly count signaling objects created by a factory.
git-svn-id: http://voip.null.ro/svn/yate@5787 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
fddc96792d
commit
1a3be7c1ee
|
@ -2086,6 +2086,7 @@ SignallingComponent* SLT::create(const String& type, NamedList& name)
|
|||
const String* module = name.getParam("module");
|
||||
if (module && *module != "ciscosm")
|
||||
return 0;
|
||||
TempObjectCounter cnt(plugin.objectsCounter());
|
||||
Configuration cfg(Engine::configFile("ciscosm"));
|
||||
const char* sectName = name.getValue("link",name);
|
||||
NamedList* layer = cfg.getSection(sectName);
|
||||
|
|
|
@ -872,6 +872,7 @@ SignallingComponent* MGCPSpan::create(const String& type, const NamedList& name)
|
|||
DDebug(&splugin,DebugAll,"No endpoint info for span '%s'",spanName->c_str());
|
||||
return 0;
|
||||
}
|
||||
TempObjectCounter cnt(splugin.objectsCounter());
|
||||
MGCPSpan* span = new MGCPSpan(name,spanName->safe("MGCPSpan"),*ep);
|
||||
if (span->init(name))
|
||||
return span;
|
||||
|
|
|
@ -609,6 +609,7 @@ SignallingComponent* Transport::create(const String& type, NamedList& name)
|
|||
{
|
||||
if (type != "SIGTransport")
|
||||
return 0;
|
||||
TempObjectCounter cnt(plugin.objectsCounter());
|
||||
Configuration cfg(Engine::configFile("sigtransport"));
|
||||
cfg.load();
|
||||
|
||||
|
|
|
@ -947,6 +947,7 @@ SignallingComponent* SigFactory::create(const String& type, NamedList& name)
|
|||
int compType = type.toInteger(s_compClass,-1);
|
||||
if (compType < 0)
|
||||
return 0;
|
||||
TempObjectCounter cnt(plugin.objectsCounter());
|
||||
if (!config) {
|
||||
NamedList sec(name);
|
||||
sec.copySubParams(name,name + ".");
|
||||
|
|
Loading…
Reference in New Issue