| 80 | | $sip_settings['video_codecs'] = $video_codecs; |
|---|
| 81 | | $sip_settings['videosupport'] = isset($_POST['videosupport']) ? $_POST['videosupport'] : 'no'; |
|---|
| 82 | | $sip_settings['maxcallbitrate'] = isset($_POST['maxcallbitrate']) ? htmlspecialchars($_POST['maxcallbitrate']) : '384'; |
|---|
| 83 | | |
|---|
| 84 | | $sip_settings['canreinvite'] = isset($_POST['canreinvite']) ? $_POST['canreinvite'] : 'no'; |
|---|
| 85 | | $sip_settings['rtptimeout'] = isset($_POST['rtptimeout']) ? htmlspecialchars($_POST['rtptimeout']) : '30'; |
|---|
| 86 | | $sip_settings['rtpholdtimeout'] = isset($_POST['rtpholdtimeout']) ? htmlspecialchars($_POST['rtpholdtimeout']) : '300'; |
|---|
| 87 | | $sip_settings['rtpkeepalive'] = isset($_POST['rtpkeepalive']) ? htmlspecialchars($_POST['rtpkeepalive']) : ''; |
|---|
| 88 | | |
|---|
| 89 | | $sip_settings['checkmwi'] = isset($_POST['checkmwi']) ? htmlspecialchars($_POST['checkmwi']) : ''; |
|---|
| 90 | | $sip_settings['notifyringing'] = isset($_POST['notifyringing']) ? $_POST['notifyringing'] : 'yes'; |
|---|
| 91 | | $sip_settings['notifyhold'] = isset($_POST['notifyhold']) ? $_POST['notifyhold'] : 'yes'; |
|---|
| 92 | | |
|---|
| 93 | | $sip_settings['registertimeout'] = isset($_POST['registertimeout']) ? htmlspecialchars($_POST['registertimeout']) : '20'; |
|---|
| 94 | | $sip_settings['registerattempts'] = isset($_POST['registerattempts']) ? htmlspecialchars($_POST['registerattempts']) : '0'; |
|---|
| 95 | | $sip_settings['maxexpiry'] = isset($_POST['maxexpiry']) ? htmlspecialchars($_POST['maxexpiry']) : '3600'; |
|---|
| 96 | | $sip_settings['minexpiry'] = isset($_POST['minexpiry']) ? htmlspecialchars($_POST['minexpiry']) : '60'; |
|---|
| 97 | | $sip_settings['defaultexpiry'] = isset($_POST['defaultexpiry']) ? htmlspecialchars($_POST['defaultexpiry']) : '120'; |
|---|
| 98 | | |
|---|
| 99 | | $sip_settings['jbenable'] = isset($_POST['jbenable']) ? $_POST['jbenable'] : 'no'; |
|---|
| 100 | | $sip_settings['jbforce'] = isset($_POST['jbforce']) ? $_POST['jbforce'] : 'no'; |
|---|
| 101 | | $sip_settings['jpimpl'] = isset($_POST['jpimpl']) ? $_POST['jpimpl'] : 'fixed'; |
|---|
| 102 | | $sip_settings['jbmaxsize'] = isset($_POST['jbmaxsize']) ? htmlspecialchars($_POST['jbmaxsize']) : '200'; |
|---|
| 103 | | $sip_settings['jbresyncthreshold'] = isset($_POST['jbresyncthreshold']) ? htmlspecialchars($_POST['jbresyncthreshold']) : '1000'; |
|---|
| 104 | | $sip_settings['jblog'] = isset($_POST['jblog']) ? $_POST['jblog'] : 'no'; |
|---|
| 105 | | |
|---|
| 106 | | $sip_settings['sip_language'] = isset($_POST['sip-language']) ? htmlspecialchars($_POST['sip-language']) : ''; |
|---|
| 107 | | $sip_settings['context'] = isset($_POST['context']) ? htmlspecialchars($_POST['context']) : ''; |
|---|
| 108 | | $sip_settings['bindaddr'] = isset($_POST['bindaddr']) ? htmlspecialchars($_POST['bindaddr']) : ''; |
|---|
| 109 | | $sip_settings['bindport'] = isset($_POST['bindport']) ? htmlspecialchars($_POST['bindport']) : ''; |
|---|
| 110 | | $sip_settings['allowguest'] = isset($_POST['allowguest']) ? $_POST['allowguest'] : 'yes'; |
|---|
| 111 | | $sip_settings['srvlookup'] = isset($_POST['srvlookup']) ? $_POST['srvlookup'] : 'no'; |
|---|
| | 61 | $iax_settings['codecpriority'] = isset($_POST['codecpriority']) ? $_POST['codecpriority'] : 'host'; |
|---|
| | 62 | $iax_settings['bandwidth'] = isset($_POST['bandwidth']) ? $_POST['bandwidth'] : 'unset'; |
|---|
| | 63 | $iax_settings['video_codecs'] = $video_codecs; |
|---|
| | 64 | $iax_settings['videosupport'] = isset($_POST['videosupport']) ? $_POST['videosupport'] : 'no'; |
|---|
| | 65 | |
|---|
| | 66 | $iax_settings['maxregexpire'] = isset($_POST['maxregexpire']) ? htmlspecialchars($_POST['maxregexpire']) : '3600'; |
|---|
| | 67 | $iax_settings['minregexpire'] = isset($_POST['minregexpire']) ? htmlspecialchars($_POST['minregexpire']) : '60'; |
|---|
| | 68 | |
|---|
| | 69 | $iax_settings['jitterbuffer'] = isset($_POST['jitterbuffer']) ? $_POST['jitterbuffer'] : 'no'; |
|---|
| | 70 | $iax_settings['forcejitterbuffer'] = isset($_POST['forcejitterbuffer']) ? $_POST['forcejitterbuffer'] : 'no'; |
|---|
| | 71 | $iax_settings['maxjitterbuffer'] = isset($_POST['maxjitterbuffer']) ? htmlspecialchars($_POST['maxjitterbuffer']) : '200'; |
|---|
| | 72 | $iax_settings['resyncthreshold'] = isset($_POST['resyncthreshold']) ? htmlspecialchars($_POST['resyncthreshold']) : '1000'; |
|---|
| | 73 | $iax_settings['maxjitterinterps'] = isset($_POST['maxjitterinterps']) ? htmlspecialchars($_POST['maxjitterinterps']) : ''; |
|---|
| | 74 | |
|---|
| | 75 | $iax_settings['iax_language'] = isset($_POST['iax_language']) ? htmlspecialchars($_POST['iax_language']) : ''; |
|---|
| | 76 | $iax_settings['bindaddr'] = isset($_POST['bindaddr']) ? htmlspecialchars($_POST['bindaddr']) : ''; |
|---|
| | 77 | $iax_settings['bindport'] = isset($_POST['bindport']) ? htmlspecialchars($_POST['bindport']) : ''; |
|---|
| | 78 | $iax_settings['delayreject'] = isset($_POST['delayreject']) ? htmlspecialchars($_POST['delayreject']) : 'yes'; |
|---|
| 183 | | |
|---|
| 184 | | <tr> |
|---|
| 185 | | <td colspan="2"><h5><?php echo _("NAT Settings") ?><hr></h5></td> |
|---|
| 186 | | </tr> |
|---|
| 187 | | |
|---|
| 188 | | <tr> |
|---|
| 189 | | <td> |
|---|
| 190 | | <a href="#" class="info"><?php echo _("Nat")?><span><?php echo _("Asterisk nat setting:<br /> yes = Always ignore info and assume NAT<br /> no = Use NAT mode only according to RFC3581 <br /> never = Never attempt NAT mode or RFC3581 <br /> route = Assume NAT, don't send rport")?></span></a> |
|---|
| 191 | | </td> |
|---|
| 192 | | <td> |
|---|
| 193 | | <table width="100%"> |
|---|
| 194 | | <tr> |
|---|
| 195 | | <td width="25%"> |
|---|
| 196 | | <input id="nat-yes" type="radio" name="nat" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 197 | | <label for="nat-yes">yes</label> |
|---|
| 198 | | </td> |
|---|
| 199 | | <td width="25%"> |
|---|
| 200 | | <input id="nat-no" type="radio" name="nat" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat=="no"?"checked=\"no\"":""?>/> |
|---|
| 201 | | <label for="nat-no">no</label> |
|---|
| 202 | | </td> |
|---|
| 203 | | <td width="25%"> |
|---|
| 204 | | <input id="nat-never" type="radio" name="nat" value="never" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat=="never"?"checked=\"never\"":""?>/> |
|---|
| 205 | | <label for="nat-never">never</label> |
|---|
| 206 | | </td> |
|---|
| 207 | | <td width="25%"> |
|---|
| 208 | | <input id="nat-route" type="radio" name="nat" value="route" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat=="route"?"checked=\"route\"":""?>/> |
|---|
| 209 | | <label for="nat-route">route</label> |
|---|
| 210 | | </td> |
|---|
| 211 | | </tr> |
|---|
| 212 | | </table> |
|---|
| 213 | | </td> |
|---|
| 214 | | </tr> |
|---|
| 215 | | |
|---|
| 216 | | <tr> |
|---|
| 217 | | <td> |
|---|
| 218 | | <a href="#" class="info"><?php echo _("IP Configuration")?><span><?php echo _("Indicate whether the box has a public IP or requires NAT settings. Automatic onfiguration of what is often put in sip_nat.conf")?></span></a> |
|---|
| 219 | | </td> |
|---|
| 220 | | <td> |
|---|
| 221 | | <table width="100%"> |
|---|
| 222 | | <tr> |
|---|
| 223 | | <td> |
|---|
| 224 | | <input id="nat-none" type="radio" name="nat_mode" value="public" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat_mode=="public"?"checked=\"public\"":""?>/> |
|---|
| 225 | | <label for="nat-none"><?php echo _("Public IP") ?></label> |
|---|
| 226 | | |
|---|
| 227 | | <input id="externip" type="radio" name="nat_mode" value="externip" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat_mode=="externip"?"checked=\"externip\"":""?>/> |
|---|
| 228 | | <label for="externip"><?php echo _("Static IP") ?></label> |
|---|
| 229 | | |
|---|
| 230 | | <input id="externhost" type="radio" name="nat_mode" value="externhost" tabindex="<?php echo ++$tabindex;?>"<?php echo $nat_mode=="externhost"?"checked=\"externhost\"":""?>/> |
|---|
| 231 | | <label for="externhost"><?php echo _("Dynamic IP") ?></label> |
|---|
| 232 | | </td> |
|---|
| 233 | | </tr> |
|---|
| 234 | | </table> |
|---|
| 235 | | </td> |
|---|
| 236 | | </tr> |
|---|
| 237 | | |
|---|
| 238 | | <tr class="nat-settings externip"> |
|---|
| 239 | | <td><a href="#" class="info"><?php echo _("External IP")?><span><?php echo _("External Static IP or FQDN as seen on the WAN side of the router. (asterisk: externip)")?></span></a></td> |
|---|
| 240 | | <td><input type="text" id="externip_val" name="externip_val" value="<?php echo $externip_val ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 241 | | </tr> |
|---|
| 242 | | |
|---|
| 243 | | <tr class="nat-settings externhost"> |
|---|
| 244 | | <td> |
|---|
| 245 | | <a href="#" class="info"><?php echo _("Dynamic Host")?><span><?php echo _("External FQDN as seen on the WAN side of the router and updated dynamically, e.g. mydomain.dyndns.com. (asterisk: externhost)")?></span></a> |
|---|
| 246 | | </td> |
|---|
| 247 | | <td> |
|---|
| 248 | | <input type="text" id="externhost_val" name="externhost_val" size="30" value="<?php echo $externhost_val ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 249 | | <input type="text" id="externrefresh" name="externrefresh" size="3" class="validate-int" value="<?php echo $externrefresh ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 250 | | <a href="#" class="info"><small><?php echo _("Refresh Rate")?><span><?php echo _("Asterisk: externrefresh. How often to lookup and refresh the External Host FQDN, in seconds.")?></span></small></a> |
|---|
| 251 | | </td> |
|---|
| 252 | | </tr> |
|---|
| 253 | | <tr class="nat-settings"> |
|---|
| 254 | | <td> |
|---|
| 255 | | <a href="#" class="info"><?php echo _("Local Networks")?><span><?php echo _("Local network settings (Asterisk: localnet) in the form of ip/mask such as 192.168.1.0/255.255.255.0. For networks with more 1 lan subnets, use the Add Local Network Field button for more fields. Blank fields will be removed upon submitting.")?></span></a> |
|---|
| 256 | | </td> |
|---|
| 257 | | <td> |
|---|
| 258 | | <input type="text" id="localnet_0" name="localnet_0" class="localnet validate=ip" value="<?php echo $localnet_0 ?>" tabindex="<?php echo ++$tabindex;?>"> / |
|---|
| 259 | | <input type="text" id="netmask_0" name="netmask_0" class="netmask validate-netmask" value="<?php echo $netmask_0 ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 260 | | </td> |
|---|
| 261 | | </tr> |
|---|
| 262 | | |
|---|
| 263 | | <?php |
|---|
| 264 | | $idx = 1; |
|---|
| 265 | | $var_localnet = "localnet_$idx"; |
|---|
| 266 | | $var_netmask = "netmask_$idx"; |
|---|
| 267 | | while (isset($$var_localnet)) { |
|---|
| 268 | | if ($$var_localnet != '') { |
|---|
| 269 | | $tabindex++; |
|---|
| 270 | | echo <<< END |
|---|
| 271 | | <tr class="nat-settings"> |
|---|
| 272 | | <td> |
|---|
| 273 | | </td> |
|---|
| 274 | | <td> |
|---|
| 275 | | <input type="text" id="localnet_$idx" name="localnet_$idx" class="localnet validate-ip" value="{$$var_localnet}" tabindex="$tabindex"> / |
|---|
| 276 | | END; |
|---|
| 277 | | $tabindex++; |
|---|
| 278 | | echo <<< END |
|---|
| 279 | | <input type="text" id="netmask_$idx" name="netmask_$idx" class="netmask validate-netmask" value="{$$var_netmask}" tabindex="$tabindex"> |
|---|
| 280 | | </td> |
|---|
| 281 | | </tr> |
|---|
| 282 | | END; |
|---|
| 283 | | } |
|---|
| 284 | | $idx++; |
|---|
| 285 | | $var_localnet = "localnet_$idx"; |
|---|
| 286 | | $var_netmask = "netmask_$idx"; |
|---|
| 287 | | } |
|---|
| 288 | | $tabindex += 40; // make room for dynamic insertion of new fields so we can add tabindexes |
|---|
| 289 | | ?> |
|---|
| 290 | | <tr class="nat-settings" id="auto-configure-buttons"> |
|---|
| 291 | | <td></td> |
|---|
| 292 | | <td><br \> |
|---|
| 293 | | <input type="button" id="nat-auto-configure" value="<?php echo _("Auto Configure")?>" class="nat-settings" /> |
|---|
| 294 | | <input type="button" id="localnet-add" value="<?php echo _("Add Local Network Field")?>" class="nat-settings" /> |
|---|
| 295 | | </td> |
|---|
| 296 | | </tr> |
|---|
| 297 | | |
|---|
| 332 | | <a href="#" class="info"><?php echo _("Non-Standard g726")?><span><?php echo _("Asterisk: g726nonstandard. If the peer negotiates G726-32 audio, use AAL2 packing order instead of RFC3551 packing order (this is required for Sipura and Grandstream ATAs, among others). This is contrary to the RFC3551 specification, the peer _should_ be negotiating AAL2-G726-32 instead.")?></span></a> |
|---|
| 333 | | </td> |
|---|
| 334 | | <td> |
|---|
| 335 | | <table width="100%"> |
|---|
| 336 | | <tr> |
|---|
| 337 | | <td width="25%"> |
|---|
| 338 | | <input id="g726nonstandard-yes" type="radio" name="g726nonstandard" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $g726nonstandard=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 339 | | <label for="g726nonstandard-yes"><?php echo _("Yes") ?></label> |
|---|
| 340 | | </td> |
|---|
| 341 | | <td width="25%"> |
|---|
| 342 | | <input id="g726nonstandard-no" type="radio" name="g726nonstandard" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $g726nonstandard=="no"?"checked=\"no\"":""?>/> |
|---|
| 343 | | <label for="g726nonstandard-no"><?php echo _("No") ?></label> |
|---|
| 344 | | </td> |
|---|
| 345 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 346 | | </tr> |
|---|
| 347 | | </table> |
|---|
| 348 | | </td> |
|---|
| 349 | | </tr> |
|---|
| 350 | | |
|---|
| 351 | | <tr> |
|---|
| 352 | | <td> |
|---|
| 353 | | <a href="#" class="info"><?php echo _("T38 Pass-Through")?><span><?php echo _("Asterisk: t38pt_udptl. Enables T38 passthrough if enabled. This SIP channels that support sending/receiving T38 Fax codecs to pass the call. Asterisk can not process the media.")?></span></a> |
|---|
| 354 | | </td> |
|---|
| 355 | | <td> |
|---|
| 356 | | <table width="100%"> |
|---|
| 357 | | <tr> |
|---|
| 358 | | <td width="25%"> |
|---|
| 359 | | <input id="t38pt_udptl-yes" type="radio" name="t38pt_udptl" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $t38pt_udptl=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 360 | | <label for="t38pt_udptl-yes"><?php echo _("Yes") ?></label> |
|---|
| 361 | | </td> |
|---|
| 362 | | <td width="25%"> |
|---|
| 363 | | <input id="t38pt_udptl-no" type="radio" name="t38pt_udptl" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $t38pt_udptl=="no"?"checked=\"no\"":""?>/> |
|---|
| 364 | | <label for="t38pt_udptl-no"><?php echo _("No") ?></label> |
|---|
| 365 | | </td> |
|---|
| 366 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| | 184 | <a href="#" class="info"><?php echo _("Codec Priority")?><span><?php echo _("Asterisk: codecpriority. Controls the codec negotiation of an inbound IAX call. This option is inherited to all user entities. It can also be defined in each user entity separately which will override the setting here. The valid values are:<br />host - Consider the host's preferred order ahead of the caller's.<br />caller - Consider the callers preferred order ahead of the host's.<br /> disabled - Disable the consideration of codec preference altogether. (this is the original behaviour before preferences were added)<br />reqonly - Same as disabled, only do not consider capabilities if the requested format is not available the call will only be accepted if the requested format is available.")?></span></a> |
|---|
| | 185 | </td> |
|---|
| | 186 | <td> |
|---|
| | 187 | <table width="100%"> |
|---|
| | 188 | <tr> |
|---|
| | 189 | <td width="25%"> |
|---|
| | 190 | <input id="codecpriority-host" type="radio" name="codecpriority" value="host" tabindex="<?php echo ++$tabindex;?>"<?php echo $codecpriority=="host"?"checked=\"host\"":""?>/> |
|---|
| | 191 | <label for="codecpriority-host">host</label> |
|---|
| | 192 | </td> |
|---|
| | 193 | <td width="25%"> |
|---|
| | 194 | <input id="codecpriority-caller" type="radio" name="codecpriority" value="caller" tabindex="<?php echo ++$tabindex;?>"<?php echo $codecpriority=="caller"?"checked=\"caller\"":""?>/> |
|---|
| | 195 | <label for="codecpriority-caller">caller</label> |
|---|
| | 196 | </td> |
|---|
| | 197 | <td width="25%"> |
|---|
| | 198 | <input id="codecpriority-disabled" type="radio" name="codecpriority" value="disabled" tabindex="<?php echo ++$tabindex;?>"<?php echo $codecpriority=="disabled"?"checked=\"disabled\"":""?>/> |
|---|
| | 199 | <label for="codecpriority-disabled">disabled</label> |
|---|
| | 200 | </td> |
|---|
| | 201 | <td width="25%"> |
|---|
| | 202 | <input id="codecpriority-regonly" type="radio" name="codecpriority" value="regonly" tabindex="<?php echo ++$tabindex;?>"<?php echo $codecpriority=="regonly"?"checked=\"regonly\"":""?>/> |
|---|
| | 203 | <label for="codecpriority-regonly">regonly</label> |
|---|
| | 204 | </td> |
|---|
| | 205 | </tr> |
|---|
| | 206 | </table> |
|---|
| | 207 | </td> |
|---|
| | 208 | </tr> |
|---|
| | 209 | |
|---|
| | 210 | <tr> |
|---|
| | 211 | <td> |
|---|
| | 212 | <a href="#" class="info"><?php echo _("Bandwidth")?><span><?php echo _("Asterisk: bandwidth. Specify bandwidth of low, medium, or high to control which codecs are used in general.")?></span></a> |
|---|
| | 213 | </td> |
|---|
| | 214 | <td> |
|---|
| | 215 | <table width="100%"> |
|---|
| | 216 | <tr> |
|---|
| | 217 | <td width="25%"> |
|---|
| | 218 | <input id="bandwidth-low" type="radio" name="bandwidth" value="low" tabindex="<?php echo ++$tabindex;?>"<?php echo $bandwidth=="low"?"checked=\"low\"":""?>/> |
|---|
| | 219 | <label for="bandwidth-low"><?php echo _("low") ?></label> |
|---|
| | 220 | </td> |
|---|
| | 221 | <td width="25%"> |
|---|
| | 222 | <input id="bandwidth-medium" type="radio" name="bandwidth" value="medium" tabindex="<?php echo ++$tabindex;?>"<?php echo $bandwidth=="medium"?"checked=\"medium\"":""?>/> |
|---|
| | 223 | <label for="bandwidth-medium"><?php echo _("medium") ?></label> |
|---|
| | 224 | </td> |
|---|
| | 225 | <td width="25%"> |
|---|
| | 226 | <input id="bandwidth-high" type="radio" name="bandwidth" value="high" tabindex="<?php echo ++$tabindex;?>"<?php echo $bandwidth=="high"?"checked=\"high\"":""?>/> |
|---|
| | 227 | <label for="bandwidth-high"><?php echo _("high") ?></label> |
|---|
| | 228 | </td> |
|---|
| | 229 | <td width="25%"> |
|---|
| | 230 | <input id="bandwidth-unset" type="radio" name="bandwidth" value="" tabindex="<?php echo ++$tabindex;?>"<?php echo $bandwidth=="unset"?"checked=\"unset\"":""?>/> |
|---|
| | 231 | <label for="bandwidth-unset"><?php echo _("unset") ?></label> |
|---|
| | 232 | </td> |
|---|
| 425 | | <tr class="video-codecs"> |
|---|
| 426 | | <td> |
|---|
| 427 | | <a href="#" class="info"><?php echo _("Max Bit Rate")?><span><?php echo _("Maximum bitrate for video calls in kb/s")?></span></a> |
|---|
| 428 | | </td> |
|---|
| 429 | | <td><input type="text" size="3" id="maxcallbitrate" name="maxcallbitrate" class="video-codecs validate-int" value="<?php echo $maxcallbitrate ?>" tabindex="<?php echo ++$tabindex;?>"> <small><?php echo _("kb/s") ?></small></td> |
|---|
| 430 | | </tr> |
|---|
| 431 | | |
|---|
| 432 | | <tr> |
|---|
| 433 | | <td colspan="2"><h5><?php echo _("MEDIA & RTP Settings") ?><hr></h5></td> |
|---|
| 434 | | </tr> |
|---|
| 435 | | |
|---|
| 436 | | <tr> |
|---|
| 437 | | <td> |
|---|
| 438 | | <a href="#" class="info"><?php echo _("Reinvite Behavior")?><span><?php echo _("Asterisk: canreinvite. yes: standard reinvites; no: never; nonat: An additional option is to allow media path redirection (reinvite) but only when the peer where the media is being sent is known to not be behind a NAT (as the RTP core can determine it based on the apparent IP address the media arrives from; update: use UPDATE for media path redirection, instead of INVITE. (yes = update + nonat)")?></span></a> |
|---|
| 439 | | </td> |
|---|
| 440 | | <td> |
|---|
| 441 | | <table width="100%"> |
|---|
| 442 | | <tr> |
|---|
| 443 | | <td width="25%"> |
|---|
| 444 | | <input id="canreinvite-yes" type="radio" name="canreinvite" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $canreinvite=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 445 | | <label for="canreinvite-yes"><?php echo _("Yes") ?></label> |
|---|
| 446 | | </td> |
|---|
| 447 | | <td width="25%"> |
|---|
| 448 | | <input id="canreinvite-no" type="radio" name="canreinvite" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $canreinvite=="no"?"checked=\"no\"":""?>/> |
|---|
| 449 | | <label for="canreinvite-no"><?php echo _("No") ?></label> |
|---|
| 450 | | </td> |
|---|
| 451 | | <td width="25%"> |
|---|
| 452 | | <input id="canreinvite-nonat" type="radio" name="canreinvite" value="nonat" tabindex="<?php echo ++$tabindex;?>"<?php echo $canreinvite=="nonat"?"checked=\"nonat\"":""?>/> |
|---|
| 453 | | <label for="canreinvite-nonat">never</label> |
|---|
| 454 | | </td> |
|---|
| 455 | | <td width="25%"> |
|---|
| 456 | | <input id="canreinvite-update" type="radio" name="canreinvite" value="update" tabindex="<?php echo ++$tabindex;?>"<?php echo $canreinvite=="update"?"checked=\"update\"":""?>/> |
|---|
| 457 | | <label for="canreinvite-update">update</label> |
|---|
| 458 | | </td> |
|---|
| 459 | | </tr> |
|---|
| 460 | | </table> |
|---|
| 461 | | </td> |
|---|
| 462 | | </tr> |
|---|
| 463 | | |
|---|
| 464 | | <tr> |
|---|
| 465 | | <td> |
|---|
| 466 | | <a href="#" class="info"><?php echo _("RTP Timers")?><span><?php echo _("Asterisk: rtptimeout. Terminate call if rtptimeout seconds of no RTP or RTCP activity on the audio channel when we're not on hold. This is to be able to hangup a call in the case of a phone disappearing from the net, like a powerloss or someone tripping over a cable.<br /> Asterisk: rtpholdtimeout. Terminate call if rtpholdtimeout seconds of no RTP or RTCP activity on the audio channel when we're on hold (must be > rtptimeout). <br /> Asterisk: rtpkeepalive. Send keepalives in the RTP stream to keep NAT open during periods where no RTP stream may be flowing (like on hold).")?></span></a> |
|---|
| 467 | | </td> |
|---|
| 468 | | <td> |
|---|
| 469 | | <input type="text" size="2" id="rtptimeout" name="rtptimeout" class="validate-int" value="<?php echo $rtptimeout ?>" tabindex="<?php echo ++$tabindex;?>"><small>(rtptimeout)</small> |
|---|
| 470 | | <input type="text" size="2" id="rtpholdtimeout" name="rtpholdtimeout" class="validate-int" value="<?php echo $rtpholdtimeout ?>" tabindex="<?php echo ++$tabindex;?>"><small>(rtpholdtimeout)</small> |
|---|
| 471 | | <input type="text" size="2" id="rtpkeepalive" name="rtpkeepalive" class="validate-int" value="<?php echo $rtpkeepalive ?>" tabindex="<?php echo ++$tabindex;?>"><small>(rtpkeepalive)</small> |
|---|
| 472 | | </td> |
|---|
| 473 | | </tr> |
|---|
| 474 | | |
|---|
| 475 | | <tr> |
|---|
| 476 | | <td colspan="2"><h5><?php echo _("Notification & MWI")?><hr></h5></td> |
|---|
| 477 | | </tr> |
|---|
| 478 | | |
|---|
| 479 | | <tr> |
|---|
| 480 | | <td> |
|---|
| 481 | | <a href="#" class="info"><?php echo _("MWI Polling Freq")?><span><?php echo _("Frequency in seconds to check if MWI state has changed and inform peers.")?></span></a> |
|---|
| 482 | | </td> |
|---|
| 483 | | <td><input type="text" size="3" id="checkmwi" name="checkmwi" class="validate-int" value="<?php echo $checkmwi ?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 484 | | </tr> |
|---|
| 485 | | |
|---|
| 486 | | <tr> |
|---|
| 487 | | <td> |
|---|
| 488 | | <a href="#" class="info"><?php echo _("Notify Ringing")?><span><?php echo _("Control whether subscriptions already INUSE get sent RINGING when another call is sent. Useful when using BLF.")?></span></a> |
|---|
| 489 | | </td> |
|---|
| 490 | | <td> |
|---|
| 491 | | <table width="100%"> |
|---|
| 492 | | <tr> |
|---|
| 493 | | <td width="25%"> |
|---|
| 494 | | <input id="notifyringing-yes" type="radio" name="notifyringing" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $notifyringing=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 495 | | <label for="notifyringing-yes"><?php echo _("Yes") ?></label> |
|---|
| 496 | | </td> |
|---|
| 497 | | <td width="25%"> |
|---|
| 498 | | <input id="notifyringing-no" type="radio" name="notifyringing" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $notifyringing=="no"?"checked=\"no\"":""?>/> |
|---|
| 499 | | <label for="notifyringing-no"><?php echo _("No") ?></label> |
|---|
| | 291 | <tr> |
|---|
| | 292 | <td colspan="2"><h5><?php echo _("Registration Settings") ?><hr></h5></td> |
|---|
| | 293 | </tr> |
|---|
| | 294 | |
|---|
| | 295 | <tr> |
|---|
| | 296 | <td> |
|---|
| | 297 | <a href="#" class="info"><?php echo _("Registration Times")?><span><?php echo _("Asterisk: minregexpire, maxregexpire. Minimum and maximum length of time that IAX peers can request as a registration expiration interval (in seconds).")?></span></a> |
|---|
| | 298 | </td> |
|---|
| | 299 | <td> |
|---|
| | 300 | <input type="text" size="2" id="minregexpire" name="minregexpire" class="validate-int" value="<?php echo $minregexpire ?>" tabindex="<?php echo ++$tabindex;?>"><small> (minregexpire)</small> |
|---|
| | 301 | <input type="text" size="3" id="maxregexpire" name="maxregexpire" class="validate-int" value="<?php echo $maxregexpire ?>" tabindex="<?php echo ++$tabindex;?>"><small> (maxregexpire)</small> |
|---|
| | 302 | </td> |
|---|
| | 303 | </tr> |
|---|
| | 304 | |
|---|
| | 305 | <tr> |
|---|
| | 306 | <td colspan="2"><h5><?php echo _("Jitter Buffer Settings") ?><hr></h5></td> |
|---|
| | 307 | </tr> |
|---|
| | 308 | |
|---|
| | 309 | <tr> |
|---|
| | 310 | <td> |
|---|
| | 311 | <a href="#" class="info"><?php echo _("Jitter Buffer")?><span><?php echo _("Asterisk: jitterbuffer. You can adjust several parameters relating to the jitter buffer. The jitter buffer's function is to compensate for varying network delay. The jitter buffer works for INCOMING audio - the outbound audio will be dejittered by the jitter buffer at the other end.")?></span></a> |
|---|
| | 312 | </td> |
|---|
| | 313 | <td> |
|---|
| | 314 | <table width="100%"> |
|---|
| | 315 | <tr> |
|---|
| | 316 | <td width="25%"> |
|---|
| | 317 | <input id="jitterbuffer-yes" type="radio" name="jitterbuffer" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $jitterbuffer=="yes"?"checked=\"yes\"":""?>/> |
|---|
| | 318 | <label for="jitterbuffer-yes"><?php echo _("Enabled") ?></label> |
|---|
| | 319 | </td> |
|---|
| | 320 | <td width="25%"> |
|---|
| | 321 | <input id="jitterbuffer-no" type="radio" name="jitterbuffer" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $jitterbuffer=="no"?"checked=\"no\"":""?>/> |
|---|
| | 322 | <label for="jitterbuffer-no"><?php echo _("Disabled") ?></label> |
|---|
| 507 | | <tr> |
|---|
| 508 | | <td> |
|---|
| 509 | | <a href="#" class="info"><?php echo _("Notify Hold")?><span><?php echo _("Control whether subscriptions INUSE get sent ONHOLD when call is placed on hold. Useful when using BLF.")?></span></a> |
|---|
| 510 | | </td> |
|---|
| 511 | | <td> |
|---|
| 512 | | <table width="100%"> |
|---|
| 513 | | <tr> |
|---|
| 514 | | <td width="25%"> |
|---|
| 515 | | <input id="notifyhold-yes" type="radio" name="notifyhold" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $notifyhold=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 516 | | <label for="notifyhold-yes"><?php echo _("Yes") ?></label> |
|---|
| 517 | | </td> |
|---|
| 518 | | <td width="25%"> |
|---|
| 519 | | <input id="notifyhold-no" type="radio" name="notifyhold" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $notifyhold=="no"?"checked=\"no\"":""?>/> |
|---|
| 520 | | <label for="notifyhold-no"><?php echo _("No") ?></label> |
|---|
| | 330 | <tr class="jitter-buffer"> |
|---|
| | 331 | <td> |
|---|
| | 332 | <a href="#" class="info"><?php echo _("Force Jitter Buffer")?><span><?php echo _("Asterisk: forcejitterbuffer. Forces the use of a jitterbuffer on the receive side of an IAX channel. Normally the jitter buffer will not be used if receiving a jittery channel but sending it off to another channel such as a SIP channel to an endpoint, since there is typically a jitter buffer at the far end. This will force the use of the jitter buffer before sending the stream on. This is not typically desired as it adds additional latency into the stream.")?></span></a> |
|---|
| | 333 | </td> |
|---|
| | 334 | <td> |
|---|
| | 335 | <table width="100%"> |
|---|
| | 336 | <tr> |
|---|
| | 337 | <td width="25%"> |
|---|
| | 338 | <input id="forcejitterbuffer-yes" type="radio" name="forcejitterbuffer" class="jitter-buffer" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $forcejitterbuffer=="yes"?"checked=\"yes\"":""?>/> |
|---|
| | 339 | <label for="forcejitterbuffer-yes"><?php echo _("Yes") ?></label> |
|---|
| | 340 | </td> |
|---|
| | 341 | <td width="25%"> |
|---|
| | 342 | <input id="forcejitterbuffer-no" type="radio" name="forcejitterbuffer" class="jitter-buffer" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $forcejitterbuffer=="no"?"checked=\"no\"":""?>/> |
|---|
| | 343 | <label for="forcejitterbuffer-no"><?php echo _("No") ?></label> |
|---|
| 528 | | <tr> |
|---|
| 529 | | <td colspan="2"><h5><?php echo _("Registration Settings") ?><hr></h5></td> |
|---|
| 530 | | </tr> |
|---|
| 531 | | |
|---|
| 532 | | <tr> |
|---|
| 533 | | <td> |
|---|
| 534 | | <a href="#" class="info"><?php echo _("Registrations")?><span><?php echo _("Asterisk: registertimeout. Retry registration attempts every registertimeout seconds until successful or until registrationattempts tries have been made.<br /> Asterisk: registrationattempts. Number of times to try and register before giving up. A value of 0 means keep trying forever. Normally this should be set to 0 so that Asterisk will continue to register until successful in the case of network or gateway outagages.")?></span></a> |
|---|
| 535 | | </td> |
|---|
| 536 | | <td> |
|---|
| 537 | | <input type="text" size="2" id="registertimeout" name="registertimeout" class="validate-int" value="<?php echo $registertimeout ?>" tabindex="<?php echo ++$tabindex;?>"><small>(registertimeout)</small> |
|---|
| 538 | | <input type="text" size="2" id="registerattempts" name="registerattempts" class="validate-int" value="<?php echo $registerattempts ?>" tabindex="<?php echo ++$tabindex;?>"><small>(registerattempts)</small> |
|---|
| 539 | | </td> |
|---|
| 540 | | </tr> |
|---|
| 541 | | |
|---|
| 542 | | <tr> |
|---|
| 543 | | <td> |
|---|
| 544 | | <a href="#" class="info"><?php echo _("Registration Times")?><span><?php echo _("Asterisk: minexpiry. Minimum length of registrations/subscriptions.<br /> Asterisk: maxepiry. Maximum allowed time of incoming registrations<br /> Asterisk: defaultexpiry. Default length of incoming and outgoing registrations.")?></span></a> |
|---|
| 545 | | </td> |
|---|
| 546 | | <td> |
|---|
| 547 | | <input type="text" size="2" id="minexpiry" name="minexpiry" class="validate-int" value="<?php echo $minexpiry ?>" tabindex="<?php echo ++$tabindex;?>"><small> (minexpiry)</small> |
|---|
| 548 | | <input type="text" size="3" id="maxexpiry" name="maxexpiry" class="validate-int" value="<?php echo $maxexpiry ?>" tabindex="<?php echo ++$tabindex;?>"><small> (maxexpiry)</small> |
|---|
| 549 | | <input type="text" size="3" id="defaultexpiry" name="defaultexpiry" class="validate-int" value="<?php echo $defaultexpiry ?>" tabindex="<?php echo ++$tabindex;?>"><small> (defaultexpiry)</small> |
|---|
| 550 | | </td> |
|---|
| 551 | | </tr> |
|---|
| 552 | | |
|---|
| 553 | | <tr> |
|---|
| 554 | | <td colspan="2"><h5><?php echo _("Jitter Buffer Settings") ?><hr></h5></td> |
|---|
| 555 | | </tr> |
|---|
| 556 | | |
|---|
| 557 | | <tr> |
|---|
| 558 | | <td><a href="#" class="info"><?php echo _("Jitter Buffer")?><span><?php echo _("Asterisk: jbenable. Enables the use of a jitterbuffer on the receiving side of a SIP channel. An enabled jitterbuffer will be used only if the sending side can create and the receiving side can not accept jitter. The SIP channel can accept jitter, thus a jitterbuffer on the receive SIP side will be used only if it is forced and enabled. An example is if receiving from a jittery channel to voicemail, the jitter buffer will be used if enabled. However, it will not be used when sending to a SIP endpoint since they usually have their own jitter buffers. See jbforce to force it's use always.")?></span></a></td> |
|---|
| 559 | | <td> |
|---|
| 560 | | <table width="100%"> |
|---|
| 561 | | <tr> |
|---|
| 562 | | <td width="25%"> |
|---|
| 563 | | <input id="jbenable-yes" type="radio" name="jbenable" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbenable=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 564 | | <label for="jbenable-yes"><?php echo _("Enabled") ?></label> |
|---|
| 565 | | </td> |
|---|
| 566 | | <td width="25%"> |
|---|
| 567 | | <input id="jbenable-no" type="radio" name="jbenable" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbenable=="no"?"checked=\"no\"":""?>/> |
|---|
| 568 | | <label for="jbenable-no"><?php echo _("Disabled") ?></label> |
|---|
| | 351 | <tr class="jitter-buffer"> |
|---|
| | 352 | <td> |
|---|
| | 353 | <a href="#" class="info"><?php echo _("Jitter Buffer Size")?><span><?php echo _("Asterisk: maxjitterbuffer. Max length of the jitterbuffer in milliseconds.<br /> Asterisk: resyncthreshold. When the jitterbuffer notices a significant change in delay that continues over a few frames, it will resync, assuming that the change in delay was caused by a timestamping mix-up. The threshold for noticing a change in delay is measured as twice the measured jitter plus this resync threshold. Resyncing can be disabled by setting this parameter to -1.")?></span></a> |
|---|
| | 354 | </td> |
|---|
| | 355 | <td> |
|---|
| | 356 | <input type="text" size="4" id="maxjitterbuffer" name="maxjitterbuffer" class="jitter-buffer validate-int" value="<?php echo $maxjitterbuffer ?>" tabindex="<?php echo ++$tabindex;?>"><small>(maxjitterbuffer)</small> |
|---|
| | 357 | <input type="text" size="4" id="resyncthreshold" name="resyncthreshold" class="jitter-buffer validate-int" value="<?php echo $resyncthreshold ?>" tabindex="<?php echo ++$tabindex;?>"><small>(resyncthreshold)</small> |
|---|
| | 358 | </td> |
|---|
| | 359 | </tr> |
|---|
| | 360 | |
|---|
| | 361 | <tr class="jitter-buffer"> |
|---|
| | 362 | <td> |
|---|
| | 363 | <a href="#" class="info"><?php echo _("Max Interpolations")?><span><?php echo _("Asterisk: maxjitterinterps. The maximum number of interpolation frames the jitterbuffer should return in a row. Since some clients do not send CNG/DTX frames to indicate silence, the jitterbuffer will assume silence has begun after returning this many interpolations. This prevents interpolating throughout a long silence.")?></span></a> |
|---|
| | 364 | </td> |
|---|
| | 365 | <td> |
|---|
| | 366 | <input type="text" size="4" id="maxjitterinterps" name="maxjitterinterps" class="jitter-buffer validate-int" value="<?php echo $maxjitterinterps ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 367 | </td> |
|---|
| | 368 | </tr> |
|---|
| | 369 | |
|---|
| | 370 | <tr> |
|---|
| | 371 | <td colspan="2"><h5><?php echo _("Advanced General Settings") ?><hr></h5></td> |
|---|
| | 372 | </tr> |
|---|
| | 373 | |
|---|
| | 374 | <tr> |
|---|
| | 375 | <td> |
|---|
| | 376 | <a href="#" class="info"><?php echo _("Language")?><span><?php echo _("Default Language for a channel, Asterisk: language")?></span></a> |
|---|
| | 377 | </td> |
|---|
| | 378 | <td> |
|---|
| | 379 | <input type="text" id="iax_language" name="iax_language" class="validate-alphanumeric" value="<?php echo $iax_language ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 380 | </td> |
|---|
| | 381 | </tr> |
|---|
| | 382 | |
|---|
| | 383 | <tr> |
|---|
| | 384 | <td> |
|---|
| | 385 | <a href="#" class="info"><?php echo _("Bind Address")?><span><?php echo _("Asterisk: bindaddr. The IP adderss to bind to and listen for calls on the Bind Port. If set to 0.0.0.0 Asterisk will listen on all addresses. To bind to multiple IP addresses or ports, use the Other 'IAX Settings' fields where you can put settings such as:<br /> bindaddr=192.168.10.100:4555.<br /> It is recommended to leave this blank.")?></span></a> |
|---|
| | 386 | </td> |
|---|
| | 387 | <td> |
|---|
| | 388 | <input type="text" id="bindaddr" name="bindaddr" class="validate-ip" value="<?php echo $bindaddr ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 389 | </td> |
|---|
| | 390 | </tr> |
|---|
| | 391 | |
|---|
| | 392 | <tr> |
|---|
| | 393 | <td> |
|---|
| | 394 | <a href="#" class="info"><?php echo _("Bind Port")?><span><?php echo _("Asterisk: bindport. Local incoming UDP Port that Asterisk will bind to and listen for IAX messages. The IAX standard is 4569 and in most cases this is what you want. It is recommended to leave this blank.")?></span></a> |
|---|
| | 395 | </td> |
|---|
| | 396 | <td> |
|---|
| | 397 | <input type="text" id="bindport" name="bindport" class="validate-ip-port" value="<?php echo $bindport ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| | 398 | </td> |
|---|
| | 399 | </tr> |
|---|
| | 400 | |
|---|
| | 401 | <tr> |
|---|
| | 402 | <td> |
|---|
| | 403 | <a href="#" class="info"><?php echo _("Delay Auth Rejects")?><span><?php echo _("Asterisk: delayreject. For increased security against brute force password attacks enable this which will delay the sending of authentication reject for REGREQ or AUTHREP if there is a password.")?></span></a> |
|---|
| | 404 | </td> |
|---|
| | 405 | <td> |
|---|
| | 406 | <table width="100%"> |
|---|
| | 407 | <tr> |
|---|
| | 408 | <td width="25%"> |
|---|
| | 409 | <input id="delayreject-yes" type="radio" name="delayreject" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $delayreject=="yes"?"checked=\"yes\"":""?>/> |
|---|
| | 410 | <label for="delayreject-yes"><?php echo _("Enable") ?></label> |
|---|
| | 411 | </td> |
|---|
| | 412 | <td width="25%"> |
|---|
| | 413 | <input id="delayreject-no" type="radio" name="delayreject" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $delayreject=="no"?"checked=\"no\"":""?>/> |
|---|
| | 414 | <label for="delayreject-no"><?php echo _("Disable") ?></label> |
|---|
| 576 | | <tr class="jitter-buffer"> |
|---|
| 577 | | <td> |
|---|
| 578 | | <a href="#" class="info"><?php echo _("Force Jitter Buffer")?><span><?php echo _("Asterisk: jbforce. Forces the use of a jitterbuffer on the receive side of a SIP channel. Normally the jitter buffer will not be used if receiving a jittery channel but sending it off to another channel such as another SIP channel to an endpoint, since there is typically a jitter buffer at the far end. This will force the use of the jitter buffer before sending the stream on. This is not typically desired as it adds additional latency into the stream.")?></span></a> |
|---|
| 579 | | </td> |
|---|
| 580 | | <td> |
|---|
| 581 | | <table width="100%"> |
|---|
| 582 | | <tr> |
|---|
| 583 | | <td width="25%"> |
|---|
| 584 | | <input id="jbforce-yes" type="radio" name="jbforce" class="jitter-buffer" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbforce=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 585 | | <label for="jbforce-yes"><?php echo _("Yes") ?></label> |
|---|
| 586 | | </td> |
|---|
| 587 | | <td width="25%"> |
|---|
| 588 | | <input id="jbforce-no" type="radio" name="jbforce" class="jitter-buffer" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbforce=="no"?"checked=\"no\"":""?>/> |
|---|
| 589 | | <label for="jbforce-no"><?php echo _("No") ?></label> |
|---|
| 590 | | </td> |
|---|
| 591 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 592 | | </tr> |
|---|
| 593 | | </table> |
|---|
| 594 | | </td> |
|---|
| 595 | | </tr> |
|---|
| 596 | | |
|---|
| 597 | | <tr class="jitter-buffer"> |
|---|
| 598 | | <td> |
|---|
| 599 | | <a href="#" class="info"><?php echo _("Implementation")?><span><?php echo _("Asterisk: jbimpl. Jitterbuffer implementation, used on the receiving side of a SIP channel. Two implementations are currently available:<br /> fixed: size always equals to jbmaxsize;<br />) adaptive: with variable size (the new jb of IAX2).")?></span></a> |
|---|
| 600 | | </td> |
|---|
| 601 | | <td> |
|---|
| 602 | | <table width="100%"> |
|---|
| 603 | | <tr> |
|---|
| 604 | | <td width="25%"> |
|---|
| 605 | | <input id="jbimpl-fixed" type="radio" name="jbimpl" class="jitter-buffer" value="fixed" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbimpl=="fixed"?"checked=\"fixed\"":""?>/> |
|---|
| 606 | | <label for="jbimpl-fixed"><?php echo _("Fixed") ?></label> |
|---|
| 607 | | </td> |
|---|
| 608 | | <td width="25%"> |
|---|
| 609 | | <input id="jbimpl-adaptive" type="radio" name="jbimpl" class="jitter-buffer" value="adaptive" tabindex="<?php echo ++$tabindex;?>"<?php echo $jbimpl=="adaptive"?"checked=\"adaptive\"":""?>/> |
|---|
| 610 | | <label for="jbimpl-adaptive"><?php echo _("Adaptive") ?></label> |
|---|
| 611 | | </td> |
|---|
| 612 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 613 | | </tr> |
|---|
| 614 | | </table> |
|---|
| 615 | | </td> |
|---|
| 616 | | </tr> |
|---|
| 617 | | |
|---|
| 618 | | <tr class="jitter-buffer"> |
|---|
| 619 | | <td> |
|---|
| 620 | | <a href="#" class="info"><?php echo _("Jitter Buffer Logging")?><span><?php echo _("Asterisk: jblog. Enables jitter buffer frame logging.")?></span></a> |
|---|
| 621 | | </td> |
|---|
| 622 | | <td> |
|---|
| 623 | | <table width="100%"> |
|---|
| 624 | | <tr> |
|---|
| 625 | | <td width="25%"> |
|---|
| 626 | | <input id="jblog-yes" type="radio" name="jblog" class="jitter-buffer" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $jblog=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 627 | | <label for="jblog-yes"><?php echo _("Enable") ?></label> |
|---|
| 628 | | </td> |
|---|
| 629 | | <td width="25%"> |
|---|
| 630 | | <input id="jblog-no" type="radio" name="jblog" class="jitter-buffer" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $jblog=="no"?"checked=\"no\"":""?>/> |
|---|
| 631 | | <label for="jblog-no"><?php echo _("Disable") ?></label> |
|---|
| 632 | | </td> |
|---|
| 633 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 634 | | </tr> |
|---|
| 635 | | </table> |
|---|
| 636 | | </td> |
|---|
| 637 | | </tr> |
|---|
| 638 | | |
|---|
| 639 | | <tr class="jitter-buffer"> |
|---|
| 640 | | <td> |
|---|
| 641 | | <a href="#" class="info"><?php echo _("Jitter Buffer Size")?><span><?php echo _("Asterisk: jbmaxsize. Max length of the jitterbuffer in milliseconds.<br /> Asterisk: jbresyncthreshold. Jump in the frame timestamps over which the jitterbuffer is resynchronized. Useful to improve the quality of the voice, with big jumps in/broken timestamps, usually sent from exotic devices and programs.")?></span></a> |
|---|
| 642 | | </td> |
|---|
| 643 | | <td> |
|---|
| 644 | | <input type="text" size="4" id="jbmaxsize" name="jbmaxsize" class="jitter-buffer validate-int" value="<?php echo $jbmaxsize ?>" tabindex="<?php echo ++$tabindex;?>"><small>(jbmaxsize)</small> |
|---|
| 645 | | <input type="text" size="4" id="jbresyncthreshold" name="jbresyncthreshold" class="jitter-buffer validate-int" value="<?php echo $jbresyncthreshold ?>" tabindex="<?php echo ++$tabindex;?>"><small>(jbresyncthreshold)</small> |
|---|
| 646 | | </td> |
|---|
| 647 | | </tr> |
|---|
| 648 | | |
|---|
| 649 | | <tr> |
|---|
| 650 | | <td colspan="2"><h5><?php echo _("Advanced General Settings") ?><hr></h5></td> |
|---|
| 651 | | </tr> |
|---|
| 652 | | |
|---|
| 653 | | <tr> |
|---|
| 654 | | <td> |
|---|
| 655 | | <a href="#" class="info"><?php echo _("Language")?><span><?php echo _("Default Language for a channel, Asterisk: language")?></span></a> |
|---|
| 656 | | </td> |
|---|
| 657 | | <td> |
|---|
| 658 | | <input type="text" id="sip-language" name="sip-language" class="validate-alphanumeric" value="<?php echo $sip_language ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 659 | | </td> |
|---|
| 660 | | </tr> |
|---|
| 661 | | |
|---|
| 662 | | <tr> |
|---|
| 663 | | <td> |
|---|
| 664 | | <a href="#" class="info"><?php echo _("Default Context")?><span><?php echo _("Asterisk: context. Default context for incoming calls if not specified. FreePBX sets this to from-sip-extenral which is used in conjunction with the Allow Anonymous SIP calls. If you change this you will effect that behavior. It is recommended to leave this blank.")?></span></a> |
|---|
| 665 | | </td> |
|---|
| 666 | | <td> |
|---|
| 667 | | <input type="text" id="default-context" name="default-context alpha-numeric" value="<?php echo $context ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 668 | | </td> |
|---|
| 669 | | </tr> |
|---|
| 670 | | |
|---|
| 671 | | <tr> |
|---|
| 672 | | <td> |
|---|
| 673 | | <a href="#" class="info"><?php echo _("Bind Address")?><span><?php echo _("Asterisk: bindaddr. The IP adderss to bind to and listen for calls on the Bind Port. If set to 0.0.0.0 Asterisk will listen on all addresses. It is recommended to leave this blank.")?></span></a> |
|---|
| 674 | | </td> |
|---|
| 675 | | <td> |
|---|
| 676 | | <input type="text" id="bindaddr" name="bindaddr" class="validate-ip" value="<?php echo $bindaddr ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 677 | | </td> |
|---|
| 678 | | </tr> |
|---|
| 679 | | |
|---|
| 680 | | <tr> |
|---|
| 681 | | <td> |
|---|
| 682 | | <a href="#" class="info"><?php echo _("Bind Port")?><span><?php echo _("Asterisk: bindport. Local incoming UDP Port that Asterisk will bind to and listen for SIP messages. The SIP standard is 5060 and in most cases this is what you want. It is recommended to leave this blank.")?></span></a> |
|---|
| 683 | | </td> |
|---|
| 684 | | <td> |
|---|
| 685 | | <input type="text" id="bindport" name="bindport" class="validate-ip-port" value="<?php echo $bindport ?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 686 | | </td> |
|---|
| 687 | | </tr> |
|---|
| 688 | | |
|---|
| 689 | | <tr> |
|---|
| 690 | | <td> |
|---|
| 691 | | <a href="#" class="info"><?php echo _("Allow SIP Guests")?><span><?php echo _("Asterisk: allowguest. When set Asterisk will allow Guest SIP calls and send them to the Default SIP context. Turning this off will keep anonymous SIP calls from entering the system. However, the Allow Anonymous SIP calls from the General Settings section will not function. Allowing guest calls but rejecting the Anonymous SIP calls in the General Section will enable you to see the call attempts and debug incoming calls that may be mis-configured and appearing as guests.")?></span></a> |
|---|
| 692 | | </td> |
|---|
| 693 | | <td> |
|---|
| 694 | | <table width="100%"> |
|---|
| 695 | | <tr> |
|---|
| 696 | | <td width="25%"> |
|---|
| 697 | | <input id="allowguest-yes" type="radio" name="allowguest" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $allowguest=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 698 | | <label for="allowguest-yes"><?php echo _("Yes") ?></label> |
|---|
| 699 | | </td> |
|---|
| 700 | | <td width="25%"> |
|---|
| 701 | | <input id="allowguest-no" type="radio" name="allowguest" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $allowguest=="no"?"checked=\"no\"":""?>/> |
|---|
| 702 | | <label for="allowguest-no"><?php echo _("No") ?></label> |
|---|
| 703 | | </td> |
|---|
| 704 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 705 | | </tr> |
|---|
| 706 | | </table> |
|---|
| 707 | | </td> |
|---|
| 708 | | </tr> |
|---|
| 709 | | |
|---|
| 710 | | <tr> |
|---|
| 711 | | <td> |
|---|
| 712 | | <a href="#" class="info"><?php echo _("SRV Lookup")?><span><?php echo _("Enable Asterisk srvlookup. See current version of Asterisk for limitations on SRV functionality.")?></span></a> |
|---|
| 713 | | </td> |
|---|
| 714 | | <td> |
|---|
| 715 | | <table width="100%"> |
|---|
| 716 | | <tr> |
|---|
| 717 | | <td width="25%"> |
|---|
| 718 | | <input id="srvlookup-yes" type="radio" name="srvlookup" value="yes" tabindex="<?php echo ++$tabindex;?>"<?php echo $srvlookup=="yes"?"checked=\"yes\"":""?>/> |
|---|
| 719 | | <label for="srvlookup-yes"><?php echo _("Enabled") ?></label> |
|---|
| 720 | | </td> |
|---|
| 721 | | <td width="25%"> |
|---|
| 722 | | <input id="srvlookup-no" type="radio" name="srvlookup" value="no" tabindex="<?php echo ++$tabindex;?>"<?php echo $srvlookup=="no"?"checked=\"no\"":""?>/> |
|---|
| 723 | | <label for="srvlookup-no"><?php echo _("Disabled") ?></label> |
|---|
| 724 | | </td> |
|---|
| 725 | | <td width="25%"> </td><td width="25%"></td> |
|---|
| 726 | | </tr> |
|---|
| 727 | | </table> |
|---|
| 728 | | </td> |
|---|
| 729 | | </tr> |
|---|
| 730 | | |
|---|
| 784 | | /* On click ajax to pbx and determine extenral network and localnet settings */ |
|---|
| 785 | | $.ajaxTimeout( 10000 ); |
|---|
| 786 | | $("#nat-auto-configure").click(function(){ |
|---|
| 787 | | $.ajax({ |
|---|
| 788 | | type: 'POST', |
|---|
| 789 | | url: "<?php echo $_SERVER["PHP_SELF"]; ?>", |
|---|
| 790 | | data: "quietmode=1&skip_astman=1&handler=file&module=sipsettings&file=natget.html.php", |
|---|
| 791 | | dataType: 'json', |
|---|
| 792 | | success: function(data) { |
|---|
| 793 | | if (data.status == 'success') { |
|---|
| 794 | | $('.netmask').attr("value",""); |
|---|
| 795 | | $('.localnet').attr("value",""); |
|---|
| 796 | | $('#externip_val').attr("value",data.externip); |
|---|
| 797 | | /* Iterate through each localnet:netmask pair. Put them into any fields on the form |
|---|
| 798 | | * until we have no more, than create new ones |
|---|
| 799 | | */ |
|---|
| 800 | | var fields = $(".localnet").size(); |
|---|
| 801 | | var cnt = 0; |
|---|
| 802 | | $.each(data.localnet, function(loc,mask){ |
|---|
| 803 | | if (cnt < fields) { |
|---|
| 804 | | $('#localnet_'+cnt).attr("value",loc); |
|---|
| 805 | | $('#netmask_'+cnt).attr("value",mask); |
|---|
| 806 | | } else { |
|---|
| 807 | | addLocalnet(loc,mask); |
|---|
| 808 | | } |
|---|
| 809 | | cnt++; |
|---|
| 810 | | }); |
|---|
| 811 | | } else { |
|---|
| 812 | | alert(data.status); |
|---|
| 813 | | } |
|---|
| 814 | | }, |
|---|
| 815 | | error: function(data) { |
|---|
| 816 | | alert("<?php echo _("An Error occured trying fetch network configuration and external IP address")?>"); |
|---|
| 817 | | }, |
|---|
| 818 | | }); |
|---|
| 819 | | return false; |
|---|
| 820 | | }); |
|---|
| 821 | | |
|---|
| 822 | | /* Add a Local Network / Mask textbox */ |
|---|
| 823 | | $("#localnet-add").click(function(){ |
|---|
| 824 | | addLocalnet("",""); |
|---|
| 825 | | }); |
|---|