From ce78189a805b545dfdb503fb592d6b4194725131 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 5 Jan 2016 13:19:02 -0700 Subject: [PATCH 01/16] Fix the FAX retry email. --- resources/install/scripts/fax_retry.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/install/scripts/fax_retry.lua b/resources/install/scripts/fax_retry.lua index a6f2ce6fad..9c136f93c3 100644 --- a/resources/install/scripts/fax_retry.lua +++ b/resources/install/scripts/fax_retry.lua @@ -457,8 +457,8 @@ freeswitch.consoleLog("INFO", "[FAX] RETRY_STATS FAILURE BAD NUMBER: GATEWAY[".. fax_uri .."]"); email_message_fail = email_message_fail.."We tried sending, but the number entered was not a working phone number " email_address = email_address:gsub("\\,", ","); - freeswitch.email("", - "", + freeswitch.email(email_address, + email_address, "To: "..email_address.."\nFrom: "..from_address.."\nSubject: Fax to: "..number_dialed.." was INVALID", email_message_fail , fax_file @@ -470,8 +470,8 @@ freeswitch.consoleLog("INFO", "[FAX] RETRY STATS FAILURE BUSY: GATEWAY[".. fax_uri .."], BUSY NUMBER"); email_message_fail = email_message_fail.." We tried sending, but the call was busy "..fax_busy_attempts.." of those times." email_address = email_address:gsub("\\,", ","); - freeswitch.email("", - "", + freeswitch.email(email_address, + email_address, "To: "..email_address.."\nFrom: "..from_address.."\nSubject: Fax to: "..number_dialed.." was BUSY", email_message_fail , fax_file @@ -485,8 +485,8 @@ email_message_fail = email_message_fail.." We tried sending 5 times ways. You may also want to know that the call was busy "..fax_busy_attempts.." of those times." email_address = email_address:gsub("\\,", ","); - freeswitch.email("", - "", + freeswitch.email(email_address, + email_address, "To: "..email_address.."\nFrom: "..from_address.."\nSubject: Fax to: "..number_dialed.." FAILED", email_message_fail , fax_file @@ -521,8 +521,8 @@ freeswitch.consoleLog("INFO", "[FAX] RETRY STATS SUCCESS: GATEWAY[".. fax_uri .."] VARS[" .. fax_trial .. "]"); email_address = email_address:gsub("\\,", ","); - freeswitch.email("", - "", + freeswitch.email(email_address, + email_address, "To: "..email_address.."\nFrom: "..from_address.."\nSubject: Fax to: "..number_dialed.." SENT", email_message_success , fax_file From b1839f08e71e33fa70d568bf089876ad93d2f366 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 8 Jan 2016 14:05:59 -0700 Subject: [PATCH 02/16] Add a dialplan for mod_cidlookup. --- .../resources/switch/conf/dialplan/980_cidlookup.xml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml diff --git a/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml b/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml new file mode 100644 index 0000000000..73b86ce7d5 --- /dev/null +++ b/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file From 728e33bd685b0d4bf37bad395529ecda7407390b Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 8 Jan 2016 14:13:00 -0700 Subject: [PATCH 03/16] Update the name of the dialplan. --- app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml b/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml index 73b86ce7d5..e0e54da53f 100644 --- a/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml +++ b/app/dialplan/resources/switch/conf/dialplan/980_cidlookup.xml @@ -1,5 +1,5 @@ - + From 86b0e88d161911db4f50ef56cfa8f719ef5b9b51 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 8 Jan 2016 18:15:45 -0700 Subject: [PATCH 04/16] Fix the PostgreSQL query in cidlookup.conf.xml. --- .../conf/autoload_configs/cidlookup.conf.xml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/resources/templates/conf/autoload_configs/cidlookup.conf.xml b/resources/templates/conf/autoload_configs/cidlookup.conf.xml index 3dfc1aae4c..ff3ac582a1 100644 --- a/resources/templates/conf/autoload_configs/cidlookup.conf.xml +++ b/resources/templates/conf/autoload_configs/cidlookup.conf.xml @@ -1,15 +1,11 @@ - - - - - + - + --> @@ -21,11 +17,12 @@ +