Commit eac7e9a3 authored by Alexandre Savard's avatar Alexandre Savard

#13652: fix controlable sip log level for NULL pointer

parent a1f45ff7
......@@ -95,7 +95,6 @@ AudioRtpRecord::~AudioRtpRecord()
AudioRtpRecordHandler::AudioRtpRecordHandler(SIPCall &call) :
audioRtpRecord_(),
id_(call.getCallId()),
// echoCanceller(call.getMemoryPool()),
gainController(8000, -10.0)
{}
......@@ -173,9 +172,6 @@ int AudioRtpRecordHandler::processDataEncode()
audioRtpRecord_.fadeInDecodedData(samples);
// if (Manager::instance().getEchoCancelState())
// echoCanceller.getData(micData);
SFLDataFormat *out = micData;
if (codecSampleRate != mainBufferSampleRate) {
......@@ -249,9 +245,6 @@ void AudioRtpRecordHandler::processDataDecode(unsigned char *spkrData, size_t si
mainBufferSampleRate, inSamples);
}
// if (Manager::instance().getEchoCancelState())
// echoCanceller.putData(out, outSamples);
Manager::instance().getMainBuffer()->putData(out, outSamples * sizeof(SFLDataFormat), id_);
}
......
......@@ -174,7 +174,6 @@ class AudioRtpRecordHandler {
private:
const std::string id_;
// EchoSuppress echoCanceller;
GainControl gainController;
};
}
......
......@@ -527,10 +527,12 @@ void SIPVoIPLink::destroy()
void SIPVoIPLink::setSipLogLevel()
{
std::string loglevel = getenv(SIPLOGLEVEL);
char *envvar = getenv(SIPLOGLEVEL);
int level = 0;
if(!loglevel.empty()) {
if(envvar != NULL) {
std::string loglevel = envvar;
if ( ! (std::istringstream(loglevel) >> level) ) level = 0;
level = level > 6 ? 6 : level;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment