Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
753e316d
Commit
753e316d
authored
Feb 06, 2009
by
alexandresavard
Browse files
AudioRecord file name format
parent
453dde29
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plug-in/audiorecorder/audiorecord.cpp
View file @
753e316d
...
...
@@ -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
;
...
...
src/sipvoiplink.cpp
View file @
753e316d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment