From 25a05e6d6bbc469616b17d3e58655cc1bd4963c3 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 21 Jan 2013 22:49:34 +0000 Subject: [PATCH] When adding an inbound route escape the + with \+. --- app/dialplan_inbound/dialplan_inbound_add.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 62d3e90f34..f6b11fc28c 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -98,7 +98,8 @@ foreach($text as $key => $value) { else { if (strlen($condition_field_1) == 0) { $condition_field_1 = "destination_number"; } if (is_numeric($condition_expression_1)) { - //the number is numeric + //the number is numeric + $condition_expression_1 = str_replace("+", "\+", $condition_expression_1); $condition_expression_1 = '^'.$condition_expression_1.'$'; } else {