Changeset 3871
- Timestamp:
- 03/16/07 13:06:43 (6 years ago)
- Files:
-
- freepbx/trunk (modified) (1 prop)
- freepbx/trunk/amp_conf/htdocs/admin/modules/core/page.general.php (modified) (3 diffs)
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 95 95 <?php echo _("t: Allow the called user to transfer the call by hitting #")?><br> 96 96 <?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>98 97 <?php echo _("w: Allow the called user to start recording after pressing *1 (Asterisk v1.2)")?><br> 99 98 <?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> 100 100 </span></a> 101 101 <input type="text" size="2" name="TRUNK_OPTIONS" value="<?php echo htmlspecialchars($TRUNK_OPTIONS)?>"/> … … 330 330 var theForm = document.general; 331 331 332 function hasRing (s) { 333 if (s.indexOf('r') >= 0) { 334 return true; 335 } else { 336 return false; 337 } 338 } 339 340 function warnConfirm (theField, s) { 341 theField.focus(); 342 theField.select(); 343 return confirm(s); 344 } 345 332 346 function general_onsubmit() { 333 347 var msgInvalidSeconds = "<?php echo _('Please enter a valid Number of Seconds'); ?>"; 334 348 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.'); ?>"; 335 350 336 351 defaultEmptyOK = false; … … 346 361 if (!isEmail(theForm.FAX_RX_EMAIL.value)) 347 362 return warnInvalid(theForm.FAX_RX_EMAIL, msgInvalidDefaultFaxEmail); 363 364 if (hasRing(theForm.TRUNK_OPTIONS.value)) 365 return warnConfirm(theForm.TRUNK_OPTIONS, msgRingOptionOutboundTrunk); 348 366 349 367 return true;
