mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
* #14631: history: store codecs used in call
This commit is contained in:
@ -220,7 +220,10 @@ class Call : public Recordable {
|
||||
void time_stop();
|
||||
virtual std::map<std::string, std::string> getDetails();
|
||||
static std::map<std::string, std::string> getNullDetails();
|
||||
std::map<std::string, std::string> createHistoryEntry() const;
|
||||
|
||||
virtual std::map<std::string, std::string>
|
||||
createHistoryEntry() const;
|
||||
|
||||
virtual bool setRecording();
|
||||
|
||||
private:
|
||||
|
@ -44,6 +44,8 @@ const char * const HistoryItem::RECORDING_PATH_KEY = "recordfile";
|
||||
const char * const HistoryItem::STATE_KEY = "state";
|
||||
const char * const HistoryItem::TIMESTAMP_START_KEY = "timestamp_start";
|
||||
const char * const HistoryItem::TIMESTAMP_STOP_KEY = "timestamp_stop";
|
||||
const char * const HistoryItem::AUDIO_CODEC_KEY = "audio_codec";
|
||||
const char * const HistoryItem::VIDEO_CODEC_KEY = "video_codec";
|
||||
|
||||
const char * const HistoryItem::MISSED_STRING = "missed";
|
||||
const char * const HistoryItem::INCOMING_STRING = "incoming";
|
||||
|
@ -46,6 +46,8 @@ class HistoryItem {
|
||||
static const char * const RECORDING_PATH_KEY;
|
||||
static const char * const TIMESTAMP_START_KEY;
|
||||
static const char * const TIMESTAMP_STOP_KEY;
|
||||
static const char * const AUDIO_CODEC_KEY;
|
||||
static const char * const VIDEO_CODEC_KEY;
|
||||
static const char * const STATE_KEY;
|
||||
|
||||
static const char * const MISSED_STRING;
|
||||
|
@ -84,3 +84,14 @@ SIPCall::getDetails()
|
||||
#endif
|
||||
return details;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string>
|
||||
SIPCall::createHistoryEntry() const
|
||||
{
|
||||
std::map<std::string, std::string> entry(Call::createHistoryEntry());
|
||||
entry[HistoryItem::AUDIO_CODEC_KEY] = local_sdp_->getAudioCodecName();
|
||||
#ifdef SFL_VIDEO
|
||||
entry[HistoryItem::VIDEO_CODEC_KEY] = local_sdp_->getSessionVideoCodec();
|
||||
#endif
|
||||
return entry;
|
||||
}
|
||||
|
@ -110,6 +110,10 @@ class SIPCall : public Call {
|
||||
std::map<std::string, std::string>
|
||||
getDetails();
|
||||
|
||||
// override of Call::createHistoryEntry
|
||||
std::map<std::string, std::string>
|
||||
createHistoryEntry() const;
|
||||
|
||||
virtual void answer();
|
||||
|
||||
NON_COPYABLE(SIPCall);
|
||||
|
Reference in New Issue
Block a user