root/contributed_modules/modules/extcfg/page.extcfg.php

Revision 7575, 0.9 kB (checked in by pnlarsson, 3 years ago)

Shows the ip and status of sip/sccp/mgcp connected devices, still have iax2 todo.

Line 
1 <?php 
2 //Copyright (C) 2006 Niklas Larsson
3 //
4 //This program is free software; you can redistribute it and/or
5 //modify it under the terms of the GNU General Public License
6 //as published by the Free Software Foundation; either version 2
7 //of the License, or (at your option) any later version.
8 //
9 //This program is distributed in the hope that it will be useful,
10 //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 //GNU General Public License for more details.
13
14 isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action='';
15
16 ?>
17 </div>
18
19 <div class="content">
20 <?php
21
22 extcfg_init();
23
24 switch ($action) {
25   case "phone":
26     extcfg_show_phone($_REQUEST['phone'], $_REQUEST['srv']);
27     break;
28   case "phone_save":
29     extcfg_save_phone($_REQUEST['ext'], $_REQUEST['srv']);
30   default:
31     extcfg_show_list();
32   break;
33 }
34 extcfg_exit(); 
35
36 ?>
37 </div>
Note: See TracBrowser for help on using the browser.