mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
committed by
GitHub
parent
3ec9cdaba1
commit
976d983174
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user