| | 22 | $privacyman = isset($_REQUEST['privacyman'])?$_REQUEST['privacyman']:'0'; |
|---|
| | 23 | $faxexten = isset($_REQUEST['faxexten'])?$_REQUEST['faxexten']:null; |
|---|
| | 24 | $faxemail = isset($_REQUEST['faxemail'])?$_REQUEST['faxemail']:null; |
|---|
| | 25 | $answer = isset($_REQUEST['answer'])?$_REQUEST['answer']:'0'; |
|---|
| | 26 | $alertinfo = isset($_REQUEST['alertinfo'])?$_REQUEST['alertinfo']:''; |
|---|
| | 27 | $mohclass = isset($_REQUEST['mohclass'])?$_REQUEST['mohclass']:'default'; |
|---|
| | 28 | $grppre = isset($_REQUEST['grppre'])?$_REQUEST['grppre']:''; |
|---|
| | 29 | $wait = isset($_REQUEST['wait'])&&$_REQUEST['wait']?$_REQUEST['wait']:''; |
|---|
| | 30 | $delay_answer = isset($_REQUEST['delay_answer'])&&$_REQUEST['delay_answer']?$_REQUEST['delay_answer']:''; |
|---|
| | 31 | |
|---|
| | 186 | |
|---|
| | 187 | <tr><td colspan="2"><h5><?php echo _("Options")?><hr></h5></td></tr> |
|---|
| | 188 | <tr> |
|---|
| | 189 | <td><a href="#" class="info"><?php echo _("Alert Info")?><span><?php echo _('ALERT_INFO can be used for distinctive ring with SIP devices.')?></span></a>:</td> |
|---|
| | 190 | <td><input type="text" name="alertinfo" size="10" value="<?php echo $alertinfo ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| | 191 | </tr> |
|---|
| | 192 | <tr> |
|---|
| | 193 | <td><a href="#" class="info"><?php echo _("CID name prefix")?><span><?php echo _('You can optionally prefix the Caller ID name. ie: If you prefix with "Sales:", a call from John Doe would display as "Sales:John Doe" on the extensions that ring.')?></span></a>:</td> |
|---|
| | 194 | <td><input type="text" name="grppre" size="10" value="<?php echo $grppre ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| | 195 | </tr> |
|---|
| | 196 | <?php if (function_exists('music_list')) { ?> |
|---|
| | 197 | <tr> |
|---|
| | 198 | <td><a href="#" class="info"><?php echo _("Music On Hold")?><span><?php echo _("Set the MoH class that will be used for calls that come in on this route. For example, choose a type appropriate for routes coming in from a country which may have announcements in their language.")?></span></a>:</td> |
|---|
| | 199 | <td> |
|---|
| | 200 | <select name="mohclass" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 201 | <?php |
|---|
| | 202 | $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); |
|---|
| | 203 | $cur = (isset($mohclass) && $mohclass != "" ? $mohclass : 'default'); |
|---|
| | 204 | echo '<option value="none">'._("No Music")."</option>"; |
|---|
| | 205 | if (isset($tresults[0])) { |
|---|
| | 206 | foreach ($tresults as $tresult) { |
|---|
| | 207 | echo '<option value="'.$tresult.'"'.($tresult == $cur ? ' SELECTED' : '').'>'.$tresult."</option>\n"; |
|---|
| | 208 | } |
|---|
| | 209 | } |
|---|
| | 210 | ?> |
|---|
| | 211 | </select> |
|---|
| | 212 | </td> |
|---|
| | 213 | </tr> |
|---|
| | 214 | <?php } ?> |
|---|
| | 215 | <tr> |
|---|
| | 216 | <td><a href="#" class="info"><?php echo _("Signal RINGING")?><span><?php echo _('Some devices or providers require RINGING to be sent before ANSWER. You\'ll notice this happening if you can send calls directly to a phone, but if you send it to an IVR, it won\'t connect the call.')?></span></a>:</td> |
|---|
| | 217 | <td><input type="checkbox" name="ringing" value="CHECKED" <?php echo $ringing ?> tabindex="<?php echo ++$tabindex;?>"/></td> |
|---|
| | 218 | </tr> |
|---|
| | 219 | <tr> |
|---|
| | 220 | <td><a href="#" class="info"><?php echo _("Pause Before Answer")?><span><?php echo _("An optional delay to wait before processing this route. Setting this value will delay the channel from answering the call. This may be handy if external fax equipment or security systems are installed in parallel and you would like them to be able to seize the line.")?></span></a>:</td> |
|---|
| | 221 | <td><input type="text" name="delay_answer" size="3" value="<?php echo ($delay_answer != '0')?$delay_answer:'' ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| | 222 | </tr> |
|---|
| | 223 | |
|---|
| | 224 | <tr><td colspan="2"><h5><?php echo _("Privacy")?><hr></h5></td></tr> |
|---|
| | 225 | |
|---|
| | 226 | <tr> |
|---|
| | 227 | <td><a href="#" class="info"><?php echo _("Privacy Manager")?><span><?php echo _('If no Caller ID is sent, Privacy Manager will asks the caller to enter their 10 digit phone number. The caller is given 3 attempts. The number of digits and attempts can be defined in privacy.conf. If a user has Call Screening enabled, the incoming caller will be asked to enter their CallerId here if enabled, and then to say their name once determined that the called user requires it.')?></span></a>:</td> |
|---|
| | 228 | <td> |
|---|
| | 229 | <select name="privacyman" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 230 | <option value="0" <?php echo ($privacyman == '0' ? 'SELECTED' : '')?>><?php echo _("No")?> |
|---|
| | 231 | <option value="1" <?php echo ($privacyman == '1' ? 'SELECTED' : '')?>><?php echo _("Yes")?> |
|---|
| | 232 | </select> |
|---|
| | 233 | </td> |
|---|
| | 234 | </tr> |
|---|
| | 235 | |
|---|
| 233 | | <td><input type="text" name="wait" size="3" value="<?php echo isset($wait)?$wait:'' ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 234 | | </tr> |
|---|
| 235 | | <?php |
|---|
| 236 | | if (!isset($privacyman)) |
|---|
| 237 | | $privacyman = '0'; |
|---|
| 238 | | ?> |
|---|
| 239 | | |
|---|
| 240 | | <tr><td colspan="2"><h5><?php echo _("Privacy")?><hr></h5></td></tr> |
|---|
| 241 | | <tr> |
|---|
| 242 | | <td><a href="#" class="info"><?php echo _("Privacy Manager")?><span><?php echo _('If no Caller ID is sent, Privacy Manager will asks the caller to enter their 10 digit phone number. The caller is given 3 attempts. The number of digits and attempts can be defined in privacy.conf. If a user has Call Screening enabled, the incoming caller will be asked to enter their CallerId here if enabled, and then to say their name once determined that the called user requires it.')?></span></a>:</td> |
|---|
| 243 | | <td> |
|---|
| 244 | | <select name="privacyman" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 245 | | <option value="0" <?php echo ($privacyman == '0' ? 'SELECTED' : '')?>><?php echo _("No")?> |
|---|
| 246 | | <option value="1" <?php echo ($privacyman == '1' ? 'SELECTED' : '')?>><?php echo _("Yes")?> |
|---|
| 247 | | </select> |
|---|
| 248 | | </td> |
|---|
| | 279 | <td><input type="text" name="wait" size="3" value="<?php echo ($wait != '0')?$wait:'' ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 251 | | <tr><td colspan="2"><h5><?php echo _("Options")?><hr></h5></td></tr> |
|---|
| 252 | | <tr> |
|---|
| 253 | | <td><a href="#" class="info"><?php echo _("Alert Info")?><span><?php echo _('ALERT_INFO can be used for distinctive ring with SIP devices.')?></span></a>:</td> |
|---|
| 254 | | <td><input type="text" name="alertinfo" size="10" value="<?php echo ($alertinfo)?$alertinfo:'' ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 255 | | </tr> |
|---|
| 256 | | <tr> |
|---|
| 257 | | <td><a href="#" class="info"><?php echo _("CID name prefix")?>:<span><?php echo _('You can optionally prefix the Caller ID name. ie: If you prefix with "Sales:", a call from John Doe would display as "Sales:John Doe" on the extensions that ring.')?></span></a>:</td> |
|---|
| 258 | | <td><input type="text" name="grppre" size="10" value="<?php echo ($grppre)?$grppre:'' ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 259 | | </tr> |
|---|
| 260 | | <?php if (function_exists('music_list')) { ?> |
|---|
| 261 | | <tr> |
|---|
| 262 | | <td><a href="#" class="info"><?php echo _("Music On Hold?")?><span><?php echo _("Set the MoH class that will be used for calls that come in on this route. For example, choose a type appropriate for routes coming in from a country which may have announcements in their language.")?></span></a></td> |
|---|
| 263 | | <td> |
|---|
| 264 | | <select name="mohclass" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 265 | | <?php |
|---|
| 266 | | $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); |
|---|
| 267 | | $cur = (isset($mohclass) && $mohclass != "" ? $mohclass : 'default'); |
|---|
| 268 | | echo '<option value="none">'._("No Music")."</option>"; |
|---|
| 269 | | if (isset($tresults[0])) { |
|---|
| 270 | | foreach ($tresults as $tresult) { |
|---|
| 271 | | echo '<option value="'.$tresult.'"'.($tresult == $cur ? ' SELECTED' : '').'>'.$tresult."</option>\n"; |
|---|
| 272 | | } |
|---|
| 273 | | } |
|---|
| 274 | | ?> |
|---|
| 275 | | </select> |
|---|
| 276 | | </td> |
|---|
| 277 | | </tr> |
|---|
| 278 | | <?php } ?> |
|---|
| 279 | | <tr> |
|---|
| 280 | | <td><a href="#" class="info"><?php echo _("Signal RINGING")?><span><?php echo _('Some devices or providers require RINGING to be sent before ANSWER. You\'ll notice this happening if you can send calls directly to a phone, but if you send it to an IVR, it won\'t connect the call.')?></span></a>:</td> |
|---|
| 281 | | <td><input type="checkbox" name="ringing" value="CHECKED" <?php echo $ringing ?> tabindex="<?php echo ++$tabindex;?>"/></td> |
|---|
| 282 | | </tr> |
|---|