From 569acf0205de67877f2fa68f843b90883ddab70b Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 6 May 2013 20:30:51 +0000 Subject: [PATCH] It was my intent with the introduction of dialplan -> destinations to allow non numeric destination numbers this change enables non numeric destination numbers to be used with inbound routes. --- app/dialplan_inbound/app_languages.php | 108 ++++++++++++------ app/dialplan_inbound/dialplan_inbound_add.php | 5 +- 2 files changed, 71 insertions(+), 42 deletions(-) diff --git a/app/dialplan_inbound/app_languages.php b/app/dialplan_inbound/app_languages.php index 247b3f6a0b..5ff743dbf5 100644 --- a/app/dialplan_inbound/app_languages.php +++ b/app/dialplan_inbound/app_languages.php @@ -1,69 +1,101 @@  \ No newline at end of file diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index f6b11fc28c..5892602817 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2013 the Initial Developer. All Rights Reserved. Contributor(s): @@ -102,9 +102,6 @@ foreach($text as $key => $value) { $condition_expression_1 = str_replace("+", "\+", $condition_expression_1); $condition_expression_1 = '^'.$condition_expression_1.'$'; } - else { - $msg .= "".$text['label-destination-must-be-num']."
\n"; - } } $dialplan_enabled = check_str($_POST["dialplan_enabled"]); $dialplan_description = check_str($_POST["dialplan_description"]);