Skip to content

Commit

Permalink
Merge branch 'release/13.0' into release/14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jun 5, 2018
2 parents 6142719 + f32d9ce commit 4f70b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/js/did/did.js
Expand Up @@ -9,6 +9,9 @@ $("[name='privacyman']").change(function(){
}
});
$('.fpbx-submit').submit(function() {
if (!validateDestinations($(this)[0], 1, true)){
return false;
}
if(!($('#extension').val().match(/^\+?[0-9a-dA-D#\*]+$/)) && ($('#extension').val().trim() != '') && ($('#extension').val().indexOf('_') !== 0)){
return warnInvalid($('#extension'), _("DID can only be numbers, A-D, * and #. DID may also start with a +. Patterns must begin with an _"));
}
Expand Down
2 changes: 1 addition & 1 deletion functions.inc.php
Expand Up @@ -1475,7 +1475,7 @@ function core_do_get_config($engine) {
$catchall_context='ext-did-catchall';
foreach($didlist as $item) {
if (trim($item['destination']) == '') {
continue;
throw new \Exception("Inbound Route {$item['extension']}/{$item['cidnum']} does not have a valid destination");
}
$exten = trim($item['extension']);
$cidnum = trim($item['cidnum']);
Expand Down

0 comments on commit 4f70b67

Please sign in to comment.