Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
35bbb8e5
Commit
35bbb8e5
authored
11 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #29004: dtmf over rtp: send 3 identical end packets
parent
46bd71b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/audio/audiortp/audio_rtp_session.cpp
+6
-2
6 additions, 2 deletions
daemon/src/audio/audiortp/audio_rtp_session.cpp
with
6 additions
and
2 deletions
daemon/src/audio/audiortp/audio_rtp_session.cpp
+
6
−
2
View file @
35bbb8e5
...
...
@@ -129,6 +129,10 @@ void AudioRtpSession::sendDtmfEvent()
if
(
dtmf
.
newevent
)
queue_
.
setMark
(
true
);
// Send end packet three times (without changing it). Sequence number is
// incremented automatically by ccrtp, which is the correct behaviour.
const
unsigned
repetitions
=
dtmf
.
payload
.
ebit
?
3
:
1
;
for
(
unsigned
i
=
0
;
i
<
repetitions
;
++
i
)
queue_
.
sendImmediate
(
timestamp_
,
(
const
unsigned
char
*
)(
&
(
dtmf
.
payload
)),
sizeof
(
ost
::
RTPPacket
::
RFC2833Payload
));
// This is no longer a new event
...
...
@@ -145,7 +149,7 @@ void AudioRtpSession::sendDtmfEvent()
dtmf
.
length
-=
increment
;
dtmf
.
payload
.
duration
++
;
// next packet is going to be the
last one
// next packet is going to be the
end packet (transmitted 3 times)
if
((
dtmf
.
length
-
increment
)
<
increment
)
dtmf
.
payload
.
ebit
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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