Commit Graph
100 Commits
Author SHA1 Message Date
Luis Daniel Lucio Quiroz fa12c4daea Update dtmf_handler.lua
Event-Date-Timestamp resolution is in microseconds, transfer_history is only seconds. We need have the same key.
2021-03-17 19:19:55 -04:00
Luis Daniel Lucio Quiroz 908e7f67d6 Update dtmf_handler.lua 2021-03-17 12:02:54 -04:00
Luis Daniel Lucio Quiroz fc96e3ae77 DTMF handling
this will give the dtmf_history (similar to the transfer_history variable)

the use cases of this are only limited to the imagination
2021-03-16 15:43:21 -04:00
Luis Daniel Lucio Quiroz 52c70f6172 Update app_defaults.php 2021-02-09 14:14:53 -05:00
Luis Daniel Lucio Quiroz de021ec34c Hide things that non-admin users shouldnt edit 2020-12-29 00:24:03 -05:00
Luis Daniel Lucio Quiroz bb868a2a8b Update app_config.php 2020-12-29 00:15:22 -05:00
Luis Daniel Lucio Quiroz 5eb3eaa529 Update extension_edit.php 2020-12-13 20:18:02 -05:00
Luis Daniel Lucio Quiroz 2b7c938f49 Add digium support to get_vendor_by_agent() (#5380)
Missing this brand
2020-08-03 13:12:19 -06:00
Luis Daniel Lucio Quiroz d7881b7dc5 [4.5] Use INT instead of NUMERIC (#5311) 2020-06-19 09:00:02 -06:00
Luis Daniel Lucio Quiroz b65c8cd68b $this is a syntax error when using static classes (#5264) 2020-06-06 09:11:35 -06:00
Luis Daniel Lucio Quiroz 3a2265d92b [4.5] prevents routing errors (#5276)
* [4.5] prevents routing errors
* Update directory.lua
2020-05-18 13:53:43 -06:00
Luis Daniel Lucio Quiroz 4af2120e42 [4.5] REQUESTED_CHAN_UNAVAIL option in xml cdr (#5216)
just another option for searching calls
2020-03-27 15:36:08 -06:00
Luis Daniel Lucio Quiroz 296fdead32 [4.5] Fix fax email Subject when not using sofia/gatewa (#5204)
Same as 4.4
2020-03-25 15:45:15 -06:00
Luis Daniel Lucio Quiroz c27d0cea2d Update extension_edit.php (#5007) 2020-01-08 10:45:10 -07:00
Luis Daniel Lucio Quiroz f3a5387853 Some Loopback endpoint support (#4937)
* Some Loopback endpoint support

Leg B won't have the variable domain_name filled correctly, regardless if you do the right loopback/user/domain values.
however, the context variable is filled correctly. This will allow us to let all the dial plans run correctly.

* Update 010_user_exists.xml
2019-12-11 19:05:26 -07:00
Luis Daniel Lucio Quiroz 4523d6e264 Same as 4.4, move 404 not found from DEBUG to WARNING (#4925)
New system use the journal (some still use syslog). the "log" action default level is DEBUG.
This change moves the 404 error code to WARNING, the mod_syslog will report to the journal (or syslog).
2019-12-03 15:35:24 -07:00
Luis Daniel Lucio Quiroz a875676dd2 Missing space (#4893) 2019-11-22 19:33:57 -07:00
Luis Daniel Lucio Quiroz 6eddd05cba Update call_recordings.php (#4873) 2019-11-18 11:46:15 -07:00
Luis Daniel Lucio Quiroz 52dd233fbf [4.5] Fix the cidlookup script (#4630)
* [4.5] Fix the cidlookup script

same as 4.4

* Update cidlookup.lua
2019-09-20 10:38:15 -06:00
Luis Daniel Lucio Quiroz c27b12c0be Missing / (#4457)
Missing /that prevents to display correctly the icon_gear.png file
2019-08-28 23:12:40 -06:00
Luis Daniel Lucio Quiroz add3dc70ec 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
Luis Daniel Lucio Quiroz d39190913d [4.5] Fix the ALTER TABLE (#4097)
* Fix the ALTER TABLE

when $apps[$x]['db'][$y]['fields'][$z]['name'] is an array, you dont try to get the ['text'] index therefore fields such as v_xml_cdr.xml_uuid, v_destinations.destination_type and v_destinations.destination_number wont be created when upgrading.

This patch fixes it

* Update schema.php
2019-05-08 14:02:20 -06:00
Luis Daniel Lucio Quiroz b16ab8f002 Update record_message.lua 2019-05-03 23:54:51 -04:00
Luis Daniel Lucio Quiroz ccb0369805 Add another way to use Azure Speech to Text service
This patch adds BING (legacy) some extra fault tolerance support. For those who still use Bing, Bing sometimes fails
It adds another way, which I think it is easier and faster (Azure). Among the outstanding things it has; just configure the zone, and use Memcache to store the access token as per Azure documentation, it saves a query (faster). It also returns the most likely right transcription (digging in the JSON)
2019-04-30 23:34:34 -04:00
Luis Daniel Lucio Quiroz 186d7981a2 [4.5] fixes null record_name and record_path fields in v_xml_cdr (#4053)
* record_name verification

* record_name better verification

when you carry on some updates from 4.0 to 4.2 and then 4.4, old dialplans do not create all the variables, record_session is created, but record_name (and record_path) are not null, set and lenght zero,  "" in otherwords.

Then, in the db record, record_name and record_path are empty, regardless if the recording file exists. Therefore, they are not shown in the CDR app.
This fixes this issue.
2019-04-20 17:05:40 -06:00
Luis Daniel Lucio Quiroz 10790178d1 [4.5] Fix CDR Details (#4052)
Same as 4.4
2019-04-18 11:58:34 -06:00
Luis Daniel Lucio Quiroz 0108998768 Unescape Json before decoding (#3695)
I have realized since 4.4, json is escaped (\" for example). Some PHP releases fail to decode if that is used.
2018-10-25 09:32:09 -06:00
Luis Daniel Lucio Quiroz 07a292b552 Same logic as v_xml_cdr_import.php (#3048) 2018-06-09 09:30:02 -06:00
Luis Daniel Lucio Quiroz 737c3e72b2 Fix Voicemail DELETE FROM SQL Query [4.5] (#3061)
As the other patches, the AS alias is not supported on MariaDB/MySQL and maybe other databases as well. You do not need an alias as you are just dealing with a single table.
2018-05-22 01:12:15 -06:00
Luis Daniel Lucio Quiroz b0bba86d8c Fix Mysql/MariaDB installation 2/2 [4.5] (#3056)
Missing default speed ups
2018-05-18 00:58:15 -06:00
Luis Daniel Lucio Quiroz cad0636b12 Same as 4.4 (#3040)
...
2018-04-26 14:42:23 -06:00
Luis Daniel Lucio Quiroz ccd684507e Include New yealink mac (#2963)
New Yealink t48s have different mac address
2018-01-25 12:56:42 -07:00
Luis Daniel Lucio Quiroz 4d5a36b3e9 Same as 4.2 (#2889) 2017-11-05 15:49:25 -07:00
Luis Daniel Lucio Quiroz 5f2f404164 Azure TTS (#2891)
* Azure TTS

This is the first of a set of pull that will give FusionPBX TTS capabilities in many places. This is the main class that will interact with the other modifications.

Please suggest if this is the best place to put this file or if a /app/azure/resources/class is best. I am not sure about this.

This class is sponsored by my friend since he paid some Indian guys for a development and I discovered they were offering/selling that private development to other companies. He took the call to make this capability free.

* Moving to another place

* New place
2017-11-05 15:46:46 -07:00
Luis Daniel Lucio Quiroz dea1bf390c Same as 4.2 (#2898) 2017-10-30 12:40:05 -06:00
Luis Daniel Lucio Quiroz 88109eb967 Update ivr.conf.lua (#2861)
when debug["xml_string"] is on, it will overwrite /tmp/ivr.conf.xml file each hit an ivr goes. this makes very hard to trouble shoot in a living system. this patch allows to put one ivr menu per file.
2017-09-29 16:24:59 -06:00
Luis Daniel Lucio Quiroz ea6608bcc0 Same as 4.2 (#2825)
Same as pull request #2824 but for 4.3
2017-09-06 16:06:42 -06:00
Luis Daniel Lucio Quiroz 4b33893579 Little language update (#2693)
ES and FR
2017-06-16 08:39:15 -07:00
Luis Daniel Lucio Quiroz 3e50f562a0 Fix the CID (#2588)
* Fixes CID

Although you already had somehow fixed the caller id here. you need to put origination and effective. For some reason, not all carriers get the CID from the same field in the SIP payload. origination_* and effective_* affects different parts of the SIP invite.

* Fix the CID


Although you already had somehow fixed the caller id here. you need to put origination and effective. For some reason, not all carriers get the CID from the same field in the SIP payload. origination_* and effective_* affects different parts of the SIP invite.

* Update follow_me.php

* Update call_forward.php
2017-05-26 15:41:50 -06:00
Luis Daniel Lucio Quiroz 18892ff211 Typo in the CC exit key patch (#2550)
I did a bad copy and paste, reading $_POST where it was $row
2017-04-29 20:13:11 -06:00
Luis Daniel Lucio Quiroz f3f3e6739a CC Key Support for Call Center (#2518)
* Exit Keys support

* Multilanguage support

* CC Key Support

* Update call_center.php
2017-04-18 12:03:41 -06:00
Luis Daniel Lucio Quiroz f5cd0e61c4 Some FR & ES translation fixes (#2503) 2017-04-13 15:47:15 -06:00
Luis Daniel Lucio Quiroz fdaba192a4 Restore Button + Audiocodes preliminary support (#2502)
* Audiocodes phone support + restore default for vendors

* Restore button

* Restore script

* Update device_vendors.php
2017-04-13 14:18:38 -06:00
Luis Daniel Lucio Quiroz 35c139ddb8 Yet another ip phone reporting MAC in the UserAgent (#2492) 2017-04-11 14:04:10 -06:00
Luis Daniel Lucio Quiroz 79c6fcf585 MAC detection for some Grandstream phones (#2486)
Some GS models send the Mac address in the user agent
2017-04-07 23:47:52 -06:00
Luis Daniel Lucio Quiroz 8bdb585f14 Fix CID alteration in Ringroups (#2467)
I really don't know if this is an IP phone issue (tested on grandstream) or a new behavior on FreeSWITCH, but in order to add the prefix to the caller id (name or number) correctly, you need to export instead of set.
2017-04-03 11:53:41 -06:00
Luis Daniel Lucio Quiroz ea669cbf69 Let the apps be more self-contained regarding LUA scripts (#2440)
At this moment, all LUA scripts must be at resources/install/script, this patch allows applications to be more self-contained by having app/*/resources/install/scripts directory, which it will be copied to the scripts_dir directory as well.
2017-03-22 09:25:33 -06:00
Luis Daniel Lucio Quiroz bb7dba8570 Make sure provisioning temporal directory exists (#2386)
Same rationale as 4.2
2017-02-19 21:50:35 -07:00
Luis Daniel Lucio Quiroz 478f164024 Be sure FAX path exists before uploading (#2345) 2017-02-07 21:37:48 -07:00
Luis Daniel Lucio Quiroz 7ec779419b SCRIPTS: PHP bin is not always php5 (#2352) 2017-02-07 21:32:39 -07:00
Luis Daniel Lucio Quiroz 6b6a0dab18 PHP bin is not always php5 (#2350)
not everybody names php binary as php5
2017-02-07 21:31:52 -07:00
Luis Daniel Lucio Quiroz 78415dd293 Fix global vars scope (#2263)
Same rationale as 4.2
2016-12-26 14:53:42 -07:00
Luis Daniel Lucio Quiroz fa244129be Fix Call forward BUSY and NO ANSWER DEVEL (#2269)
Same rationale as 4.0 and 4.2
2016-12-24 10:38:21 -07:00
Luis Daniel Lucio Quiroz 73a2886f11 Add the capability to have extension and DID with same number (#1998)
* Add the capability to have extension and DID with same number

Same rationale than 4.0

* Update dialplan_outbound_add.php
2016-10-14 14:07:40 -07:00
Luis Daniel Lucio Quiroz 089d33384a Look further for domain_name (#1955)
Same rationale as 4.0
2016-09-28 17:56:53 -06:00
Luis Daniel Lucio Quiroz 5d1e995e2e Fix load balancing (#1920)
Same rationale as 4.0
2016-09-18 22:08:50 -06:00
Luis Daniel Lucio Quiroz 964a7b53c6 Wrong directory name (#1822)
it was looking for call_center, instead call_centerS
2016-08-17 12:37:05 -06:00
Luis Daniel Lucio Quiroz e6567d6d8d More efficient and compatible SQL query (#1737)
Don't do a nested select, it adds unnecessary overload to the db. Instead, use a left join, quicker and more compatible among db types.
2016-07-06 12:36:18 -06:00
Luis Daniel Lucio Quiroz 56121737a9 Wrong variable in freeswitch.email
https://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.email   

same as my other pull request
2016-02-24 19:59:54 -05:00
Luis Daniel Lucio Quiroz 2fccf1c09e Bill the incoming call
wrong variable, use the correct one.
2016-01-08 23:44:06 -05:00
Luis Daniel Lucio Quiroz 780b69a253 Use os.time instead of mysql native function
Odd, but on some deployments LUA wont accept unixtime stamp functions (regardless it works on CLI). So, to workaround this, lets use os.time() which it returns the same value expected.
2015-08-09 21:56:28 -06:00
luis daniel lucio quiroz e92fd6e3b7 little typo 2015-06-29 19:03:06 +00:00
luis daniel lucio quiroz 95a7609242 add a condition, not everybody may need the fix 2015-06-29 18:57:03 +00:00
luis daniel lucio quiroz 53a7ef3756 caller id fixed 2015-06-24 16:49:07 +00:00
luis daniel lucio quiroz 27bb9d1735 load balancing fixed 2015-06-11 01:43:30 +00:00
luis daniel lucio quiroz cdcb5bcd35 little space, nothing special 2015-06-05 16:10:55 +00:00
luis daniel lucio quiroz f32397252e mod_verto xml handler support 2015-05-30 22:14:01 +00:00
luis daniel lucio quiroz 14235811ed conference_session_uuid issue fixed, the recording path is now fixed with/without multitenant 2015-05-28 18:41:43 +00:00
luis daniel lucio quiroz d6980a929c fix a pricing display bug when billing installed 2015-05-01 18:52:01 +00:00
luis daniel lucio quiroz e2602f7824 better sql queries for billing 2015-05-01 18:35:40 +00:00
luis daniel lucio quiroz 9f346abfd0 lcr_currency wrong set 2015-05-01 17:39:13 +00:00
luis daniel lucio quiroz d4a84948ae change the Billing when you change the Tenant name 2015-04-30 13:45:13 +00:00
luis daniel lucio quiroz 830238631c device_vendor & device_mac_address are a must 2015-04-23 16:39:49 +00:00
luis daniel lucio quiroz 67e96c27e6 use numeric not alphanumeric on variables & logging options 2015-04-21 16:56:58 +00:00
luis daniel lucio quiroz 18ca473bc2 numeric version function 2015-04-14 23:58:03 +00:00
luis daniel lucio quiroz a4a76efb49 missing space & mysql support 2015-04-12 17:40:58 +00:00
luis daniel lucio quiroz 0a79e6e2d8 /tmp/provisioning_log.txt only when debug is on 2015-04-09 17:03:50 +00:00
luis daniel lucio quiroz 72c03a4b42 debug must be turned on manually with a default setting 2015-04-09 16:13:21 +00:00
luis daniel lucio quiroz df87b1e277 just a little more debug info when provisioning fails 2015-04-09 14:26:47 +00:00
luis daniel lucio quiroz fe427d4cb3 let the xml_cdr download/play, regardless mono/multi tenant 2015-04-03 16:23:24 +00:00
luis daniel lucio quiroz 87763506bb let the xml_cdr find the wav file, regardles mono/multi tenant 2015-03-31 16:20:55 +00:00
luis daniel lucio quiroz 726cca7d99 optional text_append 2015-03-27 01:09:25 +00:00
luis daniel lucio quiroz b7b98cef79 not short-tags on all project 2015-03-25 13:46:19 +00:00
luis daniel lucio quiroz 1834c6f098 not short-tags on time-conditions 2015-03-25 13:30:26 +00:00
luis daniel lucio quiroz 13c76d0d0a do not change headers, add yours 2015-03-23 01:53:25 +00:00
luis daniel lucio quiroz 72ce214a1f custom html for enhanced theme 2015-03-12 18:20:17 +00:00
luis daniel lucio quiroz 2e30add9ac short php tags fixed and javascript routine to make many other things to work 2015-03-01 00:27:04 +00:00
luis daniel lucio quiroz a893361977 new follow_me_cid_set permission to allow cid change 2015-02-28 18:14:48 +00:00
luis daniel lucio quiroz ac19ba116b you can fix your forward caller id number/name 2015-02-28 04:07:15 +00:00
luis daniel lucio quiroz 8750662aca you can fix your follow me caller id number/name 2015-02-28 02:32:25 +00:00
luis daniel lucio quiroz 606d8eb595 missing text class include 2015-02-28 01:31:24 +00:00
luis daniel lucio quiroz 455f0b2e45 do not show others extension to non-admin users 2015-02-27 15:25:49 +00:00
luis daniel lucio quiroz 178cda0d0a support for created_by 2015-02-13 22:17:42 +00:00
luis daniel lucio quiroz 162b19cda1 only superadmins and admins can assign a user 2015-02-13 21:17:02 +00:00
luis daniel lucio quiroz c4eae5ea12 conference menu for users 2015-02-13 20:29:08 +00:00
luis daniel lucio quiroz abb7e561cc acl menu fix 2015-02-13 19:16:35 +00:00
luis daniel lucio quiroz c64c2b064b debug messages for conference center 2015-02-13 18:51:19 +00:00
luis daniel lucio quiroz 807df84a38 spa support 2015-02-04 03:53:34 +00:00
luis daniel lucio quiroz 24c0ccd114 for_fax now on fax 2015-01-27 14:51:57 +00:00
luis daniel lucio quiroz 7f175b4985 accountcode now on fax, PCMU/A as absolute codec string 2015-01-26 19:54:52 +00:00