aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-11-30 16:45:20 -0500
committerjim-p <jimp@pfsense.org>2010-11-30 16:45:20 -0500
commit713b3b82d6bccb95ee1cdbee9f072cc81c883638 (patch)
tree868b420f73d29f075988d0fb0e47b5e0eff0df9d /config
parent6e314b51df176e4c4cf17042281ef1882f7b01ea (diff)
downloadpfsense-packages-713b3b82d6bccb95ee1cdbee9f072cc81c883638.tar.gz
pfsense-packages-713b3b82d6bccb95ee1cdbee9f072cc81c883638.tar.bz2
pfsense-packages-713b3b82d6bccb95ee1cdbee9f072cc81c883638.zip
Add debug options
Diffstat (limited to 'config')
-rw-r--r--config/siproxd.inc11
-rw-r--r--config/siproxd.xml34
2 files changed, 44 insertions, 1 deletions
diff --git a/config/siproxd.inc b/config/siproxd.inc
index 2a48137a..8e74143e 100644
--- a/config/siproxd.inc
+++ b/config/siproxd.inc
@@ -173,7 +173,16 @@ function sync_package_siproxd() {
fwrite($fout, "proxy_auth_pwfile = /usr/local/etc/siproxd_passwd.cfg\n");
}
- fwrite($fout, "debug_level = 0x00000000\n");
+ if($siproxd_conf['debug_level'] != "") {
+ fwrite($fout, "debug_level = " . $siproxd_conf['debug_level'] . "\n");
+ } else {
+ fwrite($fout, "debug_level = 0x00000000\n");
+ }
+
+ if($siproxd_conf['debug_port'] != "") {
+ fwrite($fout, "debug_port = " . $siproxd_conf['debug_port'] . "\n");
+ }
+
if($siproxd_conf['outboundproxyhost'] != "") {
if($siproxd_conf['outboundproxyport'] != "") {
fwrite($fout, "outbound_proxy_host = " . $siproxd_conf['outboundproxyhost'] . "\n");
diff --git a/config/siproxd.xml b/config/siproxd.xml
index 121612f3..1176a423 100644
--- a/config/siproxd.xml
+++ b/config/siproxd.xml
@@ -288,6 +288,40 @@
<description>Period in seconds to request IP info from STUN server.</description>
<type>input</type>
</field>
+ <field>
+ <name>Debug Options</name>
+ <type>listtopic</type>
+ </field>
+ <field>
+ <fielddescr>Debug Level</fielddescr>
+ <fieldname>debug_level</fieldname>
+ <type>select</type>
+ <size>1</size>
+ <options>
+ <option><value>0x00000000</value><name>No Debug Info</name></option>
+ <option><value>0x00000001</value><name>babble (like entering/leaving func)</name></option>
+ <option><value>0x00000002</value><name>network</name></option>
+ <option><value>0x00000004</value><name>SIP manipulations</name></option>
+ <option><value>0x00000008</value><name>Client registration</name></option>
+ <option><value>0x00000010</value><name>non specified class</name></option>
+ <option><value>0x00000020</value><name>proxy</name></option>
+ <option><value>0x00000040</value><name>DNS stuff</name></option>
+ <option><value>0x00000080</value><name>network traffic</name></option>
+ <option><value>0x00000100</value><name>configuration</name></option>
+ <option><value>0x00000200</value><name>RTP proxy</name></option>
+ <option><value>0x00000400</value><name>Access list evaluation</name></option>
+ <option><value>0x00000800</value><name>Authentication</name></option>
+ <option><value>0x00001000</value><name>Plugins</name></option>
+ <option><value>0x00002000</value><name>RTP babble</name></option>
+ <option><value>-1</value><name>Everything</name></option>
+ </options>
+ </field>
+ <field>
+ <fielddescr>TCP Debug Port</fielddescr>
+ <fieldname>debug_port</fieldname>
+ <description>You may connect to this port from a remote machine and receive debug output. This allows better creation of debug output on embedded systems that do not have enough memory for large disk files. Port number 0 means this feature is disabled.</description>
+ <type>input</type>
+ </field>
</fields>
<custom_php_global_functions>
</custom_php_global_functions>