Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
26afb604
Commit
26afb604
authored
12 years ago
by
Yann Diorcet
Browse files
Options
Download
Patches
Plain Diff
Add msfilter-add-fmtp command
parent
9e6bf6dc
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
daemon/Makefile.am
+21
-19
daemon/Makefile.am
daemon/commands/msfilter-add-fmtp.cc
+19
-0
daemon/commands/msfilter-add-fmtp.cc
daemon/commands/msfilter-add-fmtp.h
+12
-0
daemon/commands/msfilter-add-fmtp.h
daemon/daemon.cc
+2
-0
daemon/daemon.cc
with
54 additions
and
19 deletions
daemon/Makefile.am
+
21
−
19
View file @
26afb604
...
...
@@ -15,6 +15,7 @@ linphone_daemon_SOURCES=daemon.cc \
commands/call-stats.cc
\
commands/call-status.cc
\
commands/help.cc
\
commands/msfilter-add-fmtp.cc
\
commands/pop-event.cc
\
commands/ptime.cc
\
commands/register.cc
\
...
...
@@ -23,25 +24,26 @@ linphone_daemon_SOURCES=daemon.cc \
commands/unregister.cc
\
commands/quit.cc
\
daemon.h
\
commands/answer.h
\
commands/audio-codec-disable.h
\
commands/audio-codec-enable.h
\
commands/audio-codec-get.h
\
commands/audio-codec-move.h
\
commands/audio-codec-set.h
\
commands/audio-stream-start.h
\
commands/audio-stream-stop.h
\
commands/call.h
\
commands/call-stats.h
\
commands/call-status.h
\
commands/help.h
\
commands/pop-event.h
\
commands/ptime.h
\
commands/register.h
\
commands/register-status.h
\
commands/terminate.h
\
commands/unregister.h
\
commands/quit.h
commands/answer.h
\
commands/audio-codec-disable.h
\
commands/audio-codec-enable.h
\
commands/audio-codec-get.h
\
commands/audio-codec-move.h
\
commands/audio-codec-set.h
\
commands/audio-stream-start.h
\
commands/audio-stream-stop.h
\
commands/call.h
\
commands/call-stats.h
\
commands/call-status.h
\
commands/help.h
\
commands/msfilter-add-fmtp.h
\
commands/pop-event.h
\
commands/ptime.h
\
commands/register.h
\
commands/register-status.h
\
commands/terminate.h
\
commands/unregister.h
\
commands/quit.h
linphone_daemon_pipetest_SOURCES
=
daemon-pipetest.c
...
...
This diff is collapsed.
Click to expand it.
daemon/commands/msfilter-add-fmtp.cc
0 → 100644
+
19
−
0
View file @
26afb604
#include
"msfilter-add-fmtp.h"
#include
<mediastreamer2/msfilter.h>
#include
<private.h>
using
namespace
std
;
MSFilterAddFmtpCommand
::
MSFilterAddFmtpCommand
()
:
DaemonCommand
(
"msfilter-add-fmtp"
,
"msfilter-add-fmtp <fmtp>"
,
"Add fmtp to current encoder"
)
{
}
void
MSFilterAddFmtpCommand
::
exec
(
Daemon
*
app
,
const
char
*
args
)
{
LinphoneCore
*
lc
=
app
->
getCore
();
LinphoneCall
*
call
=
linphone_core_get_current_call
(
lc
);
if
(
call
==
NULL
)
{
app
->
sendResponse
(
Response
(
"No current call available."
));
return
;
}
ms_filter_call_method
(
call
->
audiostream
->
encoder
,
MS_FILTER_ADD_FMTP
,
(
void
*
)
args
);
}
This diff is collapsed.
Click to expand it.
daemon/commands/msfilter-add-fmtp.h
0 → 100644
+
12
−
0
View file @
26afb604
#ifndef COMMAND_MSFILTER_ADD_FMTP
#define COMMAND_MSFILTER_ADD_FMTP
#include
"../daemon.h"
class
MSFilterAddFmtpCommand
:
public
DaemonCommand
{
public:
MSFilterAddFmtpCommand
();
virtual
void
exec
(
Daemon
*
app
,
const
char
*
args
);
};
#endif
/* COMMAND_MSFILTER_ADD_FMTP */
This diff is collapsed.
Click to expand it.
daemon/daemon.cc
+
2
−
0
View file @
26afb604
...
...
@@ -22,6 +22,7 @@
#include
"commands/call-stats.h"
#include
"commands/call-status.h"
#include
"commands/help.h"
#include
"commands/msfilter-add-fmtp.h"
#include
"commands/pop-event.h"
#include
"commands/ptime.h"
#include
"commands/register.h"
...
...
@@ -297,6 +298,7 @@ void Daemon::initCommands() {
mCommands
.
push_back
(
new
AudioCodecSetCommand
());
mCommands
.
push_back
(
new
AudioStreamStartCommand
());
mCommands
.
push_back
(
new
AudioStreamStopCommand
());
mCommands
.
push_back
(
new
MSFilterAddFmtpCommand
());
mCommands
.
push_back
(
new
PtimeCommand
());
mCommands
.
push_back
(
new
QuitCommand
());
mCommands
.
push_back
(
new
HelpCommand
());
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets