This commit is contained in:
Jim Kusznir
2017-04-06 21:23:03 -07:00
33 changed files with 103 additions and 66 deletions

View File

@@ -132,10 +132,10 @@ local log = require "resources.functions.log".ring_group
--set the caller id
if (session:ready()) then
if (string.len(ring_group_cid_name_prefix) > 0) then
session:execute("set", "effective_caller_id_name="..ring_group_cid_name_prefix.."#"..caller_id_name);
session:execute("export", "effective_caller_id_name="..ring_group_cid_name_prefix.."#"..caller_id_name);
end
if (string.len(ring_group_cid_number_prefix) > 0) then
session:execute("set", "effective_caller_id_number="..ring_group_cid_number_prefix..caller_id_number);
session:execute("export", "effective_caller_id_number="..ring_group_cid_number_prefix..caller_id_number);
end
end

View File

@@ -423,7 +423,7 @@
if (storage_type == "base64") then
table.insert(sql, "message_base64, ");
end
if (transcribe_enabled == "true") then
if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then
table.insert(sql, "message_transcription, ");
end
table.insert(sql, "message_length ");
@@ -441,7 +441,7 @@
if (storage_type == "base64") then
table.insert(sql, ":message_base64, ");
end
if (transcribe_enabled == "true") then
if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then
table.insert(sql, ":transcription, ");
end
table.insert(sql, ":message_length ");

View File

@@ -293,7 +293,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -139,7 +139,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -293,7 +293,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -140,7 +140,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -139,7 +139,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -140,7 +140,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -287,7 +287,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -125,7 +125,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -125,7 +125,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Specify whether to encrypt the SIP messages; 0-Disabled, 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -291,7 +291,7 @@ account.1.codec.12.rtpmap = 3
## Audio Advanced ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

View File

@@ -116,7 +116,7 @@ account.1.session_timer.refresher =
account.1.enable_user_equal_phone =
#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =
account.1.srtp_encryption = {$yealink_srtp_encryption}
#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =