Hi,
I found out an issue (bug) in the live attendant code.
the StringUtils.stripStart function is used to strip the feature prefix.
if (dialedNumber.startsWith(m_enablePrefix)) {
dialedNumber = StringUtils.stripStart(dialedNumber, m_enablePrefix);
enable = true;
} else if (dialedNumber.startsWith(m_disablePrefix)) {
dialedNumber = StringUtils.stripStart(dialedNumber, m_disablePrefix);
enable = false;
}
This function leads to wrong output when the prefix includes the first number of the Auto Attendant extension.
Consider the following example:
code prefix: *67
Auto Attendant extension: 6711
PIN 123
the "dialedNumber" is "*676711123" before applying stripStart function whose output is "11123" instead of the expected "6711123"...
I think that the stripStart function is not a good choice to strip the prefix, you could simply use the StingUtils
substring function instead to fix the issue.
Can anyone fix it in the next releases? I'm not a developer and i don't know developer tools so I ask your help to fix it.
Thank you.
Marco.