Commit 753e316d authored by alexandresavard's avatar alexandresavard
Browse files

AudioRecord file name format

parent 453dde29
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment