Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMS Truncate option doesn't appear to be working #1005

Open
matmartell opened this issue Nov 4, 2024 · 0 comments
Open

SMS Truncate option doesn't appear to be working #1005

matmartell opened this issue Nov 4, 2024 · 0 comments
Labels
Milestone

Comments

@matmartell
Copy link

I am using version 1.7.0 and encountering an issue with the SMS number truncate option. Despite enabling this setting, it doesn't seem to trim the SMS number as expected.

Our system is connected to an LDAP database where mobile numbers are stored in the 'mobile' attribute in the format 1-555-555-5555. The relevant section of my configuration is as follows:

$smsmailto = "{sms_attribute}@txt.provider.com";
$sms_sanitize_number = true;
$sms_truncate_number = true;
$sms_truncate_number_length = 10;

sms_sanitize_number works as expected, removing hyphens (-) from the numbers. However, sms_truncate_number does not trim the number length to 10 digits. Instead of sending emails to [email protected], it sends them to [email protected], causing delivery to fail. Adjusting sms_truncate_number_length to other values (e.g., 9) does not seem to impact the behavior.

Modifying the LDAP mobile number format is not feasible, as it’s used consistently for email signatures.

Any insights or guidance on how to resolve this issue would be greatly appreciated. Thank you!

@coudot coudot added the bug label Nov 4, 2024
@coudot coudot added this to the 1.7.2 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants