Skip to content
Snippets Groups Projects
Commit 0cfe09f6 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Temporary commit.

parent a203e3c8
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,14 @@ ConfigTree::getConfigTreeItemValue(const std::string& section, const std::string
return item->getValue();
} else {
_debug("Option doesn't exist: [%s] %s\n", section.c_str(), itemName.c_str());
//throw ConfigTreeItemException();
/** @todo If item doesn't exist, we should check against the default values for those
* types of information, and return the default value.
* ...
* Maybe this should be implemented when called ? When we need a bit of configuration,
* we call the getConfig with a defaultValue as parameter, in that context we know best
* what would be the default value, rather than inside this generic configuration
* management class.
*/
}
return "";
}
......@@ -108,7 +115,10 @@ ConfigTree::getConfigTreeItemValue(const std::string& section, const std::string
int
ConfigTree::getConfigTreeItemIntValue(const std::string& section, const std::string& itemName)
{
return atoi(getConfigTreeItemValue(section, itemName).data());
std::string configItem = getConfigTreeItemValue(section, itemName);
int retval = atoi(configItem.data());
return retval;
}
bool
......
......@@ -31,11 +31,6 @@
#include <math.h>
/** @todo Remove the fstream and iostream stuff */
//#include <fstream> // fstream + iostream pour fstream debugging..
//#include <iostream> // removeable...
#define IAX_BLOCKING 1
#define IAX_NONBLOCKING 0
......@@ -46,8 +41,8 @@
// from IAXC : iaxclient.h
#define IAX__20S_8KHZ_MAX 160 // 320 //320 samples
#define IAX__20S_48KHZ_MAX 960 // 1920 // 320*6 samples = 1920, 6 = 48000/8000
#define IAX__20S_8KHZ_MAX 320 //320 samples, IAX packets can have more than 20ms.
#define IAX__20S_48KHZ_MAX 1920 // 320*6 samples = 1920, 6 = 48000/8000
#define CHK_VALID_CALL if (call == NULL) { _debug("IAX: Call doesn't exists\n"); \
return false; }
......@@ -56,7 +51,6 @@
IAXVoIPLink::IAXVoIPLink(const AccountID& accountID)
: VoIPLink(accountID)
// , _fstream("/tmp/audio.dat", std::ofstream::binary) /** @todo Remove this */
{
_evThread = new EventThread(this);
_regSession = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment