Commit 65fb1d01 authored by Alexandre Savard's avatar Alexandre Savard

#5954: Fix audio codec name display in client

parent 66a47ba3
......@@ -705,7 +705,7 @@ IAXVoIPLink::sendTextMessage (sfl::InstantMessaging *module,
std::string
IAXVoIPLink::getCurrentCodecName()
IAXVoIPLink::getCurrentCodecName(const CallID& id)
{
IAXCall *call = NULL;
AudioCodec *ac = NULL;
......
......@@ -209,7 +209,7 @@ class IAXVoIPLink : public VoIPLink
* Return the codec protocol used for this call
* @param id The call identifier
*/
virtual std::string getCurrentCodecName();
virtual std::string getCurrentCodecName(const CallID& id);
public: // iaxvoiplink only
......
......@@ -2644,7 +2644,7 @@ std::string ManagerImpl::getCurrentCodecName (const CallID& id)
Call::CallState state = call->getState();
if (state == Call::Active || state == Call::Conferencing) {
codecName = link->getCurrentCodecName();
codecName = link->getCurrentCodecName(id);
}
return codecName;
......
......@@ -1344,14 +1344,15 @@ SIPVoIPLink::terminateCall (const CallID& id)
}
std::string
SIPVoIPLink::getCurrentCodecName()
SIPVoIPLink::getCurrentCodecName(const CallID& id)
{
SIPCall *call = NULL;
sfl::Codec *ac = NULL;
std::string name = "";
call = getSIPCall (Manager::instance().getCurrentCallId());
// call = getSIPCall (Manager::instance().getCurrentCallId());
call = getSIPCall (id);
if(call == NULL) {
_error("UserAgent: Error: No current call");
// return empty string
......
......@@ -319,7 +319,7 @@ class SIPVoIPLink : public VoIPLink
* Return the codec protocol used for this call
* @param id The call identifier
*/
std::string getCurrentCodecName();
std::string getCurrentCodecName(const CallID& id);
/**
* Retrive useragent name from account
......
......@@ -206,7 +206,7 @@ class VoIPLink
* Return the codec protocol used for this call
* @param id The call identifier
*/
virtual std::string getCurrentCodecName() = 0;
virtual std::string getCurrentCodecName(const CallID& id) = 0;
bool initDone (void) {
return _initDone;
......
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