Skip to content
Snippets Groups Projects
Commit 2d8ae978 authored by llea's avatar llea
Browse files

Fix outgoing call if no network

parent 5dae7902
No related branches found
No related tags found
No related merge requests found
......@@ -240,19 +240,29 @@ SipVoIPLink::outgoingInvite (short id, const string& to_url)
if (get_config_fields_str(SIGNALISATION, PROXY).empty()) {
// If no SIP proxy setting for direct call with only IP address
if (startCall(id, from, to, "", "") <= 0) {
_debug("Warning SipVoIPLink: call not started\n");
return -1;
}
if (checkNetwork()) {
if (startCall(id, from, to, "", "") <= 0) {
_debug("Warning SipVoIPLink: call not started\n");
return -1;
}
} else {
Manager::instance().displayErrorText("No network found\n");
return -1;
}
return 0;
} else {
// If SIP proxy setting
string route = "<sip:" +
get_config_fields_str(SIGNALISATION, PROXY) + ";lr>";
if (startCall(id, from, to, "", route) <= 0) {
_debug("Warning SipVoIPLink: call not started\n");
return -1;
}
if (checkNetwork()) {
if (startCall(id, from, to, "", route) <= 0) {
_debug("Warning SipVoIPLink: call not started\n");
return -1;
}
} else {
Manager::instance().displayErrorText("No network found\n");
return -1;
}
return 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment