Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
2c7fc333
Commit
2c7fc333
authored
Jul 16, 2012
by
Tristan Matthews
Browse files
* #13613: sdp: support calls with all video codecs disabled
parent
278f99cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sdp.cpp
View file @
2c7fc333
...
...
@@ -324,10 +324,13 @@ int Sdp::createLocalSession(const vector<int> &selectedAudioCodecs, const vector
localSession_
->
time
.
stop
=
0
;
// For DTMF RTP events
localSession_
->
media_count
=
2
;
const
bool
audio
=
true
;
localSession_
->
media_count
=
1
;
localSession_
->
media
[
0
]
=
setMediaDescriptorLine
(
audio
);
localSession_
->
media
[
1
]
=
setMediaDescriptorLine
(
!
audio
);
if
(
not
selectedVideoCodecs
.
empty
())
{
localSession_
->
media
[
1
]
=
setMediaDescriptorLine
(
!
audio
);
++
localSession_
->
media_count
;
}
if
(
!
srtpCrypto_
.
empty
())
addSdesAttribute
(
srtpCrypto_
);
...
...
@@ -445,7 +448,7 @@ string Sdp::getActiveIncomingVideoDescription() const
ss
<<
vCodecLine
<<
std
::
endl
;
unsigned
videoIdx
;
for
(
videoIdx
=
0
;
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
;
++
videoIdx
)
for
(
videoIdx
=
0
;
videoIdx
<
activeLocalSession_
->
media_count
and
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
;
++
videoIdx
)
;
// get direction string
...
...
Write
Preview
Supports
Markdown
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