<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<flat-profile>

{line_loop}

<!--########################################################-->
<!--###           SIP Settings for Identity {$line_m1}   ###-->
<!--########################################################-->

<!--# The "Line_Enable_{$line_m1}_" field enables or disables Identity {$line_m1} on the phone. Valid values are "Yes"==Enable Identity; "No"==Disable Identity. The provisioning template sets the value to "Yes"==Enable Identity.-->
<Line_Enable_{$line_m1}_ group="Ext_{$line_m1}/General">Yes</Line_Enable_{$line_m1}_>

<!--# The "SIP_Port_{$line_m1}_" field specifies which port number the phone should listen on for SIP Traffic. Valid values are 1 to 65535. The provisioning template sets the value to 5060 which is the standard SIP Port.-->
<SIP_Port_{$line_m1}_ group="Ext_{$line_m1}/SIP_Settings">{$local_port}</SIP_Port_{$line_m1}_>

<!--# The Extension Number must be specified in the "User_ID_{$line_m1}" field. The "extension_number" variable will be replaced by the Extension's Extension Number.-->
<User_ID_{$line_m1}_ group="Ext_{$line_m1}/Subscriber_Information">{$username}</User_ID_{$line_m1}_>

<!--# The "Use_Auth_ID_{$line_m1}_" field enables or disables the phone to use the Authentication ID to register itself with MiRTA PBX. Valid values are "Yes"==Register Using Authentication ID; "No"==Do Not Register Using Authentication ID. The provisioning template sets the value to "Yes"==Register Using Authentication ID.-->
<Use_Auth_ID_{$line_m1}_ group="Ext_{$line_m1}/Subscriber_Information">Yes</Use_Auth_ID_{$line_m1}_>

<!--# The Authentication ID must be specified in the "Auth_ID_{$line_m1}_" field. The "extension_auth_id" variable will be replaced by the Extension's Authentication ID.-->
<Auth_ID_{$line_m1}_ group="Ext_{$line_m1}/Subscriber_Information">{$authname}</Auth_ID_{$line_m1}_>

<!--# The Authentication Password must be specified in the "Password_{$line_m1}_" field. The "extension_auth_pw" variable will be replaced by the Extension's Authentication Password.-->
<Password_{$line_m1}_ group="Ext_{$line_m1}/Subscriber_Information">{$secret}</Password_{$line_m1}_>

<!--# The "Display_Name_{$line_m1}_" field contains the Caller Name which the phone will send to MiRTA PBX. The "extension_first_name" and "extension_last_name" variables will be replaced by the Extension's First Name and Last Name.-->
<Display_Name_{$line_m1}_ group="Ext_{$line_m1}/Subscriber_Information">{$displayname}</Display_Name_{$line_m1}_>

<!--# The "Register_{$line_m1}_" field specifies whether the phone should register with the SIP Registrar - in this case MiRTA PBX. Valid values are "Yes"==Register with SIP Registrar; "No"==Do Not Register With SIP Registrar. The provisioning template sets this value to "Yes"==Register with SIP Registrar to enable interaction with MiRTA PBX.-->
<Register_{$line_m1}_ group="Ext_1/Proxy_and_Registration">Yes</Register_{$line_m1}_>

<!--# The "Proxy_{$line_m1}_" field contains the ip address and SIP port of the SIP Registrar and Proxy - in this case MiRTA PBX. The "pbx_ip" and "param::sipport" variables will be replaced by the IP Address and SIP Port of MiRTA PBX.-->
<Proxy_{$line_m1}_ group="Ext_{$line_m1}/Proxy_and_Registration">{$server_host|jjpbx.co.uk}:{$server_port|5060}</Proxy_{$line_m1}_>

<!--# The "Use_Outbound_Proxy_{$line_m1}_" field specifies whether the phone should use an Outbound Proxy to deliver outgoing SIP messages. Valid values are "Yes"==Use Outbound Proxy; "No"==Do Not Use Outbound Proxy. The provisioning template sets the value to "No"==Do Not Use Outbound Proxy.-->
<Use_Outbound_Proxy_{$line_m1}_ group="Ext_{$line_m1}/Proxy_and_Registration">No</Use_Outbound_Proxy_{$line_m1}_>

<!--# The "DNS_SRV_Auto_Prefix_{$line_m1}_" field specifies whether the phone should make DNS lookups for SRV records when attempting to contact the Proxy or the Outbound Proxy. Valid values are "Yes"==Make DNS Lookups For SRV Records; "No"==Do Not Make DNS Lookups for SRV Records. The provisioning template sets the value to "No"==Do Not Make DNS Lookups for SRV Records.-->
<DNS_SRV_Auto_Prefix_{$line_m1}_ group="Ext_{$line_m1}/Proxy_and_Registration">No</DNS_SRV_Auto_Prefix_{$line_m1}_>

<!--# The "Register_Expires_{$line_m1}_" field specifies the length of time (in seconds) the phone will be registered with MiRTA PBX. The phone will attempt to re-register with MiRTA PBX before this time expires. The provisioning template sets the value to 900 (15 minutes). Valid values are any positive integer.-->
<Register_Expires_{$line_m1}_ group="Ext_{$line_m1}/Proxy_and_Registration">60</Register_Expires_{$line_m1}_>

<!--# The "Dial_Plan_{$line_m1}_" field specifies which number combinations are allowed. Since MiRTA PBX takes all necessary routing decisions directly, the dialplan is set to "[x*]." to allow any sequence of keys to be dialed and sent to MiRTA PBX.-->
<Dial_Plan_{$line_m1}_ group="Ext_{$line_m1}/Dial_Plan">[x*].</Dial_Plan_{$line_m1}_>

<Extension_{$line_m1}_ group="Phone/Line_Key_{$line_m1}Phone/Line_Key_{$line_m1}">1</Extension_{$line_m1}_> 
<Short_Name_{$line_m1}_ group="Phone/Line_Key_{$line_m1}">{$displayname}</Short_Name_{$line_m1}_> 
<Share_Call_Appearance_{$line_m1}_ group="Phone/Line_Key_{$line_m1}">private</Share_Call_Appearance_{$line_m1}_> 
<Extended_Function_{$line_m1}_ group="Phone/Line_Key_{$line_m1}"></Extended_Function_{$line_m1}_> 
{/line_loop}

<Admin_Passwd group="System/System_Configuration">{$adminpw|123456}</Admin_Passwd>
<User_Password group="System/System_Configuration">{$userpw|123456}</User_Password>

</flat-profile>