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

[#2176] Fix getAudioCodecName in IAXvoipLink

parent f6450289
No related branches found
No related tags found
No related merge requests found
...@@ -630,11 +630,19 @@ IAXVoIPLink::carryingDTMFdigits (const CallID& id, char code) ...@@ -630,11 +630,19 @@ IAXVoIPLink::carryingDTMFdigits (const CallID& id, char code)
std::string std::string
IAXVoIPLink::getCurrentCodecName() IAXVoIPLink::getCurrentCodecName()
{ {
IAXCall *call = getIAXCall (Manager::instance().getCurrentCallId()); IAXCall *call = NULL;
AudioCodec *ac = NULL;
std::string name = "";
call = getIAXCall (Manager::instance().getCurrentCallId());
if(call)
ac = call->getCodecMap().getCodec (call->getAudioCodec());
AudioCodec *ac = call->getCodecMap().getCodec (call->getAudioCodec()); if(ac)
name = ac->getCodecName();
return ac->getCodecName(); return name;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment