Commit Graph

170 Commits

Author SHA1 Message Date
Luis Daniel Lucio Quiroz 6b256a41b3 gives save_var_xml() more tolerance (#4299)
when there is no local freeswitch running (big cluster deployments where Fusion UI is in another server), sometimes there is no local freeswitch running. this breaks the variables per host.

This patch gives the chance to use the hostname as a fallback option before giving up.
2019-06-20 03:35:41 -06:00
FusionPBX 427df1d5ac
Update switch.php 2019-03-21 16:00:51 -06:00
FusionPBX 6201ca9640
Update switch.php 2018-12-13 17:37:51 -07:00
FusionPBX 3896af6640
Update switch.php 2018-12-13 17:32:30 -07:00
FusionPBX 522d462291
Update switch.php 2018-12-13 17:23:26 -07:00
futureFry c2998cf4f1 removed double quote from $v_mailer_app path (#3010)
if this is left in freeswitch (1.6.20) will not start up. 
Freeswitch: Cannot Initialize [[error near line 4105]: missing >]
there might still be a problem on line 1299 -> please correct me if I'm wrong.
2018-09-02 10:27:03 -06:00
FusionPBX f56b1cfb5c
Update switch.php 2018-08-14 23:59:58 -06:00
FusionPBX d83d93be2c
Update switch.php 2018-08-14 21:30:02 -06:00
FusionPBX 87d9b84cd3
Update switch.php 2018-03-29 19:30:25 -06:00
FusionPBX e41ed77a9d
Update switch.php 2018-03-29 19:29:12 -06:00
FusionPBX 1c483ce128
Update switch.php 2018-03-25 11:21:26 -06:00
futureFry ffbf67b2a9 Update switch.php at Line 1282 detecting windows (#3007)
if (stristr(PHP_OS, 'WIN')) isn't specific enough, it will be true for Darwin or Windows.
2018-02-28 20:45:50 -07:00
Alexey Melnichuk 9cc513d3d4 Fix. Find php interpreter when use CGI/FastCGI mode. (#2640)
Prev version has bug when extension_dir has relative path (e.g. `ext`)
`basedir('ext')` returns not empty string by dot symbol `.` so it going to
infinity loop.
Also official distro of PHP has no executable binaries with version (phpX.exe)
only `php.exe`.
Tested on OpenServer with PHP 5.3-7.1 under Apache/Nginx.
And also on manual install of Nginx 1.11 / PHP 5.4
2017-06-05 08:47:38 -06:00
FusionPBX f7725839e7 Update switch.php 2017-04-15 13:47:40 -06:00
FusionPBX cc80103f78 Update switch.php 2017-04-14 22:13:18 -06:00
FusionPBX fd9e301368 Update switch.php 2017-01-10 01:46:59 -07:00
FusionPBX be26c449f3 Update switch.php 2016-12-23 01:21:14 -07:00
FusionPBX c60867659a Update switch.php 2016-12-23 01:17:09 -07:00
Alexey Melnichuk c30eb90839 Add. Support number_alias field as presence id in follow me/call forward (#2075) 2016-11-17 11:40:22 -07:00
markjcrane 6f2601e32a Use FreeSWITCH to run mkdir so it inherits its own user and group permissions. 2016-06-28 15:18:40 -06:00
markjcrane d91369b8f7 Prevent duplicate values from being saved in the vars.xml file and remove some trailing spaces and fix some of the indentation. 2016-06-01 15:31:33 -06:00
FusionPBX d2219caf38 Update switch.php
Add a missing forward slash.
2016-05-26 19:52:03 -06:00
markjcrane 24b7b93988 Fix the syntax. 2016-05-26 11:28:30 -06:00
markjcrane 88bbd19d65 Add the include for the class. 2016-05-26 11:23:53 -06:00
markjcrane 7fff69f791 Remove save_module_xml() function and move it it into the modules class as the xml method. Eventual goal move everything out of switch.php. 2016-05-26 11:21:37 -06:00
markjcrane 404ffaed8e Add a missing comma. 2016-05-26 10:52:37 -06:00
markjcrane 17bfd2eb35 Start using the module order. 2016-05-26 10:31:59 -06:00
Mafoo 59ddf92f1b I got the permissions wrong (#1616)
it should have been in octal mod (leading 0)
also updated the fax application as it needs the stickygid too
2016-05-26 05:55:46 -06:00
Mafoo a8b667cd0b Added sticky GID permissions (#1615) 2016-05-25 21:51:41 -06:00
markjcrane f89c2b2498 Applied changes from ronyshtamler to support exec-set in vars.xml. 2016-05-13 08:52:25 -06:00
Alexey Melnichuk 6df1dae2a9 Fix. Use correct database for Call Center while FS load. (#1597)
Problem that `mod_commands` may load after than `mod_callcenter` and there no function `global_getvar`
So current code just create database with name `INVALID COMMAND!.db`.
2016-05-13 08:03:48 -06:00
markjcrane 55b598f2d0 Make sure the user extension arrray exists on the initial login. 2016-05-06 17:47:03 -06:00
Harry G. Coin 64eeca8e2d Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
2016-04-25 20:52:21 -05:00
markjcrane 2e875b106b Missed two of the $db connections. 2016-04-14 23:05:05 -06:00
markjcrane 4702530944 Remove the global $db connection in switch.php. Future will move all of these functions to php class methods. 2016-04-14 23:00:36 -06:00
markjcrane 6e5fe31303 Schema use $this->$db instead of $db. 2016-04-14 21:51:11 -06:00
markjcrane 7d61371bc9 Rename the EventSocket class. 2016-04-02 19:23:16 -06:00
mafoo 2b39287bdc WhitespaceClean-resources/others
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 13:57:01 +00:00
markjcrane c2adbaa023 In vars.xml switch from hostname to the switchname. 2016-02-03 19:02:10 -07:00
markjcrane 23b4b7c9bf Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"]. 2016-01-17 00:01:13 -07:00
markjcrane 89dd11cf3e Comment out the languages not in use until they are needed. 2016-01-12 21:04:39 -07:00
Alexey Melnichuk 2d515e81e2 Change. Rename v_mailto.bat to mailto.bat 2015-11-28 11:17:46 +03:00
Alexey Melnichuk f01eb875c7 Fix. Use wrapper bat file to v_malito.php on Windows.
Tested on WAMP and OpenServer.
2015-11-27 14:50:08 +03:00
Alexey Melnichuk 40356e4063 Fix. Clear the cache when callcenter config changed. 2015-09-28 12:10:31 +04:00
FusionPBX cf4bacea6f Merge pull request #1168 from rdissauer/fix/fax-destination
fixed fax destination with * or + in number
2015-09-24 15:32:19 -06:00
roman.dissauer 6b53843304 fixed fax destination with * or + in number 2015-09-24 09:37:58 +02:00
markjcrane a0191c7bc7 Change the object from pdo to db. 2015-08-29 12:18:44 -06:00
markjcrane b00558bd78 Fix an error that could occur during upgrades. This will make the upgrade from older versions a little easier. 2015-08-29 12:06:56 -06:00
Alexey Melnichuk 50d52a2c62 Fix. Parse ESL response more accurate.
Problem with commands that do not return Content (e.g. sendevent)
In this case `event_socket_request` go to busy wait cycle without chance to success.
On my system it require alot process time and may take >30 sec to save one extension.
2015-08-25 14:14:28 +04:00
Alexey Melnichuk 7c18a6585d Fix. Eavesdrop by operator_panel with extension with number-aliases 2015-08-17 16:46:53 +04:00