mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 08:49:19 +00:00
feat(CallModel): play dtmf when sendDtmf is called (close #108)
This commit is contained in:
parent
81c9512458
commit
af98291fac
1 changed files with 5 additions and 2 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "CallModel.hpp"
|
||||
|
||||
#define AUTO_ANSWER_OBJECT_NAME "auto-answer-timer"
|
||||
#define DTMF_SOUND_DELAY 200
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
@ -535,8 +536,10 @@ bool CallModel::getRecording () const {
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
void CallModel::sendDtmf (const QString &dtmf) {
|
||||
qInfo() << QStringLiteral("Send dtmf: `%1`.").arg(dtmf);
|
||||
mCall->sendDtmf(dtmf.constData()[0].toLatin1());
|
||||
const char key = dtmf.constData()[0].toLatin1();
|
||||
qInfo() << QStringLiteral("Send dtmf: `%1`.").arg(key);
|
||||
mCall->sendDtmf(key);
|
||||
CoreManager::getInstance()->getCore()->playDtmf(key, DTMF_SOUND_DELAY);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue