Commit 73800ff3 authored by pierre-luc's avatar 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
......@@ -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
......
......@@ -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 {
......
Supports Markdown
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