Changeset 3871

Show
Ignore:
Timestamp:
03/16/07 13:06:43 (6 years ago)
Author:
p_lindheimer
Message:

Merged revisions 3870 via svnmerge from
https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/branches/2.2

........

r3870 | p_lindheimer | 2007-03-16 10:03:22 -0700 (Fri, 16 Mar 2007) | 1 line


warn users when setting the 'r' option in the outbound dial command options. We should probably do something atupgrade time to detect past systems but for now this is a step in the right direction

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk

    • Property svnmerge-integrated changed from /freepbx/branches/2.2:1-3724,3726-3727,3729-3732,3734-3735,3737-3738,3740-3741,3743-3745,3747,3752-3753,3755-3793,3797-3858 to /freepbx/branches/2.2:1-3724,3726-3727,3729-3732,3734-3735,3737-3738,3740-3741,3743-3745,3747,3752-3753,3755-3793,3797-3858,3870
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/page.general.php

    r3626 r3871  
    9595<?php echo _("t: Allow the called user to transfer the call by hitting #")?><br> 
    9696<?php echo _("T: Allow the calling user to transfer the call by hitting #")?><br> 
    97 <?php echo _("r: Generate a ringing tone for the calling party")?><br> 
    9897<?php echo _("w: Allow the called user to start recording after pressing *1 (Asterisk v1.2)")?><br> 
    9998<?php echo _("W: Allow the calling user to start recording after pressing *1 (Asterisk v1.2)")?><br> 
     99<?php echo _("r: You SHOULD NOT use this option on outbound trunks")?><br> 
    100100  </span></a> 
    101101  <input type="text" size="2" name="TRUNK_OPTIONS" value="<?php  echo htmlspecialchars($TRUNK_OPTIONS)?>"/> 
     
    330330var theForm = document.general; 
    331331 
     332function hasRing (s) { 
     333  if (s.indexOf('r') >= 0) { 
     334    return true; 
     335  } else { 
     336    return false; 
     337  } 
     338} 
     339 
     340function warnConfirm (theField, s) { 
     341    theField.focus(); 
     342    theField.select(); 
     343    return confirm(s); 
     344} 
     345 
    332346function general_onsubmit() { 
    333347  var msgInvalidSeconds = "<?php echo _('Please enter a valid Number of Seconds'); ?>"; 
    334348  var msgInvalidDefaultFaxEmail = "<?php echo _('Please enter a valid Fax Email'); ?>"; 
     349  var msgRingOptionOutboundTrunk = "<?php echo _('You have selected the \'r\' option for your trunks. This is highly discouraged and will create problems with calls on many PRI, VoIP, ISDN and other trunks that are capable of signalling. Asterisk will generate a ringing tone until the signalling indicates the line is answered. This will result in some external IVRs being inaccessible and other strange problems.'); ?>"; 
    335350 
    336351  defaultEmptyOK = false; 
     
    346361  if (!isEmail(theForm.FAX_RX_EMAIL.value)) 
    347362    return warnInvalid(theForm.FAX_RX_EMAIL, msgInvalidDefaultFaxEmail); 
     363 
     364  if (hasRing(theForm.TRUNK_OPTIONS.value)) 
     365    return warnConfirm(theForm.TRUNK_OPTIONS, msgRingOptionOutboundTrunk); 
    348366   
    349367  return true;