Changeset 8644
- Timestamp:
- 01/20/10 14:03:07 (3 years ago)
- Files:
-
- modules/branches/2.7/core/functions.inc.php (modified) (2 diffs)
- modules/branches/2.7/outroutemsg/page.outroutemsg.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7/core/functions.inc.php
r8642 r8644 1808 1808 $ext->add($context, $exten, '', new ext_noop('Dial failed due to trunk reporting Address Incomplete - giving up')); 1809 1809 $ext->add($context, $exten, '', new ext_progress()); 1810 switch ($trunkreportmsg_ids[' unalloc_msg_id']) {1810 switch ($trunkreportmsg_ids['invalidnmbr_msg_id']) { 1811 1811 case DEFAULT_MSG: 1812 1812 $ext->add($context, $exten, '', new ext_playback('ss-noservice,noanswer')); … … 1816 1816 break; 1817 1817 default: 1818 $message = recordings_get_file($trunkreportmsg_ids[' unalloc_msg_id']);1818 $message = recordings_get_file($trunkreportmsg_ids['invalidnmbr_msg_id']); 1819 1819 $message = ($message != "") ? $message : "ss-noservice"; 1820 1820 $ext->add($context, $exten, '', new ext_playback("$message, noanswer")); modules/branches/2.7/outroutemsg/page.outroutemsg.php
r8643 r8644 30 30 $emergency_msg_id = isset($_REQUEST['emergency_msg_id']) ? trim($_REQUEST['emergency_msg_id']) : DEFAULT_MSG; 31 31 $no_answer_msg_id = isset($_REQUEST['no_answer_msg_id']) ? trim($_REQUEST['no_answer_msg_id']) : DEFAULT_MSG; 32 $unalloc_msg_id = isset($_REQUEST['unalloc_msg_id']) ? trim($_REQUEST['unalloc_msg_id']) : DEFAULT_MSG; 33 $no_transit_msg_id = isset($_REQUEST['no_transit_msg_id']) ? trim($_REQUEST['no_transit_msg_id']) : DEFAULT_MSG; 34 $no_route_msg_id = isset($_REQUEST['no_route_msg_id']) ? trim($_REQUEST['no_route_msg_id']) : DEFAULT_MSG; 35 $ch_unaccept_msg_id = isset($_REQUEST['ch_unaccept_msg_id']) ? trim($_REQUEST['ch_unaccept_msg_id']) : DEFAULT_MSG; 36 $call_reject_msg_id = isset($_REQUEST['call_reject_msg_id']) ? trim($_REQUEST['call_reject_msg_id']) : DEFAULT_MSG; 37 $nmbr_chngd_msg_id = isset($_REQUEST['nmbr_chngd_msg_id']) ? trim($_REQUEST['nmbr_chngd_msg_id']) : DEFAULT_MSG; 32 $invalidnmbr_msg_id = isset($_REQUEST['invalidnmbr_msg_id']) ? trim($_REQUEST['invalidnmbr_msg_id']) : DEFAULT_MSG; 33 $unalloc_msg_id = isset($_REQUEST['unalloc_msg_id']) ? trim($_REQUEST['unalloc_msg_id']) : DEFAULT_MSG; 38 34 39 35 if ($action == 'submit') { 40 outroutemsg_add($default_msg_id, $intracompany_msg_id, $emergency_msg_id, $no_answer_msg_id, $ unalloc_msg_id, $no_transit_msg_id, $no_route_msg_id, $ch_unaccept_msg_id, $call_reject_msg_id, $nmbr_chngd_msg_id);36 outroutemsg_add($default_msg_id, $intracompany_msg_id, $emergency_msg_id, $no_answer_msg_id, $invalidnmbr_msg_id, $unalloc_msg_id); 41 37 needreload(); 42 38 } … … 55 51 $emergency_msg_id = $outroutemsg_settings['emergency_msg_id']; 56 52 $no_answer_msg_id = $outroutemsg_settings['no_answer_msg_id']; 53 $invalidnmbr_msg_id = $outroutemsg_settings['invalidnmbr_msg_id']; 57 54 $unalloc_msg_id = $outroutemsg_settings['unalloc_msg_id']; 58 $no_transit_msg_id = $outroutemsg_settings['no_transit_msg_id'];59 $no_route_msg_id = $outroutemsg_settings['no_route_msg_id'];60 $ch_unaccept_msg_id = $outroutemsg_settings['ch_unaccept_msg_id'];61 $call_reject_msg_id = $outroutemsg_settings['call_reject_msg_id'];62 $nmbr_chngd_msg_id = $outroutemsg_settings['nmbr_chngd_msg_id'];63 55 } 64 56 … … 147 139 <td><a href="#" class="info"><?php echo _("Message or Tone")?><span><?php echo _("Message or tone to be played if trunk reports Number or Address Incomplete. Usually this means that the number you have dialed is to short. Default message is:<br>\"The number you have dialed is not in service. Please check the number and try again.\"<br>Hangupcause is 28")?></span></a></td> 148 140 <td align=right> 149 <select name=" unalloc_msg_id" id="unalloc_msg_id" tabindex="<?php echo ++$tabindex;?>">141 <select name="invalidnmbr_msg_id" id="invalidnmbr_msg_id" tabindex="<?php echo ++$tabindex;?>"> 150 142 <?php 151 143 echo '<option value="'.DEFAULT_MSG.'"'.(DEFAULT_MSG == $invalidnmbr_msg_id ? ' SELECTED' : '').'>'._("Default Message")."</option>\n"; … … 165 157 <td><a href="#" class="info"><?php echo _("Message or Tone")?><span><?php echo _("Message or tone to be played if trunk reports Unallocated Number. Usually this means that the number dialed does not exist. Default message is:<br>\"The number you have dialed is not in service. Please check the number and try again.\"<br>Hangupcause is 1")?></span></a></td> 166 158 <td align=right> 167 <select name=" no_transit_msg_id" id="no_transit_msg_id" tabindex="<?php echo ++$tabindex;?>">159 <select name="unalloc_msg_id" id="unalloc_msg_id" tabindex="<?php echo ++$tabindex;?>"> 168 160 <?php 169 161 echo '<option value="'.DEFAULT_MSG.'"'.(DEFAULT_MSG == $unalloc_msg_id ? ' SELECTED' : '').'>'._("Default Message")."</option>\n";
