Update index.lua for E-164 Caller ID (#2047)

When saving Caller ID numbers which are in E-164 format these may include a '/' prefix used to escape '+'. This causes the '/' to be saved with the number which prevents the call from being returned.

The above fixes the issue by removing '/' prefix from the start of the Caller ID number before saving the voicemail message.
This commit is contained in:
SJS87
2016-11-11 16:48:21 +00:00
committed by FusionPBX
parent 7f58a05e0c
commit 56305f25e9

View File

@@ -69,6 +69,9 @@
destination_number = session:getVariable("destination_number");
caller_id_name = session:getVariable("caller_id_name");
caller_id_number = session:getVariable("caller_id_number");
if (string.sub(caller_id_number, 1, 1) == "/") then
caller_id_number = string.sub(caller_id_number, 2, -1);
end
voicemail_greeting_number = session:getVariable("voicemail_greeting_number");
skip_instructions = session:getVariable("skip_instructions");
skip_greeting = session:getVariable("skip_greeting");