mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #21507: sipcall: handle exception if audiortp is no longer in scope
This commit is contained in:
@ -95,7 +95,13 @@ SIPCall::createHistoryEntry() const
|
||||
using sfl::HistoryItem;
|
||||
|
||||
std::map<std::string, std::string> entry(Call::createHistoryEntry());
|
||||
entry[HistoryItem::AUDIO_CODEC_KEY] = audiortp_.getCurrentAudioCodecNames();
|
||||
// FIXME: we need a better a way of getting this info, or maybe just
|
||||
// get rid of it since it's only good for debugging
|
||||
try {
|
||||
entry[HistoryItem::AUDIO_CODEC_KEY] = audiortp_.getCurrentAudioCodecNames();
|
||||
} catch (const sfl::AudioRtpFactoryException &e) {
|
||||
ERROR("%s", e.what());
|
||||
}
|
||||
#ifdef SFL_VIDEO
|
||||
entry[HistoryItem::VIDEO_CODEC_KEY] = local_sdp_->getSessionVideoCodec();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user