From 753e316d285fabea8c1d7f2e83211c246773546a Mon Sep 17 00:00:00 2001 From: alexandresavard <alexandresavard@alexandresavard-desktop.(none)> Date: Fri, 6 Feb 2009 18:41:22 -0500 Subject: [PATCH] AudioRecord file name format --- src/plug-in/audiorecorder/audiorecord.cpp | 2 ++ src/sipvoiplink.cpp | 38 +++++++++++------------ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/plug-in/audiorecorder/audiorecord.cpp b/src/plug-in/audiorecorder/audiorecord.cpp index fdbe9654ef..debe1aafff 100644 --- a/src/plug-in/audiorecorder/audiorecord.cpp +++ b/src/plug-in/audiorecorder/audiorecord.cpp @@ -197,9 +197,11 @@ void AudioRecord::createFilename(){ if (timeinfo->tm_hour < 10) // 01 02 03, not 1 2 3 out << 0; out << timeinfo->tm_hour; + out << ':'; if (timeinfo->tm_min < 10) // 01 02 03, not 1 2 3 out << 0; out << timeinfo->tm_min; + out << ':'; if (timeinfo->tm_sec < 10) // 01 02 03, not 1 2 3 out << 0; out << timeinfo->tm_sec; diff --git a/src/sipvoiplink.cpp b/src/sipvoiplink.cpp index 96c461e950..f9949258a3 100644 --- a/src/sipvoiplink.cpp +++ b/src/sipvoiplink.cpp @@ -737,6 +737,7 @@ SIPVoIPLink::transfer(const CallID& id, const std::string& to) bool SIPVoIPLink::transferStep2() { + _debug("SIPVoIPLink::transferStep2():When is this function called?"); _audiortp->closeRtpSession(); return true; } @@ -944,24 +945,24 @@ std::string SIPVoIPLink::getSipTo(const std::string& to_url, std::string hostnam } } return SIPToHeader(to_url); - } +} - std::string SIPVoIPLink::SIPToHeader(const std::string& to) - { - if (to.find("sip:") == std::string::npos) { - return ("sip:" + to ); - } else { - return to; - } +std::string SIPVoIPLink::SIPToHeader(const std::string& to) +{ + if (to.find("sip:") == std::string::npos) { + return ("sip:" + to ); + } else { + return to; } +} - bool - SIPVoIPLink::SIPCheckUrl(const std::string& url UNUSED) - { - return true; - } +bool +SIPVoIPLink::SIPCheckUrl(const std::string& url UNUSED) +{ + return true; +} - bool setCallAudioLocal(SIPCall* call, std::string localIP, bool stun, std::string server) +bool setCallAudioLocal(SIPCall* call, std::string localIP, bool stun, std::string server) { // Setting Audio unsigned int callLocalAudioPort = RANDOM_LOCAL_PORT; @@ -1719,9 +1720,9 @@ SIPVoIPLink::SIPCallAnswered(SIPCall *call, pjsip_rx_data *rdata) } - pj_bool_t - mod_on_rx_request(pjsip_rx_data *rdata) - { +pj_bool_t +mod_on_rx_request(pjsip_rx_data *rdata) +{ pj_status_t status; pj_str_t reason; @@ -2108,8 +2109,7 @@ SIPVoIPLink::SIPCallAnswered(SIPCall *call, pjsip_rx_data *rdata) - - void xfer_func_cb( pjsip_evsub *sub, pjsip_event *event){ +void xfer_func_cb( pjsip_evsub *sub, pjsip_event *event){ PJ_UNUSED_ARG(event); -- GitLab