Commit Graph

4138 Commits

Author SHA1 Message Date
Alexey Melnichuk
4498f4c9d9 Fix. Sync building $provision array in all places. (#2226) 2016-12-02 12:11:47 -07:00
FusionPBX
aa02eb4f65 Update fax.php 2016-12-02 01:16:38 -07:00
jebsolutions
63664f7807 fix: voicemail message delete bug #2100 (#2221)
bug: voicemail_id was never set so wrong path constructed and glob finds no matching files.

test case:
delete a voicemail message from the web interface

expected result:
voicemail is deleted in the database + file system

actual results:
voicemail is still on the file system
2016-12-01 11:53:12 -07:00
Alexey Melnichuk
4cf1d7e9b7 Fix. Use Ivr Menu/application settings to switch IVR engine. (#2219) 2016-12-01 11:51:55 -07:00
FusionPBX
7dddd81667 Update sql_query_result.php
Prevent php warnings.
2016-12-01 05:40:51 -07:00
jebsolutions
83d2fc25b3 add iNum Dial pattern to dialplan drop-down (#2201)
+011-883-5100-xxxx-xxxx

Most voip providers will give you a free iNum number.  Calls between iNum numbers are typically free.
2016-11-30 20:54:24 -07:00
FusionPBX
b4d0bdafe8 Update provision.php
Prevent a warning on the provisioning class.
2016-11-30 20:50:17 -07:00
Chris Black
ce6c559f29 Voicemail to sms notification (#2205)
Requires that you have fusionpbx-apps/sms

Doesn’t impact anything if you don’t have it. Must be enabled with
default_setting voicemail_to_sms

Everything is disabled by default and the fields in voicemail_edit.php
are hidden by default.
2016-11-30 16:26:39 -07:00
FusionPBX
c882b08abf Update extension_copy.php
Change the duplicate message from green to red.
2016-11-29 12:08:11 -07:00
FusionPBX
89f68e73ff Update extension_copy.php 2016-11-29 11:56:05 -07:00
FusionPBX
72cdefba59 Update extension.php 2016-11-29 11:51:33 -07:00
FusionPBX
fe49484055 Update extension.php
Improve the extension->exists method.
2016-11-29 11:38:00 -07:00
FusionPBX
f65903e75e Update extension.php
Update the function exists method.
2016-11-29 11:04:00 -07:00
FusionPBX
3914259db7 Update dialplan.php 2016-11-26 23:14:43 -07:00
FusionPBX
b26a4d85a2 Update call_center_active_inc.php 2016-11-26 21:44:20 -07:00
FusionPBX
3acfe08ac6 Update database_transaction_edit.php 2016-11-26 21:37:43 -07:00
FusionPBX
defcd0bc86 Update provision.php
Add if is_array statements before using the array to prevent warnings if the array isn't defined.
2016-11-26 18:42:22 -07:00
FusionPBX
238543f982 Update index.php 2016-11-26 18:35:10 -07:00
FusionPBX
f172b08db3 Update gateways.php
Reverse the changes to the Gateways list to fix multiple bugs introduced to it from a pull request.
2016-11-25 20:37:44 -07:00
jebsolutions
6ea4a34630 fix for issue #2190 missing } (#2191) 2016-11-25 10:03:07 -07:00
jebsolutions
89d4dcb959 additional error handling for backup/restore (#2187)
prerequisite:
- add at least one backup path to the Advanced->defaults
- do NOT install rar archive/de-archive programs

test case #1
- go to backup screen and download backups as rar

test case #2
- go to backup screen and upload a RAR file

expected result:
- get a sign that an error occurs

actual result:
- not clear if it failed, or why

fix:
added error message.  And you will get the top-bar warning in red on error instead of in green.

note: cut-pasted from google translate for "extraction failed" part of message-restore_failed_extract
2016-11-24 20:53:03 -07:00
FusionPBX
20bdf00eac Update voicemails.php
Uppercase the SQL, cast voicemail id as text, and add sterilize user data.
2016-11-24 13:01:32 -07:00
FusionPBX
5fa05c2bbf Update extension_edit.php
Prevent a SQL error when adding a new user.
2016-11-24 12:21:55 -07:00
FusionPBX
9cac833ee3 Update extension.php
Remove the extra exists method added a few hours ago.
2016-11-24 11:03:13 -07:00
Alexey Melnichuk
e3e5e2fcfc Fix. Add missing braces in gateways.php (#2179) 2016-11-24 10:09:14 -07:00
FusionPBX
da5c667202 Update extension_edit.php
Use check_str on extension edit when building the sql queries. In the future will switch to PHP PDO prepared statements with parameters. This change fixes a problem where the check_str is used twice and duplicating the single quote.
2016-11-24 03:21:35 -07:00
Mafoo
031c2ea2d8 observe gateway_domain permision more strictly (#1673)
make observation of the gateway_domain permission more strict when
generating edit and delete links
generate edit_link and delete_link once
2016-11-24 00:28:38 -07:00
jebsolutions
9626f23072 prevent cloning duplicate extensions (master #1821) (#2033)
* prevent cloning duplicate extensions

app/extensions/app_languages.php
+ add duplicate extension error prompt

app/extensions/extension_copy.php
+ add check to see if duplicate extension exists

app/extensions/resources/classes/extension.php
+ add function to check if extension exists

* fix typo

* Update app_languages.php

* Update extension_copy.php

* Update extension.php

* Update extension_copy.php

Use the global app_languages.php message-duplicate translation.

* Update extension_copy.php

* Update extension.php
2016-11-24 00:23:44 -07:00
konradSC
156ffca498 Registration search (#2151)
* Update status_registrations.php

* Update status_registrations_inc.php

* Update status_registrations_inc.php

* Update status_registrations_inc.php

* Update status_registrations_inc.php
2016-11-23 23:20:51 -07:00
FusionPBX
df648b7b8b Update provision.php
Allow provision variables of type boolean and numeric.
2016-11-23 22:42:46 -07:00
FusionPBX
f2362aa7aa Create recording_play.php
Add the missing recording play file.
2016-11-23 22:08:33 -07:00
FusionPBX
37f4fc42eb Update xml_cdr_details.php
Fix the recording links in the xml cdr details.
2016-11-23 22:01:37 -07:00
konradSC
d73c09c866 Device profile settings (#2165)
* Update app_config.php

* Update device_profile_edit.php

* Update device_setting_delete.php

* Update provision.php
2016-11-23 12:28:59 -07:00
FusionPBX
d2b65acc3a Update xml_cdr.php 2016-11-23 05:24:33 -07:00
jebsolutions
c2dc99bdb9 [master] fix bug #2017 ring groups broken until re-save (#2108)
test case:
Create a new ring group with one extension.
Immediately dial the ring group number.

expected result:
Phone rings.  No errors in log.

actual result:
Call terminates and log has "0" as ring_group_uuid and a sql error.
Note: editing and re-saving the ring group works around the problem

The Problem:
Line 162: non-existent variable...being checked is returned as false  = 0

Line 278: Xml gets generated with bogus zero...

Line 298: Generate a new uuid...but too late.  We already generated the xml dial plan which will be invalid until we edit and resave this ring group.

fix:
Generate uuid before generating xml
2016-11-21 21:53:56 -07:00
jebsolutions
b36051f73f fix orphan v_ring_group_users after deleting ring group (#2110)
* fix orphan v_ring_group_users after deleting ring group

steps to test:
create a ring group with one extension and one user.  This will add one user to v_ring_group_users.  Delete the ring group.

expected result:
ring group and all it's components are deleted

actual result
v_ring_group_user entry for this ring group is not deleted.

This fix: deletes v_ring_group_user when ring group is deleted.

* Update ring_group_delete.php

* Update ring_group_delete.php

Remove the hidden spaces
2016-11-21 13:59:12 -07:00
FusionPBX
e8e7825f2c Update dialplan.php 2016-11-20 14:01:59 -07:00
Alexey Melnichuk
abba829aae Add. Increment number-alias and MWI account number when generates multiple extensions. (#2078) 2016-11-17 11:46:25 -07:00
Alexey Melnichuk
63ebb355fa Add. Support number_alias field as presence id in follow me/call forward (#2075) 2016-11-17 11:40:22 -07:00
FusionPBX
e0d2ba605a Update app_defaults.php 2016-11-12 20:48:16 -07:00
FusionPBX
6af1e391fe Update call_flow_edit.php
Escape the + with the back slash when used in the dialplan.
2016-11-11 13:55:11 -07:00
FusionPBX
7f98064094 Update fax_send.php
Get fax variables from default settings and use them for sending.
2016-11-11 13:19:52 -07:00
FusionPBX
f24df67e35 Update app_defaults.php
Ignore ringing to improve fax success rate.
2016-11-11 13:05:51 -07:00
FusionPBX
6a992f0fc0 Create 505_call-forward-all.xml 2016-11-10 15:16:58 -07:00
FusionPBX
5fe295a818 Update extension.php
Add exists method to the extension class.
2016-11-05 22:32:20 -06:00
jebsolutions
54d7e41f6e app/fax/app_defaults.php: (#2031)
+ fix: duplicate check only within same default_setting_category.  This fixes the bug where "keep_local" for fax wasn't being created because there was a "keep_local" for voicemail.  Without this fix you will get a lua error due to the field not being set and nothing shows up in the sent faxes log.

fax/fax_log_view.php:
+ fix: back button text is missing.  Copied correct localized text code from another fax page that worked.

app/fax/app_config.php
+ fix: date field is now timestamp for postgres+mysql.  This fixes the listing only showing the date, not the time as well.

Note: app->defaults doesn't change field types.  Existing installs will have to manually update the field type e.g. for postgres:

sudo -sHu postgres
\d fusionpbx
alter table v_fax_logs alter column fax_date type timestamp without time zone;
\q
2016-11-03 16:24:40 -06:00
Chris Black
e7fae7587e add built in ability for microsoft bing speech to text (#1960)
* add built in ability for microsoft bing speech to text

* move json.lua to lower case and more error checking in record_message

* Replaced Creative Commons json.lua with lunajson.lua which is MIT license

https://github.com/grafi-tt/lunajson/blob/master/LICENSE
2016-11-03 16:11:21 -06:00
FusionPBX
bd7867ef5e Update extension_edit.php
Fix the link thanks KonradSC for reporting the problem.
2016-11-01 21:54:37 -06:00
FusionPBX
c50c228190 Update follow_me.php 2016-11-01 13:45:51 -06:00
FusionPBX
3786fa2a65 Update call_forward.php 2016-11-01 13:37:43 -06:00