* #21507: sipcall: handle exception if audiortp is no longer in scope

This commit is contained in:
Tristan Matthews
2013-03-14 17:53:39 -04:00
parent 1fabd14c99
commit 7c09d54701

View File

@ -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