1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-19 06:18:46 +00:00

19 lines
418 B
C++
Raw Normal View History

#include <QtGui>
#include "account.h"
Account::Account(QString name) :
_name(name)
{
QSettings settings;
settings.beginGroup("FreeSWITCH/conf/sofia.conf/profiles/profile/gateways");
foreach(QString g, settings.childGroups())
{
settings.beginGroup(g);
if(settings.value("gateway/attrs/name").toString() == name)
{
_uuid = g;
break;
}
}
}