Changeset 1888

Show
Ignore:
Timestamp:
05/07/06 11:37:51 (7 years ago)
Author:
mheydon1973
Message:

Ticket #805 (Bugs) -- In Brasil, the DID for Inbound Routing is "some letters" and FREEBPX is Too Restrictive for us.

Form validation will now just warn if non standard DID is used, allowing user to override

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/page.did.php

    r1875 r1888  
    228228  var msgInvalidPause = "<?php echo _('Please enter a valid number for Pause after answer'); ?>"; 
    229229  var msgConfirmDIDCIDBlank = "<?php echo _('Leaving the DID Number AND the Caller ID Number empty will match all incoming calls received not routed using any other defined Incoming Route.\n\nAre you sure?'); ?>"; 
    230  
     230  var msgConfirmDIDNonStd = "<?php echo _('DID information is normally just an incoming telephone number or for advanced users, a valid Asterisk Dial Pattern\n\nYou have entered a non standard DID pattern.\n\nAre you sure this is correct?'); ?>"; 
     231   
    231232  setDestinations(theForm,1); 
    232233   
    233234  defaultEmptyOK = true; 
    234   if (!isDialpattern(theForm.extension.value)) 
    235     return warnInvalid(theForm.extension, msgInvalidDIDNumb); 
     235  if (!isDialpattern(theForm.extension.value)) { 
     236    // warn the user that DID is normally numbers 
     237    if (!confirm(msgConfirmDIDNonStd)) 
     238      return false; 
     239  } 
    236240   
    237241  if (!isDialpattern(theForm.cidnum.value))