Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
af98291f
Commit
af98291f
authored
Jan 17, 2018
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(CallModel): play dtmf when `sendDtmf` is called (close #108)
parent
81c95124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
CallModel.cpp
src/components/call/CallModel.cpp
+5
-2
No files found.
src/components/call/CallModel.cpp
View file @
af98291f
...
...
@@ -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
);
}
// -----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment