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
73800ff3
Commit
73800ff3
authored
Aug 19, 2009
by
pierre-luc
Browse files
[#812] Match "sips" as a Direct IP Call when the user enter a sip uri
starting with that scheme.
parent
87594570
Changes
2
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/call.h
View file @
73800ff3
...
...
@@ -26,9 +26,11 @@
#include
"plug-in/audiorecorder/audiorecord.h"
#define IP_TO_IP_PATTERN "sip:"
#define SIP_SCHEME "sip:"
#define SIPS_SCHEME "sips:"
#define CallConfigNULL NULL
#define CallConfigNULL NULL
/*
* @file call.h
* @brief A call is the base class for protocol-based calls
...
...
sflphone-common/src/managerimpl.cpp
View file @
73800ff3
...
...
@@ -3334,20 +3334,11 @@ void ManagerImpl::setHookSettings (const std::map<std::string, std::string>& set
saveConfig
();
}
void
ManagerImpl
::
check_call_configuration
(
const
CallID
&
id
,
const
std
::
string
&
to
,
Call
::
CallConfiguration
*
callConfig
)
{
std
::
string
pattern
;
Call
::
CallConfiguration
config
;
/* Check if the call is an IP-to-IP call */
/* For an IP-to-IP call, we don't need any account */
/* Pattern looked for : ip:xxx.xxx.xxx.xxx */
pattern
=
to
.
substr
(
0
,
4
);
if
(
pattern
==
IP_TO_IP_PATTERN
)
{
if
(
to
.
find
(
SIP_SCHEME
)
==
0
||
to
.
find
(
SIPS_SCHEME
)
==
0
)
{
_debug
(
"Sending Sip Call
\n
"
);
config
=
Call
::
IPtoIP
;
}
else
{
...
...
Write
Preview
Supports
Markdown
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