Commit Graph

1048 Commits

Author SHA1 Message Date
FusionPBX 37161f6fc4 Update sofia.conf.lua
Fix the year.
2017-01-12 04:26:32 -07:00
FusionPBX 4e2b96b29f Update sofia.conf.lua
Fix domain alias show with sofia status.
2017-01-12 04:18:58 -07:00
FusionPBX 761a9f51f2 Update ivr.conf.lua 2016-12-29 13:35:55 -07:00
jebsolutions b0bde877d1 fixes bug #2270 reported by volga629 (#2276)
Please do further testing/review and give comments and suggest cleanup, etc.

This bug is only tripped if all of the following are true:
a) fax send fails
b) email notification of fax failure also fails
c) Other?

how to test
- have a 100% working fax to email setup.
- Change Advanced->defaults->email and set the port to be something invalid.
- e.g. smtp port 9999 is invalid
- send a test fax to something without a fax
- e.g. I just faxed my own DID which does NOT have fax answering

- each time the phone rings answer...wait 5 seconds, and then hang up
- note: it will retry sending the fax 5 times so repeat the above.

- on the last try it will give up, and try to send the failure email
- the email will fail (bad port) and then it will insert the failed email into v_emails
- the insert will fail and nothing in v_emails

Error was caused by trying to insert '' into the domain_uuid field.
'' is invalid in a uuid field, but null is okay.

The null is caused by no x-headers being passed.  So these two fields end up null:
$headers["X-FusionPBX-Domain-UUID"]
$headers["X-FusionPBX-Email-Type"]

Ignoring unset/uninitialized variables hides bugs.

