<?xml version="1.0"?>
<!DOCTYPE model 
    PUBLIC "-//SIPFoundry//sipXconfig//Model specification 2.0//EN" 
    "http://www.sipfoundry.org/sipXconfig/dtd/setting_2_0.dtd">
<model>
  <type id="port-number">
    <integer required="yes" min="1024" max="65534"/>
  </type>		
  <type id="optional-port-number">
    <integer min="1024" max="65534"/>
  </type>		  
	<group name="SYSTEM_Params">
		<label>System</label>
		<profileName>SYSTEM Params</profileName>
		<setting name="DNSPriServerIP">
			<label>DNS Server</label>
			<type>
				<ipaddr/>	
			</type>
			<value></value>
			<description>IP Address of the primary DNS server</description>
		</setting>
		<setting name="DNSSecServerIP" advanced="yes">
			<label>Secondary DNS Server</label>
			<type>
				<ipaddr/>	
			</type>
			<value></value>
			<description>IP Address of the secondary DNS server</description>
		</setting>
		<setting name="EnableSyslog" advanced="yes">
			<label>Use Syslog</label>
			<type>
				<boolean/>
			</type>
			<value>0</value>
			<description>If checked syslog server is used.</description>			
		</setting>		
		<setting name="SyslogServerIP" advanced="yes">
			<label>Syslog Server</label>
			<type>
				<ipaddr/>	
			</type>
			<value></value>
			<description>IP Address of the syslog server</description>			
		</setting>
	</group>
  <group name="SIP_Params">
    <label>SIP Params</label>
    <profileName>SIP Params</profileName>
    <setting name="ISPROXYUSED" advanced="yes">
      <label>Use Proxy</label>
			<type>
				<boolean/>
			</type>
      <value>1</value>
      <description>If unchecked proxy isn’t used, the internal routing table is used instead. 
				If checked gateway will use SIP proxy and SIP Proxy Address has to be set.				
      </description>
    </setting>
    <setting name="PROXYNAME" advanced="yes">
      <label>SIP Proxy Domain Name</label>
      <type>
        <string/>
      </type>
      <value/>
      <description>Defines the Home Proxy Domain Name.If specified, the Proxy Name is used as Request-URI in
        REGISTER, INVITE and other SIP messages. If not specified, the Proxy IP address is used
        instead.</description>
    </setting>
    <setting name="PROXYIP" advanced="yes">
      <label>SIP Proxy Address</label>
      <type>
        <ipaddr/>
      </type>
      <value/>
      <description>IP address and optionally port number of the primary Proxy server you are using. Enter the IP
        address as FQDN or in dotted format notation for example 201.10.8.1. You can also specify the selected
        port in the format: IP Address:port</description>
    </setting>
    <setting name="SIPDESTINATIONPORT" advanced="yes">
			<label>SIP Proxy Port</label>
			<type refid="optional-port-number"/>
			<value>5060</value>
			<description>Domain name used by the gateway name.</description>
		</setting>
    <setting name="ISREGISTERNEEDED" hidden="yes">
      <label>Registration Needed</label>
			<type>
				<boolean/>
			</type>
      <value>0</value>
      <description>If checked gateway will register with SIP proxy. Usually registration is not required for FXO gateways.</description>
    </setting>
    <setting name="SIPGATEWAYNAME" advanced="yes">
			<label>Gateway Domain Name</label>
			<value></value>
			<description>Domain name used by the gateway name.</description>
		</setting>
    <setting name="TRUNKGROUP_1" advanced="yes">
      <label>Trunk Group</label>
      <type>
        <string>
          <pattern>\d+-\d+,\d+,\d+</pattern>
        </string>
      </type>
      <value>1-8,100,0</value>
    </setting>
    <setting name="TARGETOFCHANNEL0" advanced="yes">
      <label>Automatic dialing port 0</label>
      <type>
        <string required="yes">
          <pattern>\d+,[01]</pattern>
        </string>
      </type>
      <value>100,1</value>
      <description>Automactic dialing for this port. Enter destination phone number followed by comma and 1 if
        automatic should be enabled, or zero if it should be disabled.</description>
    </setting>
    <setting name="TARGETOFCHANNEL1" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 1</label>      
    </setting>
    <setting name="TARGETOFCHANNEL2" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 2</label>      
    </setting>
    <setting name="TARGETOFCHANNEL3" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 3</label>      
    </setting>
    <setting name="TARGETOFCHANNEL4" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 4</label>      
    </setting>
    <setting name="TARGETOFCHANNEL5" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 5</label>      
    </setting>
    <setting name="TARGETOFCHANNEL6" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 6</label>      
    </setting>
    <setting name="TARGETOFCHANNEL7" copy-of="TARGETOFCHANNEL0">
      <label>Automatic dialing port 7</label>      
    </setting>    
    <setting name="MAXDIGITS">
      <label>Maximum Digits</label>
      <type>
        <integer min="1" max="49"/>
      </type>
      <value>15</value>
      <description>Maximum number of digits that can be dialed. The valid range is 1 to 49.</description>
    </setting>
  </group>
</model>
