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
5fd75db9
Commit
5fd75db9
authored
Mar 25, 2010
by
Alexandre Savard
Browse files
[#3076] Assertion may fail if negotiation fail, use if instead
parent
b466e5d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/sip/sipvoiplink.cpp
View file @
5fd75db9
...
...
@@ -3261,10 +3261,16 @@ void call_on_media_update (pjsip_inv_session *inv, pj_status_t status)
_debug
(
"UserAgent: SDES not initialized for this call
\n
"
);
}
assert
(
call
->
getLocalSDP
());
assert
(
call
->
getLocalSDP
()
->
get_session_media
());
AudioCodecType
pl
=
(
AudioCodecType
)
call
->
getLocalSDP
()
->
get_session_media
()
->
getPayload
();
Sdp
*
sdpSession
=
call
->
getLocalSDP
();
if
(
!
sdpSession
)
return
;
AudioCodec
*
sessionMedia
=
sdpSession
->
get_session_media
();
if
(
!
sessionMedia
)
return
;
AudioCodecType
pl
=
(
AudioCodecType
)
sessionMedia
->
getPayload
();
AudioCodec
*
audiocodec
=
Manager
::
instance
().
getCodecDescriptorMap
().
instantiateCodec
(
pl
);
if
(
audiocodec
==
NULL
)
...
...
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