SET LANGUAGES_RESOURCE_LIST English=res://Mlf_English.xml,Canadian French=lang/Mlf_J169_J179_CanadianFrench.xml,Latin American Spanish=lang/Mlf_J169_J179_LatinAmericanSpanish.xml,Brazilian Portuguese=lang/Mlf_J169_J179_BrazilianPortuguese.xml,Italian=lang/Mlf_J169_J179_Italian.xml
SET SYSTEM_LANGUAGE Mlf_J169_J179_English.xml
SET LANGUAGE_IN_USE English
SET LANGUAGES Mlf_J169_J179_CanadianFrench.xml,Mlf_J169_J179_LatinAmericanSpanish.xml,Mlf_J169_J179_BrazilianPortuguese.xml,Mlf_J169_J179_Italian.xml
## DIALING_MODE_DEFAULT
## 0 - Automatic
## 1 - Manual
SET DIALING_MODE_DEFAULT 0
## Dialplan
## |: This character is used to separate each different number pattern.
## X: This character is a wildcard for any single digit match.
## [ ]- Square brackets can be used to contain possible specific single digit matches. For example:
## [1237] matches 1, 2, 3 or 7. A - character can be used to match a range of digits.
## [1-4] matches any digit from 1 to 4.
SET DIALPLAN "{if isset($avaya_dialplan)}{$avaya_dialplan}{else}XXX|XXXX,*XX,1XXXXXXXXXX,XXXXXXXXXX{/if}"
## INTER_DIGIT_TIMEOUT - Set the number of seconds from the last digit dialed after which the phone assumes dialing is complete and send the digits dialed to the system
SET INTER_DIGIT_TIMEOUT 2
## GMTOFFSET
SET GMTOFFSET "{if isset($avaya_time_zone)}{$avaya_time_zone}{else}-5:00{/if}"
SET DOWNLOADABLE_DIRECTORY {if isset($avaya_directory_url)}{$avaya_directory_url}{else}https://{$http_auth_username}:{$http_auth_password}@{$domain_name}{$project_path}/app/provision/index.php?mac={$mac}&file=directory.xml{/if}
SET SIP_USER_ACCOUNT {$row.user_id}@{$row.server_address}
SET SIP_USER_ID {$row.user_id}
SET SNTPSRVR "{if isset($avaya_ntp_server)}{$avaya_ntp_server}{else}ca.pool.ntp.org{/if}"
SET SIP_CONTROLLER_LIST {$row.server_address}:{$row.sip_port};transport={$row.sip_transport}
SET SIPPROXYSRVR_IN_USE {$row.server_address}
SET SIP_PROXY_SELECTION_POLICY 1
SET SIPDOMAIN {$row.server_address}
SET MWISRVR {$row.server_address}
SET RTCPMON {$row.server_address}
SET SIMULTANEOUS_REGISTRATIONS 1
{if $row@index eq 2}{break}{/if}
{/foreach}
## Button config
## Type can be feature,application,line,autodial
## Name is the name of the button type. All options can be found here: https://documentation.avaya.com/bundle/InstallandAdminJ100seriesIPPhonein3PCCsetup_r4.0.11/page/PHONEKEY_parameter_values__3PCC_.html
## attr1 is usually the specific data for the button. For example extension number
SET PHONEKEY "Key={$row.device_key_id+3};Type=feature;Name={$row.device_key_type};Label={$row.device_key_label};attr1={$row.device_key_value};attr2={$row.device_key_value};Forced"