fusionpbx/app/scripts/resources/scripts
emak ea4a5e7f67
Check to make sure accountcode has some value (#6440)
The accountcode variable is used in a dialstring later on and if it comes back nil for any reason, then the following error is thrown:

2022-07-22 16:19:11.524674 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/follow_me/index.lua:396: attempt to concatenate global 'accountcode' (a nil value)
stack traceback:
        /usr/share/freeswitch/scripts/app/follow_me/index.lua:396: in main chunk
        /usr/share/freeswitch/scripts/app.lua:48: in main chunk

This completely breaks follow-me.

This code sets the accountcode variable to the domain name if it comes back nil during script execution, thus protecting the script from failing with an empty accountcode value in the db or query.
2022-07-22 16:47:31 -06:00
..
app Check to make sure accountcode has some value (#6440) 2022-07-22 16:47:31 -06:00
resources set email_uuid if not provided 2022-03-17 11:58:08 -06:00
app.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
bind_digit_bleg.lua bind_digit_action for B-leg during internal call (#6157) 2021-12-15 14:45:04 -07:00
blf_subscribe.lua BLF Presence added for Voicemail Boxes (#6389) 2022-05-19 08:37:10 -06:00
call_flow.lua Update call_flow add sleep before uuid_display. 2020-05-19 17:36:11 -06:00
call_flow_monitor.lua This function is not being used. 2022-05-24 16:12:29 -06:00
call_flow_subscribe.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
call_forward.lua [follow me] Persist follow me enabled when enabling DND or call forward (#6076) 2021-10-28 09:44:27 -06:00
cidlookup.lua Add line endings to Console logs (#6103) 2021-11-22 09:08:03 -07:00
confirm.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
destination_caller_id.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
dial_string.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
directory.lua [directory] Use effective_caller_id_name when directory_first_name blank (#6193) 2021-12-15 14:43:12 -07:00
disa-old.lua.txt Call Broadcast add start time 2020-04-01 19:30:49 +00:00
disa.callback.loopback.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
disa.callback.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
disa.lua Fix the caller ID information for DISA 2022-01-22 14:07:04 -07:00
disa.plus.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
do_not_disturb.lua [follow me] Persist follow me enabled when enabling DND or call forward (#6076) 2021-10-28 09:44:27 -06:00
dtmf_handler.lua Update dtmf_handler.lua 2021-03-17 19:19:55 -04:00
eavesdrop.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
email.lua email.lua fix execution from api (#6408) 2022-06-13 16:06:21 -06:00
extension_queue.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
fax_retry.lua Add variables to fax send email templates (#6326) 2022-03-21 09:32:35 -06:00
fifo_member.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
follow_me.lua [follow me] *21 don't null dial string (#6051) 2021-09-18 10:28:19 -06:00
ha_monitor.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
intercept.lua Get the call center channel variables and set in the intercepted call. 2022-07-11 13:46:25 -06:00
intercept_group.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
ivr_menu.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
mkdir.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
monitor.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
page.lua Update page.lua with more options check_destination_status, auto answer and alert info. 2022-06-11 00:58:00 -06:00
park.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
park_monitor.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
pin_number.lua pin_number.lua get pin number description (#5322) 2020-06-26 10:07:07 -06:00
recordings.lua When re-record option is used don't request the recoding_id again. 2022-01-25 17:20:23 -07:00
roku.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
service Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
streamfile.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
transfer2.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
wakeup.lua Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00