-
Notifications
You must be signed in to change notification settings - Fork 6
/
sip_settings_tlscert.phtml
44 lines (37 loc) · 1.07 KB
/
sip_settings_tlscert.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
<?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=getSipAccountFromX509Certificate($_REQUEST['account'])) {
$account = $credentials['account'];
$sip_engine = $credentials['engine'];
$reseller = $credentials['reseller'];
$customer = $credentials['customer'];
$login_type = "subscriber";
} else {
die('X.509 Credentials error');
}
$_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);
?>