-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Out of Date
-
Affects Version/s: 12
-
Fix Version/s: None
-
Component/s: iSymphony
-
Labels:None
-
ToDo:
-
Asterisk Version:11.17.1
-
Distro Version:12.0.73
-
Distro:FreePBX Distro
Hi
To allow my FreePBX 12 distro version to work behind our company's proxy server, I have set up the http_proxy setting in /etc/sysconfig/httpd. This in combination with using wget for module admin works great.
The side-effect of this, is that the iSymphonyV3 admin module now also uses the proxy to connect to the iSymphony server (on localhost, as per the default setting).
I've now patched /var/www/html/admin/modules/cxpanel/lib/CXPest.php to overcome this behaviour:
— CXPest.php 2015-07-17 17:48:00.367206922 +0200
+++ CXPest.php 2015-07-17 17:49:07.170148187 +0200
@@ -14,6 +14,7 @@
CURLOPT_SSL_VERIFYPEER => false, // stop cURL from verifying the peer's certificate
CURLOPT_FOLLOWLOCATION => false, // follow redirects, Location: headers
CURLOPT_MAXREDIRS => 10, // but don't redirect more than 10 times
+ CURLOPT_PROXY => '',
CURLOPT_HEADER => true, //I9 Technologies modification
CURLOPT_TIMEOUT => 7, //I9 Technologies modification
CURLOPT_SSL_VERIFYHOST => false //I9 Technologies modification
This works fine, but causes the altered file security warning to shout at me.
I'd suggest to either statically set the proxy to a blank string like I did or to provide a configurable option in the web interface.