Add period and dash to Click 2 Call (#6425)

Source can be not only numbers but letters, dots, and -. They are still valid:

name.lastname,  or name-lastname.
This commit is contained in:
Luis Daniel Lucio Quiroz 2022-08-01 10:45:21 -04:00 committed by GitHub
parent 3ec9cdaba1
commit 976d983174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
$context = $_SESSION['domain_name'];
//clean up variable values
$src = str_replace(array('.','(',')','-',' '), '', $src);
$src = str_replace(array('(',')',' '), '', $src);
$dest = (strpbrk($dest, '@') != FALSE) ? str_replace(array('(',')',' '), '', $dest) : str_replace(array('.','(',')','-',' '), '', $dest); //don't strip periods or dashes in sip-uri calls, only phone numbers
//adjust variable values