diff --git a/resources/switch.php b/resources/switch.php index 096b5d4921..a37727a9d6 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -501,7 +501,8 @@ function outbound_route_to_bridge ($domain_uuid, $destination_number) { global $db; $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 } else { @@ -1443,4 +1444,4 @@ if (!function_exists('save_switch_xml')) { } } -?> \ No newline at end of file +?>