Skip to content

Commit

Permalink
Add the server hostname.
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane authored Sep 2, 2020
1 parent b476f17 commit 4322d6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ if (email_method == 'queue') then

api = freeswitch.API();
local email_queue_uuid = api:executeString("create_uuid");
local hostname = api:executeString("hostname");

local sql = "insert into v_email_queue ( ";
sql = sql .. " email_queue_uuid, ";
sql = sql .. " domain_uuid, ";
sql = sql .. " hostname, ";
sql = sql .. " email_date, ";
sql = sql .. " email_from, ";
sql = sql .. " email_to, ";
Expand All @@ -68,6 +70,7 @@ if (email_method == 'queue') then
sql = sql .. "values ( ";
sql = sql .. " :email_queue_uuid, ";
sql = sql .. " :domain_uuid, ";
sql = sql .. " :hostname, ";
sql = sql .. " now(), ";
sql = sql .. " :email_from, ";
sql = sql .. " :email_to, ";
Expand All @@ -78,6 +81,7 @@ if (email_method == 'queue') then
local params = {
email_queue_uuid = email_queue_uuid;
domain_uuid = domain_uuid;
hostname = hostname;
email_from = email_from;
email_to = email_address;
email_subject = email_subject;
Expand Down

0 comments on commit 4322d6d

Please sign in to comment.