fixed fax destination with * or + in number
This commit is contained in:
@@ -500,7 +500,8 @@ function outbound_route_to_bridge ($domain_uuid, $destination_number) {
|
|||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$destination_number = trim($destination_number);
|
$destination_number = trim($destination_number);
|
||||||
if (is_numeric($destination_number)) {
|
preg_match('/^[\*\+0-9]*$/', $destination_number, $matches, PREG_OFFSET_CAPTURE);
|
||||||
|
if (count($matches) > 0) {
|
||||||
//not found, continue to process the function
|
//not found, continue to process the function
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1442,4 +1443,4 @@ if (!function_exists('save_switch_xml')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user