Fix: feed the X-Header in the calling lua code.
2016-12-27 17:49:57 -07:00
Luis Daniel Lucio Quiroz a435f8973a 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
FusionPBX 167bacf9df Update route_to_bridge.lua 2016-12-23 02:16:22 -07:00
FusionPBX fe31c4b633 Update route_to_bridge.lua 2016-12-23 01:52:19 -07:00
FusionPBX 0bb9de3463 Update dialplan.lua
Add hostname to dialplan xml handler.
2016-12-23 01:28:47 -07:00
FusionPBX 52ba8cf2e3 Update 2016-12-22 14:38:12 -07:00
FusionPBX 3f2c9a7e08 Update check_password.lua 2016-12-22 14:34:38 -07:00
Alexey Melnichuk 5523e6f630 Fix. Use CID from extension for call forward if set `call_forward_fix`. (#2260)
This is same behavior as in Web UI.
2016-12-20 09:07:58 -07:00
FusionPBX 4ae4d63524 Update ivr.conf.lua
Fix the memcache expire on the ivr menu.
2016-12-14 08:45:56 -07:00
Alexey Melnichuk 4648f97c17 Fix. Find in database not empty phone number for speed dial. (#2242)
Also do not store `context` in memcache
2016-12-09 00:49:51 -07:00
Alexey Melnichuk bb073930bc Fix. logs sql only if debug flag set. (#2243) 2016-12-09 00:42:20 -07:00
FusionPBX 9eb6ea6472 Update index.lua
Change destination_number to destination, and use argv to get the destination.
2016-12-08 11:48:07 -07:00
Alexey Melnichuk bd9dc60090 Rewrite speed_dial Lua script. (#2239) 2016-12-08 10:23:38 -07:00
FusionPBX d86ea6b0de Create index.lua 2016-12-08 03:03:58 -07:00
Alexey Melnichuk c0c6883fbc Fix. Group intercept with not empty group name (#2232) 2016-12-07 23:47:37 -07:00
Alexey Melnichuk b112220534 Remove unused database connection. (#2235) 2016-12-06 09:52:51 -07:00
Alexey Melnichuk 3e1151cf31 Fix. Set correct values for voicemail_to_sms_* settings (#2229)
`true` and `false` string literals evaluates to `true` boolean value.
2016-12-05 16:02:32 -07:00
Alexey Melnichuk 9b6e1e8df3 Fix. group_call pass params to query (#2227) 2016-12-02 17:29:42 -07:00
FusionPBX b6281a84c4 Update fax_retry.lua 2016-12-02 00:52:10 -07:00
FusionPBX 96708bdeea Update fax_retry.lua
Prevent a nill error for email_address.
2016-12-01 23:57:17 -07:00
FusionPBX c029516f07 Update fax_retry.lua 2016-12-01 23:47:32 -07:00
Chris Black 1431a8a3fb 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 d6465b5c05 Update forward_add_intro.lua
Add missing ) which was breaking the syntax.
2016-11-28 08:43:47 -07:00
Alexey Melnichuk 2aebf9e8b8 Fix. Build correct SQL in vm/menu_messages.lua (close #2189) (#2195) 2016-11-25 23:03:19 -07:00
Alexey Melnichuk 4856044e80 Fix. Close database object in vm/forward_to_extension.lua (#2196) 2016-11-25 23:01:43 -07:00
Alexey Melnichuk 1056b84ed3 Fix. Store message_intro_base64 in database. (#2197) 2016-11-25 23:01:18 -07:00
Alexey Melnichuk 80a1e5b710 Add. ${user_exists} value to check condition when build CF dialstring (#2183) 2016-11-24 10:07:55 -07:00
Alexey Melnichuk d892521404 Fix some minor typos related with new Database class. (#2174) 2016-11-24 10:04:42 -07:00
Alexey Melnichuk b8fc499360 Add. Use params in provision/index.lua (#2173) 2016-11-24 10:01:06 -07:00
Alexey Melnichuk c26bc296ec Add. call_flow_monitor.lua uses Database class. (#2172) 2016-11-24 09:57:18 -07:00
Alexey Melnichuk b1cd199f3f Add. Use params in disa.*.lua (#2171) 2016-11-24 09:56:09 -07:00
Alexey Melnichuk 5fe0308ef2 Fix. Find call_group with NULL in intercept.lua (#2169) 2016-11-24 03:04:52 -07:00
Alexey Melnichuk 9d764b7d5c Fix. Add missing file for #1629 (#2077) 2016-11-24 00:41:43 -07:00
Chris Black d084fe3fcc Couple firmware URL fixes (#2106)
* Couple firmware URL fixes

* Add handset OTA upgrade to W52p

* Remove profanity from returned results.
2016-11-23 23:21:35 -07:00
Alexey Melnichuk a7c972ba2d Fix. Create dbh object in fax_retry.lua (#2168) 2016-11-23 23:14:58 -07:00
Alexey Melnichuk 5c504b226f Add. Use params in ring_groups/destination.lua (#2163) 2016-11-23 03:50:22 -07:00
Alexey Melnichuk 95176f517e Fix. Fetch correct arrays from settings. (#2162)
* Fix. Fetch correct arrays from settings.
Add. Use params in `settings.lua`

* Fix. array from domain settings overwrite entire array from default settings instead of appends it.
2016-11-23 03:50:00 -07:00
Alexey Melnichuk 2fc804f61a Add. Use params in call_block/index.lua (#2161) 2016-11-23 02:18:36 -07:00
Alexey Melnichuk c0f0d81d01 Fix. Use correct database class in hangup_rx.lua (#2155) 2016-11-23 02:02:06 -07:00
Alexey Melnichuk d55eab9139 Add. Use params in vm/change_password.lua (#2156) 2016-11-23 02:01:50 -07:00
Alexey Melnichuk d65ee95d9c Add. Use params in directory.lua (#2157) 2016-11-23 02:01:29 -07:00
Alexey Melnichuk 7f8173f4ad Add. Use params in group_call.lua (#2158) 2016-11-23 02:00:44 -07:00
Alexey Melnichuk ba019995f1 Fix. Pass `params` to query call in destination_caller_id.lua (#2159) 2016-11-23 02:00:17 -07:00
Alexey Melnichuk 0520be077d Fix. Pass `params` in query call in do_not_disturb.lua (#2160) 2016-11-23 01:59:58 -07:00
FusionPBX cb987f24b9 Update index.lua
Get the sip_from_user and sip_number_alias from the session.
2016-11-23 01:20:00 -07:00
Alexey Melnichuk 571e42508f Fix. Use local `err` variable in `apply_param` (#2152) 2016-11-22 16:48:54 -07:00
Alexey Melnichuk a7341d97c4 Add. Use params in vm/record_menu.lua (#2130) 2016-11-22 11:22:41 -07:00