From e4fa141c82f135ae9d19a1006585642891924bf5 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 29 Nov 2010 16:55:05 -0500 Subject: Add page to view currently registered phones using siproxd. --- config/siproxd.inc | 8 +- config/siproxd.xml | 10 +++ config/siproxd_registered_phones.php | 163 +++++++++++++++++++++++++++++++++++ config/siproxdusers.xml | 4 + 4 files changed, 182 insertions(+), 3 deletions(-) create mode 100644 config/siproxd_registered_phones.php (limited to 'config') diff --git a/config/siproxd.inc b/config/siproxd.inc index 0c5c1bb6..2a48137a 100644 --- a/config/siproxd.inc +++ b/config/siproxd.inc @@ -226,16 +226,18 @@ function sync_package_siproxd() { write_rcfile(array( "file" => "siproxd.sh", "start" => "/usr/local/sbin/siproxd -c /usr/local/etc/siproxd.conf &", - "stop" => "/usr/bin/killall siproxd" + "stop" => "/usr/bin/killall -9 siproxd" ) ); - exec("killall siproxd"); + exec("killall -9 siproxd"); - sleep(1); + sleep(3); start_service("siproxd"); + sleep(3); + filter_configure(); conf_mount_ro(); diff --git a/config/siproxd.xml b/config/siproxd.xml index 1bf2d80a..bf9d493e 100644 --- a/config/siproxd.xml +++ b/config/siproxd.xml @@ -62,6 +62,10 @@ Users /pkg.php?xml=siproxdusers.xml + + Registered Phones + /siproxd_registered_phones.php + /usr/local/pkg/ @@ -73,6 +77,11 @@ 077 http://www.pfsense.com/packages/config/siproxd.inc + + /usr/local/www/ + 077 + http://www.pfsense.com/packages/config/siproxd_registered_phones.php + Inbound interface @@ -293,3 +302,4 @@ validate_form_siproxd($_POST, &$input_errors); + \ No newline at end of file diff --git a/config/siproxd_registered_phones.php b/config/siproxd_registered_phones.php new file mode 100644 index 00000000..6ca9b0c0 --- /dev/null +++ b/config/siproxd_registered_phones.php @@ -0,0 +1,163 @@ + + + + + +
+ + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Real PhoneNAT AddressRegistered With 
TypeUserHostPort TypeUserHostPort TypeUserHostPort Expires
No Phone Data Found
No Active Phones
   
+
+
+ + + + diff --git a/config/siproxdusers.xml b/config/siproxdusers.xml index a36e0554..4ed4abc7 100644 --- a/config/siproxdusers.xml +++ b/config/siproxdusers.xml @@ -59,6 +59,10 @@ /pkg.php?xml=siproxdusers.xml + + Registered Phones + /siproxd_registered_phones.php + installedpackages->package->$packagename->configuration->settings -- cgit v1.2.3