-
Notifications
You must be signed in to change notification settings - Fork 6
/
sip_settings_digest.phtml
48 lines (41 loc) · 1.15 KB
/
sip_settings_digest.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Copyright (c) 2022 AG Projects
* https://ag-projects.com
*
* This page provides functions for management of
* SIP account settings on a remote NGNPro server
*
*/
require '/etc/cdrtool/global.inc';
require '/etc/cdrtool/ngnpro_engines.inc';
require 'sip_settings.php';
if ($credentials=getSipAccountFromHTTPDigest()) {
$account = $credentials['account'];
$sip_engine = $credentials['engine'];
$reseller = $credentials['reseller'];
$customer = $credentials['customer'];
$login_type = "subscriber";
} else {
die('HTP digest Credentials error');
}
if ($CDRTool['sip_settings_class']) {
$_class = $CDRTool['sip_settings_class'];
} else {
$_class = 'SipSettings';
}
$_reseller_class = $_class.$reseller;
if (class_exists($_reseller_class)) {
$SipSettings_class = $_reseller_class;
} else {
$SipSettings_class = $_class;
}
$login_credentials = array(
'reseller' => $reseller,
'customer' => $customer,
'login_type' => $login_type,
'sip_engine' => $sip_engine,
'templates_path' => './templates'
);
renderUI($SipSettings_class, $account, $login_credentials, $soapEngines);
?>