Skip to content

Commit

Permalink
add VoIP Nettelekom
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwesterkondracki committed May 6, 2014
1 parent eb4b7bd commit b98775f
Show file tree
Hide file tree
Showing 180 changed files with 10,392 additions and 34 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,2 +1,3 @@
iNET LMS 14.05.03
iNET LMS 14.05.05 β
===
test Nettelekom
7 changes: 7 additions & 0 deletions img/common.js
Expand Up @@ -764,3 +764,10 @@ function setProfile(variable,content) {
sendPOST('?m=profiles','action=setprofile&variable='+variable+'&content='+content);

}


function v_ipchoosewin(formfield)
{
var url = '?m=v_chooseip';
return openSelectWindow(url,'chooseip',350,380,'true',formfield);
}
10 changes: 9 additions & 1 deletion index.php
Expand Up @@ -177,6 +177,14 @@
$GG = new rfGG(GG_VER_77);
$RAD = new radius($DB,$LMS);

if(get_conf('voip.enabled','0'))
{
require_once(LIB_DIR.'/LMSVOIP.class.php');
require_once(LIB_DIR.'/floAPI.php');
$voip = new LMSVOIP($DB, $CONFIG['voip']);
$layout['v_errors'] =& $voip->errors;
}
else $voip = NULL;


// Set some template and layout variables
Expand All @@ -193,7 +201,7 @@
$layout['hostname'] = hostname();
$layout['lmsv'] = 'iNET';
$layout['lmsvr'] = $LMS->_revision.'/'.$AUTH->_revision;
$layout['lmsvr'] = '14.05.03';
$layout['lmsvr'] = '14.05.05 β';
$layout['dberrors'] =& $DB->errors;
$layout['dbdebug'] = $_DBDEBUG;
$layout['popup'] = isset($_GET['popup']) ? true : false;
Expand Down
3 changes: 3 additions & 0 deletions lib/LMS.class.php
Expand Up @@ -851,6 +851,9 @@ function GetCustomer($id, $short = false) {
$result['contacts'][$idx]['typestr'] = implode('/', $types);
}

if(get_conf('voip.enabled','0') && $this->DB->GetOne('SELECT 1 FROM v_exportedusers WHERE lmsid = ?', array($result['id'])))
$result['isvoip'] = 1;

return $result;
}
else
Expand Down

0 comments on commit b98775f

Please sign in to comment.