function getFileConfigGrandstream($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer, $model)
{
    $configNetwork = "";
    $ipTftpServer = explode(".", $ipAdressServer);
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', 1);
    $ByDHCP = $ByDHCP == 1 ? 0 : 1;
    // 0 indica que es por DHCP y 1 por estatico
    if ($ByDHCP == 1) {
        $IP = existsValue($arrParameters, 'IP', "0.0.0.0");
        $IP = explode(".", $IP);
        $Mask = existsValue($arrParameters, 'Mask', "0.0.0.0");
        $Mask = explode(".", $Mask);
        $GW = existsValue($arrParameters, 'GW', "0.0.0.0");
        $GW = explode(".", $GW);
        $DNS1 = existsValue($arrParameters, 'DNS1', "0.0.0.0");
        $DNS1 = explode(".", $DNS1);
        $DNS2 = existsValue($arrParameters, 'DNS2', "0.0.0.0");
        $DNS2 = explode(".", $DNS2);
        $configNetwork = "\n        \n        # IP Address\n        P9={$IP['0']}\n        P10={$IP['1']}\n        P11={$IP['2']}\n        P12={$IP['3']}\n        \n        # Subnet Mask\n        P13={$Mask['0']}\n        P14={$Mask['1']}\n        P15={$Mask['2']}\n        P16={$Mask['3']}\n        \n        # Gateway\n        P17={$GW['0']}\n        P18={$GW['1']}\n        P19={$GW['2']}\n        P20={$GW['3']}\n        \n        # DNS Server 1\n        P21={$DNS1['0']}\n        P22={$DNS1['1']}\n        P23={$DNS1['2']}\n        P24={$DNS1['3']}\n        \n        # DNS Server 2\n        P25={$DNS2['0']}\n        P26={$DNS2['1']}\n        P27={$DNS2['2']}\n        P28={$DNS2['3']}";
    }
    $content = "\n    \n    # Firmware Server Path\n    P192 = {$ipAdressServer}\n    \n    # Config Server Path\n    P237 = {$ipAdressServer}\n    \n    # Firmware Upgrade. 0 - TFTP Upgrade,  1 - HTTP Upgrade.\n    P212 = 0\n    \n    # Account Name\n    P270 = {$DisplayName}\n    \n    # SIP Server\n    P47 = {$ipAdressServer}\n    \n    # Outbound Proxy\n    P48 = {$ipAdressServer}\n    \n    # SIP User ID\n    P35 = {$id_device}\n    \n    # Authenticate ID\n    P36 = {$id_device}\n    \n    # Authenticate password\n    P34 = {$secret}\n    \n    # Display Name (John Doe)\n    P3 = {$DisplayName}\n    \n    # DHCP=0 o static=1\n    P8={$ByDHCP}\n    \n    # SIP Registration ( 0 = do not register, 1 = register )\n    P31=1\n    \n    #Time Zone\n    P64=" . existsValue($arrParameters, 'Time_Zone', 'auto') . "\n    \n    # TFT Server\n    P41={$ipTftpServer['0']}\n    P42={$ipTftpServer['1']}\n    P43={$ipTftpServer['2']}\n    P44={$ipTftpServer['3']}\n    \n    {$configNetwork}";
    if ($model == "GXP280") {
        $content .= "\n        # Send DTMF. 8 - in audio, 1 - via RTP, 2 - via SIP INFO\n        P73=1";
    }
    if ($model == "GXV3140" || $model == "GXP2200") {
        $content .= "\n        # Voicemail UserID (User ID/extension for 3rd party voice mail system)\n        # MaxLength 64 characters\n        P33 = *97\n\n        # Account Active.\n        # 0 - No, 1 - Yes. Default value is 1.\n        P271 = 1\n\n        # Display Name (John Doe)\n        P3 = {$DisplayName}\n\n        # Dial Plan Maxlength: unlimited, default is allow all { x+ | *x+ | *xx*x+ }\n        P290 = { x+ | *x+ | *xx*x+ }";
    }
    return $content;
}
function PrincipalFileAlcatelTemporisIP800($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer)
{
    $configNetwork = "";
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', '');
    $ByDHCP = $ByDHCP == 1 ? 0 : 2;
    // 0 indica que es por DHCP y 2 por estatico
    if ($ByDHCP == 0 || $ByDHCP == 2) {
        $configNetwork = "\r\n[ WAN ]\r\npath= /config/Network/Network.cfg\r\n#0=DHCP,1=PPPoE,2=StaticIP\r\nWANType \t  = {$ByDHCP}\r\nWANStaticIP       =" . existsValue($arrParameters, 'IP', '') . "\r\nWANSubnetMask     =" . existsValue($arrParameters, 'Mask', '') . "\r\nWANDefaultGateway =" . existsValue($arrParameters, 'GW', '') . "\r\n\r\n[ DNS ]\r\npath= /config/Network/Network.cfg\r\nPrimaryDNS   = " . existsValue($arrParameters, 'DNS1', '') . "\r\nSecondaryDNS = " . existsValue($arrParameters, 'DNS2', '');
    }
    $timezone = existsValue($arrParameters, 'Time_Zone', '');
    $pcportmode = existsValue($arrParameters, 'Bridge', 1);
    # CONTENT
    $content = "\r\n\r\n{$configNetwork}\r\n\r\n[ PPPoE ]\r\npath= /config/Network/Network.cfg\r\nPPPoEUser = \r\nPPPoEPWD = \r\n\r\n[ LAN ]\r\npath= /config/Network/Network.cfg\r\n#0=Router, 1=Bridge\r\nLANTYPE = {$pcportmode}\r\nRouterIP = 10.0.0.1\r\nLANSubnetMask = 255.255.255.0\r\nEnableDHCP = 1\r\nDHCPStartIP = 10.0.0.10\r\nDHCPEndIP = 10.0.0.100\r\nSpanToPCPort = 0\r\n\r\n[ telnet ]\r\npath= /config/Network/Network.cfg\r\ntelnet_enable = 0\r\n\r\n[ Time ]\r\npath = /config/Setting/Setting.cfg\r\nTimeZone = {$timezone}\r\nTimeServer1 = europe.pool.ntp.org\r\nTimeServer2 = europe.pool.ntp.org\r\nInterval = 1000\r\nSummerTime = 2\r\nDSTTimeType = 0\r\nTimeZoneInstead = 8\r\nStartTime = 1/1/0\r\nEndTime = 12/31/23\r\nTimeFormat = 1\r\nDateFormat = 6\r\nOffSetTime = 60\r\nDHCPTime = 0\r\n\r\n[ autop_mode ]\r\npath = /config/Setting/autop.cfg\r\nmode = 1\r\nschedule_min = \r\nschedule_time = \r\nschedule_time_end = \r\nschedule_dayofweek = \r\n\r\n[ PNP ]\r\npath = /config/Setting/autop.cfg\r\nPnp = 0\r\n\r\n[ cutom_option ]\r\npath = /config/Setting/autop.cfg\r\ncutom_option_code0 = \r\ncutom_option_type0 = 1\r\n\r\n[ autoprovision ]\r\npath = /config/Setting/autop.cfg\r\nserver_address = tftp://{$ipAdressServer}\r\nuser = \r\npassword = \r\n\r\n[ account ]\r\npath=  /config/voip/sipAccount0.cfg\r\nEnable = 1\r\nLabel = {$DisplayName}\r\nDisplayName = {$DisplayName} \r\nUserName = {$id_device}\r\nAuthName = {$id_device}\r\npassword = {$secret}\r\nSIPServerHost = {$ipAdressServer}\r\nSIPServerPort = 5060\r\nSIPListenRandom = 0\r\nSIPListenPort = 5060\r\nExpire = 3600\r\nUseOutboundProxy = 0\r\nOutboundHost = \r\nOutboundPort = 5060\r\nEnableEncrypt = 0\r\nEncryptKey = 29749\r\nEncryptVersion = 1\r\nBakOutboundHost = \r\nBakOutboundPort = 5060\r\nEnableSTUN = 0\r\nproxy-require = \r\nptime = 20\r\nsrtp_encryption = 0\r\nsrtp_encryption_algorithm = 0\r\nBackupSIPServerHost = \r\nBackupSIPServerPort = 5060\r\nEnable 100Rel = 0\r\nprecondition = 0\r\nSubsribeRegister = 0\r\nEnableSessionTimer = 0\r\nSessionExpires = 1800\r\nSessionRefresher = 0\r\nEnableUserEqualPhone = 0\r\nBLFList_URI = \r\nBlfListCode = *97\r\nSubsribeMWI = 0\r\nAnonymousCall = 0\r\nRejectAnonymousCall = 0\r\nTransport = 0\r\nShareLine = 0\r\ndialoginfo_callpickup = 0\r\nAutoAnswer = 0\r\nMissedCallLog = 1\r\nAnonymousCall_OnCode = \r\nAnonymousCall_OffCode = \r\nAnonymousReject_OnCode = \r\nAnonymousReject_OffCode = \r\nBLANumber = \r\nSubscribeMWIExpire = 3600\r\nRegisterMAC = 0\r\nRegisterLine = 0\r\nconf-type = 0\r\nconf-uri = \r\nSubscribeACDExpire = 3600\r\nSubscribeMWIToVM = 0\r\nCallIDNoIPAddr = 0\r\nMWI Subscription Period = 3600\r\nSIP Registration Retry Timer = 30\r\nDisableAlertInfoURL = 0\r\nRegExpiresOverlap = -1\r\nSubExpiresOverlap = -1\r\nEnableRFC4475 = 1\r\nCIDSource = 0\r\nCPSource = 1\r\nSIPTrustCtrl = 0\r\nFullSDPAnswer = 0\r\nbCalleeIDbyINFO = 0\r\nbPCMANEGVAD = 0\r\nSIPServerType = 0\r\nEnableCompactHeader = 0\r\n\r\n\r\n[ AES_KEY ]\r\npath = /config/Setting/autop.cfg\r\naes_key_16 = \r\naes_key_16_mac = \r\n \r\n[ ringtone ]\r\npath = /tmp/download.cfg\r\nserver_address = \r\n \r\n[ Lang ]\r\npath = /tmp/download.cfg\r\nserver_address = \r\n \r\n[ ContactList ]\r\npath = /tmp/download.cfg\r\nserver_address = \r\n\r\n[ UserName ]\r\npath = /config/Advanced/Advanced.cfg\r\nadmin = \r\nuser = \r\n\r\n[ AdminPassword ]\r\npath =  /config/Setting/autop.cfg\r\npassword = \r\n\r\n[ UserPassword ]\r\npath =  /config/Setting/autop.cfg\r\npassword =\r\n\r\n[ firmware ]\r\npath = /tmp/download.cfg\r\nserver_type = \r\nserver_ip = \r\nserver_port = \r\nlogin_name = \r\nlogin_pswd = \r\nhttp_url   = \r\nfirmware_name = \r\n\r\n[ DialNow ]\r\npath = /tmp/dialnow.xml \r\nserver_address =\r\n\r\n[ ReplaceRule ]\r\npath = /tmp/dialplan.xml\r\n1 = 0,Prefix,Replace\r\n2 = 0,Prefix,Replace\r\n3 = 0,Prefix,Replace\r\n4 = 0,Prefix,Replace\r\n5 = 0,Prefix,Replace\r\n6 = 0,Prefix,Replace\r\n7 = 0,Prefix,Replace\r\n8 = 0,Prefix,Replace\r\n9 = 0,Prefix,Replace\r\n10 = 0,Prefix,Replace\r\n\r\n[ AreaCode ]\r\npath = /config/DialRule/areacode.cfg \r\ncode = \r\nminlen = \r\nmaxlen = \r\nLineID = \r\n\r\n[ BlockOut ]\r\npath = /config/DialRule/BlockOut.cfg\r\n#Set Block Out number.\r\n1 = \r\n2 = \r\n3 = \r\n4 = \r\n5 = \r\n6 = \r\n7 = \r\n8 = \r\n9 = \r\n10 = \r\n\r\n[ BlockOutLineID ]\r\npath = /config/DialRule/BlockOut.cfg\r\n#Set enable account.\r\n1 = \r\n2 = \r\n3 = \r\n4 = \r\n5 = \r\n6 = \r\n7 = \r\n8 = \r\n9 = \r\n10 =\r\n\r\n\r\n[ Forbidden ]\r\npath =  /config/Setting/AdvSetting.cfg\r\nDND = 0\r\nFWD = 0\r\n\r\n[ Zero ]\r\npath = /factory/config/Advanced/Advanced.cfg\r\nForbidZero = 1\r\nWaitTime = 5\r\n\r\n[ Transfer ] \r\npath = /config/Setting/AdvSetting.cfg\r\nEnableSemiAttendTran = 1\r\nBlindTranOnHook = 1\r\nTranOthersAfterConf = 0\r\n\r\n[ LLDP ]\r\npath = /factory/config/Network/Network.cfg\r\nEnableLLDP = 0\r\nPacketInterval = 120\r\n\r\n[ ActionURL ]\r\npath = /config/Features/Phone.cfg\r\nSetupCompleted = \r\nLogOn = \r\nLogOff = \r\nRegisterFailed = \r\nOffhook = \r\nOnhook = \r\nIncomingCall = \r\nOutgoingCall = \r\nCallEstablished = \r\nDNDOn = \r\nDNDOff = \r\nAwaysFWDOn = \r\nAwaysFWDOff = \r\nBusyFWDOn = \r\nBusyFWDOff = \r\nNoAnswerFWDOn = \r\nNoAnswerFWDOff = \r\nTransferCall = \r\nBlindTransferCall = \r\nAttendedTransferCall = \r\nHold = \r\nUnhold = \r\nMute = \r\nUnmute = \r\nMissedCall = \r\nCallTerminated = \r\n\r\n[ WatchDog ]\r\npath = /config/Features/Phone.cfg\r\nIsUse = 1\r\nTime = 10\r\n\r\n[ sip ]\r\npath = /config/Setting/AdvSetting.cfg\r\nReservePound = 1\r\nUseOutBoundInDialog = 1\r\n\r\n[ memory11 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 1\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n\r\n[ memory12 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 2\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n\r\n[ memory13 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 3\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n\r\n[ memory14 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 4\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n\r\n[ memory15 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 5\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n\r\n[ memory16 ]\r\npath = /config/vpPhone/vpPhone.ini\r\nDKtype = 15\r\nLine = 6\r\ntype = \r\nValue = \r\nKEY_MODE = Asterisk\r\nHotNumber = \r\nHotLineId = 1\r\nCallpickup = \r\nIntercomId = -1\r\nIntercomNumber = \r\nPickupValue = \r\nLabel = \r\n";
    return $content;
}
Exemple #3
0
function PrincipalFileElastixLXP200($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer, $model)
{
    $configNetwork = "";
    $ipTftpServer = explode(".", $ipAdressServer);
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', 1);
    $ByDHCP = $ByDHCP == 1 ? 0 : 1;
    // 0 indica que es por DHCP y 1 por estatico
    if ($ByDHCP == 1) {
        $IP = existsValue($arrParameters, 'IP', "0.0.0.0");
        $IP = explode(".", $IP);
        $Mask = existsValue($arrParameters, 'Mask', "0.0.0.0");
        $Mask = explode(".", $Mask);
        $GW = existsValue($arrParameters, 'GW', "0.0.0.0");
        $GW = explode(".", $GW);
        $DNS1 = existsValue($arrParameters, 'DNS1', "0.0.0.0");
        $DNS1 = explode(".", $DNS1);
        $DNS2 = existsValue($arrParameters, 'DNS2', "0.0.0.0");
        $DNS2 = explode(".", $DNS2);
        $configNetwork = "\n        \n        # IP Address\n        P9={$IP['0']}\n        P10={$IP['1']}\n        P11={$IP['2']}\n        P12={$IP['3']}\n        \n        # Subnet Mask\n        P13={$Mask['0']}\n        P14={$Mask['1']}\n        P15={$Mask['2']}\n        P16={$Mask['3']}\n        \n        # Gateway\n        P17={$GW['0']}\n        P18={$GW['1']}\n        P19={$GW['2']}\n        P20={$GW['3']}\n        \n        # DNS Server 1\n        P21={$DNS1['0']}\n        P22={$DNS1['1']}\n        P23={$DNS1['2']}\n        P24={$DNS1['3']}\n        \n        # DNS Server 2\n        P25={$DNS2['0']}\n        P26={$DNS2['1']}\n        P27={$DNS2['2']}\n        P28={$DNS2['3']}";
    }
    $content = "\n    \n    # Firmware Server Path\n    P192 = {$ipAdressServer}\n    \n    # Config Server Path\n    P237 = {$ipAdressServer}\n    \n    # Firmware Upgrade. 0 - TFTP Upgrade,  1 - HTTP Upgrade.\n    P212 = 0\n    \n    # Account Name\n    P270 = {$DisplayName}\n    \n    # SIP Server\n    P47 = {$ipAdressServer}\n    \n    # Outbound Proxy\n    P48 = {$ipAdressServer}\n    \n    # SIP User ID\n    P35 = {$id_device}\n    \n    # Authenticate ID\n    P36 = {$id_device}\n    \n    # Authenticate password\n    P34 = {$secret}\n    \n    # Display Name (John Doe)\n    P3 = {$DisplayName}\n    \n    # DHCP=0 o static=1\n    P8={$ByDHCP}\n    \n    # SIP Registration ( 0 = do not register, 1 = register )\n    P31=1\n    \n    #Time Zone\n    P64=" . existsValue($arrParameters, 'Time_Zone', 'auto') . "\n    \n    # TFT Server\n    P41={$ipTftpServer['0']}\n    P42={$ipTftpServer['1']}\n    P43={$ipTftpServer['2']}\n    P44={$ipTftpServer['3']}\n    \n    {$configNetwork}";
    return $content;
}
Exemple #4
0
function PrincipalFileYealinkVP530($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer)
{
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', "");
    $time = existsValue($arrParameters, 'Time_Zone', 12);
    $pcportmode = existsValue($arrParameters, 'Bridge', 1);
    $timezone = <<<TEMP
#######################################################################################
##         \t                   Time Settings                                         ##
#######################################################################################
#Configure the time zone and time zone name. The time zone ranges from -11 to +12, the default value is +8. 
local_time.time_zone = {$time}
TEMP;
    $pcport = <<<TEMP
#Configure the PC port type; 0-Router, 1-Bridge (default);
#Require reboot;
network.bridge_mode = {$pcportmode}
TEMP;
    switch ($ByDHCP) {
        case '':
            $configNetwork = "";
            break;
        case 0:
            $dns = existsValue($arrParameters, 'DNS1', '');
            $dns2 = existsValue($arrParameters, 'DNS2', '');
            $ip = existsValue($arrParameters, 'IP', '');
            $mask = existsValue($arrParameters, 'Mask', '');
            $gw = existsValue($arrParameters, 'GW', '');
            $configNetwork = <<<TEMP
#######################################################################################
##                          Network                                                  ## 
#######################################################################################

#Configure the WAN port type; 0-DHCP (default), 1-PPPoE, 2-Static IP Address;
#Require reboot;
network.internet_port.type =  2
#Configure the static IP address, subnet mask, gateway and DNS server;
#Require Reboot;
network.internet_port.ip = {$ip}
network.internet_port.mask = {$mask}
network.internet_port.gateway = {$gw}
network.primary_dns= {$dns}
network.secondary_dns = {$dns2}
TEMP;
            break;
        case 1:
            $configNetwork = <<<TEMP
#######################################################################################
##                          Network                                                  ## 
#######################################################################################

#Configure the WAN port type; 0-DHCP (default), 1-PPPoE, 2-Static IP Address;
#Require reboot;
network.internet_port.type =  0
TEMP;
            break;
    }
    $content = <<<TEMP
#!version:1.0.0.1

##File header "#!version:1.0.0.1" can not be edited or deleted.##

{$configNetwork}

#######################################################################################
##                           Account1 Settings                                       ##                                                                          
#######################################################################################

#Enable or disable the account1, 0-Disabled (default), 1-Enabled;
account.1.enable = 1

#Configure the label displayed on the LCD screen for account1.
account.1.label = {$DisplayName}

#Configure the display name of account1.
account.1.display_name = {$DisplayName}

#Configure the username and password for register authentication.
account.1.auth_name = {$id_device}
account.1.password = {$secret}

#Configure the register user name.
account.1.user_name = {$id_device}

#Configure the SIP server address.
account.1.sip_server_host = {$ipAdressServer} 
#Specify the port for the SIP server. The default value is 5060.
account.1.sip_server_port = 5060
auto_provision.server.url = tftp://{$ipAdressServer}:69

{$pcport}

{$timezone}

TEMP;
    return $content;
}
function PrincipalFileSnom_m9($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer)
{
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', "");
    $time = existsValue($arrParameters, 'Time_Zone', "301");
    $timezone = <<<TEMP
<zone_desc perm="RW">GMT {$time}</zone_desc>
TEMP;
    $refresh = "<settings_refresh_timer perm= \"RW\">0</settings_refresh_timer>";
    switch ($ByDHCP) {
        case '':
            $configNetwork = "";
            break;
        case 0:
            $dns = existsValue($arrParameters, 'DNS1', '');
            $dns2 = existsValue($arrParameters, 'DNS2', '');
            $ip = existsValue($arrParameters, 'IP', '');
            $mask = existsValue($arrParameters, 'Mask', '');
            $gw = existsValue($arrParameters, 'GW', '');
            $configNetwork = <<<TEMP
<dhcp perm="RW">false</dhcp>
<ip_adr perm="RW">{$ip}</ip_adr>
<netmask perm="RW">{$mask}</netmask>
<dns_server1 perm="RW">{$dns}</dns_server1>
<dns_server2 perm="">{$dns2}</dns_server2>
<gateway perm="RW">{$gw}</gateway>
TEMP;
            break;
        case 1:
            $configNetwork = <<<TEMP
<dhcp perm="RW" />
<ip_adr perm="RW"></ip_adr>
<netmask perm="RW"></netmask>
<dns_server1 perm="RW"></dns_server1>
<dns_server2 perm=""></dns_server2>
<gateway perm="RW"></gateway>

TEMP;
            break;
    }
    $content = <<<TEMP
<?xml version="1.0" encoding="utf-8"?>
<settings>
 <phone-settings>
  <action_setup_url perm="RW" />
  <allow_check_sync perm="RW">false</allow_check_sync>
  <asset_id perm="RW" />
  <base_name perm="RW">snom-m9</base_name>
  <setting_server perm="RW">tftp://{$ipAdressServer}</setting_server>
  {$configNetwork}
  <dst_offset perm="RW">0</dst_offset>
  <dst_start_day perm="RW">0</dst_start_day>
  <dst_start_day_of_week perm="RW">0</dst_start_day_of_week>
  <dst_start_month perm="RW">0</dst_start_month>
  <dst_start_time perm="RW">0</dst_start_time>
  <dst_start_week_of_month perm="RW">0</dst_start_week_of_month>
  <dst_stop_day perm="RW">0</dst_stop_day>
  <dst_stop_day_of_week perm="RW">0</dst_stop_day_of_week>
  <dst_stop_month perm="RW">0</dst_stop_month>
  <dst_stop_time perm="RW">0</dst_stop_time>
  <dst_stop_week_of_month perm="RW">0</dst_stop_week_of_month>
  <emergency_numbers perm="RW" />
  <emergency_proxy perm="RW" />
  <ethernet_replug perm="RW">reregister</ethernet_replug>
  <gmt_offset perm="RW">0</gmt_offset>
   {$refresh}
  <language perm="RW" />
  <log perm="RW" idx="1">5</log>
  <ntp_server perm="RW">ntp.snom.com</ntp_server>
  <outbound_method perm="RW" />
  <outbound_tcp perm="RW">100</outbound_tcp>
  <outbound_udp perm="RW">20</outbound_udp>
  <packet_length perm="RW" idx="1">20</packet_length>
  <pcap_on_bootup perm="RW">false</pcap_on_bootup>
  <pin_change_prompt perm="RW">true</pin_change_prompt>
  <propose_length perm="RW" idx="1">false</propose_length>
  <qos_publish_uri perm="RW" />
  <read_status perm="RW">false</read_status>
  <reject_msg perm="RW">486 Busy Here</reject_msg>
  <repeater perm="RW">false</repeater>
  <retry_t1 perm="RW">500</retry_t1>
  <ring_duration perm="RW">60</ring_duration>
  <rtcp_dup_rle perm="RW">true</rtcp_dup_rle>
  <rtcp_loss_rle perm="RW">true</rtcp_loss_rle>
  <rtcp_rcpt_times perm="RW">true</rtcp_rcpt_times>
  <rtcp_rcvr_rtt perm="RW">true</rtcp_rcvr_rtt>
  <rtcp_stat_summary perm="RW">true</rtcp_stat_summary>
  <rtcp_voip_metrics perm="RW">true</rtcp_voip_metrics>
  <rtp_port_end perm="RW">65534</rtp_port_end>
  <rtp_port_start perm="RW">49152</rtp_port_start>
  <session_timeout perm="RW">360</session_timeout>
  <setting_server perm="RW" />
  <settings_refresh_timer perm="RW">86400</settings_refresh_timer>
  <short_form perm="RW">false</short_form>
  <sip_port perm="RW">0</sip_port>
  <stun_interval perm="RW">5</stun_interval>
  <stun_server perm="RW" />
  <telnet_enabled perm="RW">false</telnet_enabled>
  <tones perm="RW">1</tones>
  <tos_rtp perm="RW">160</tos_rtp>
  <tos_sip perm="RW">160</tos_sip>
  <user_active idx="1" perm="">on</user_active>
  <user_realname idx="1" perm="">{$DisplayName}</user_realname>
  <user_name idx="1" perm="">{$id_device}</user_name>
  <user_host idx="1" perm="">{$ipAdressServer}</user_host>
  <user_pname idx="1" perm=""></user_pname>
  <user_pass idx="1" perm="">{$secret}</user_pass>
  <user_allow_call_waiting perm="RW" idx="1">true</user_allow_call_waiting>
  <user_allow_line_switching perm="RW" idx="1">false</user_allow_line_switching>
  <user_ear_protection perm="RW" idx="1">false</user_ear_protection>
  <user_enable_e164_substitution perm="RW" idx="1">false</user_enable_e164_substitution>
  <user_expiry perm="RW" idx="1">3600</user_expiry>
  <user_forward_mode perm="RW" idx="1">0</user_forward_mode>
  <user_forward_number perm="RW" idx="1" />
  <user_forward_timeout perm="RW" idx="1">10</user_forward_timeout>
  <vlan_id perm="RW">0</vlan_id>
  <vlan_prio perm="RW">0</vlan_prio>
  {$timezone}
  </phone-settings>
</settings>          

TEMP;
    return $content;
}
Exemple #6
0
function PrincipalFileFanvilC62IAX($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer, $macAdress, $versionCfg)
{
    $versionCfg = isset($versionCfg) ? $versionCfg : '2.0002';
    $configNetwork = "";
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', "");
    // 1 indica que es por DHCP y 0 por estatico
    if ($ByDHCP === "0") {
        // 0 es IP Estatica
        $configNetwork = "\nWAN Mode:\t   :STATIC\nWAN IP             :" . existsValue($arrParameters, 'IP', '') . "\nWAN Subnet Mask    :" . existsValue($arrParameters, 'Mask', '') . "\nWAN Gateway        :" . existsValue($arrParameters, 'GW', '') . "\nPrimary DNS        :" . existsValue($arrParameters, 'DNS1', '') . "\nSecondary DNS      :" . existsValue($arrParameters, 'DNS2', '') . "\nEnable DHCP        :{$ByDHCP}\n";
    } elseif ($ByDHCP === "1") {
        // 0 es IP Estatica
        $configNetwork = "\nWAN Mode:\t   :DHCP\nEnable DHCP        :{$ByDHCP}\n";
    } else {
        $configNetwork = "";
    }
    # CONTENT
    $content = "<<VOIP CONFIG FILE>>Version:{$versionCfg}                            \n\n<PHONE CONFIG MODULE>\n<GLOBAL CONFIG MODULE>\n{$configNetwork}\n\nDefault Protocol   :2\n\nTime Zone          :" . existsValue($arrParameters, 'Time_Zone', 12) . "\n--Function Key--   :\nFkey1 Type         :2\nFkey1 Value        :IAX2\n\n<LAN CONFIG MODULE>\nBridge Mode        :" . existsValue($arrParameters, 'Bridge', 1) . "\n\n<DSP CONFIG MODULE>\nSignal Standard    :11\nOnhook Time        :200\nG729 Payload Len   :1\nG723 Bit Rate      :1\nG722 Timestamps    :0\nVAD                :0\nRing Type          :1\nDtmf Payload Type  :101\nRTP Probe          :0\n--Port Config--    :\nP1 General Spk Vol :5\nP1 General Mic Vol :3\nP1 Headset Vol     :5\nP1 Ring in Headset :0\nP1 HandFree Vol    :5\nP1 RingTone Vol    :5\nP1 Voice Codec1    :0\nP1 Voice Codec2    :1\nP1 Voice Codec3    :15\nP1 Voice Codec4    :9\nP1 Voice Codec5    :23\nP1 Voice Codec6    :17\n\n<SIP CONFIG MODULE>\n--SIP Line List--  :\nSIP1 Phone Number  :\nSIP1 Display Name  :\nSIP1 Sip Name      :\nSIP1 Register Addr :\nSIP1 Register Port :5060\nSIP1 Register User :\nSIP1 Register Pswd :\nSIP1 Register TTL  :3600\nSIP1 Proxy Addr    :\nSIP1 Proxy Port    :5060\nSIP1 BakProxy Addr :\nSIP1 BakProxy Port :5060\nSIP1 Signal Crypto :0\nSIP1 Enable Reg    :0\nSIP2 Enable Reg    :0\nSIP3 Enable Reg    :0\nSIP4 Enable Reg    :0\n\n<IAX2 CONFIG MODULE>\nServer Address     :{$ipAdressServer}\nServer Port        :4569\nUser Name          :{$id_device}\nUser Password      :{$secret}\nUser Number        :{$id_device}\nVoice Number       :*97\nVoice Text         :*97\nEchoTest Number    :1\nEchoTest Text      :echo\nLocal Port         :4569\nEnable Register    :1\nRefresh Time       :60\nEnable G.729       :0\n\n<DHCP CONFIG MODULE>\nDHCP Server Type   :0\n\n<AUTOUPDATE CONFIG MODULE>\nDownload Server IP :{$ipAdressServer}\nConfig File Name   :{$macAdress}.cfg\nConfig File Key    :\nCommon Cfg File Key:\nDownload Protocol  :2\nDownload Mode      :1\nDownload Interval  :1\nPNP Enable         :0\n\n<<END OF FILE>>";
    return $content;
}
Exemple #7
0
function PrincipalFileAtcom530IAX($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer, $macAdress, $versionCfg)
{
    $versionCfg = isset($versionCfg) ? $versionCfg : '2.0002';
    $configNetwork = "";
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', 1);
    // 1 indica que es por DHCP y 0 por estatico
    if ($ByDHCP == 0) {
        // 0 es IP Estatica
        $configNetwork = "\n\tStatic IP          :" . existsValue($arrParameters, 'IP', '') . "\n\tStatic NetMask     :" . existsValue($arrParameters, 'Mask', '') . "\n\tStatic GateWay     :" . existsValue($arrParameters, 'GW', '') . "\n\tPrimary DNS        :" . existsValue($arrParameters, 'DNS1', '') . "\n\tSecundary DNS      :" . existsValue($arrParameters, 'DNS2', '') . "\n\t";
    }
    $content = "<<VOIP CONFIG FILE>>Version:{$versionCfg}                         \n\n<GLOBAL CONFIG MODULE>\nSNTP Server        :{$ipAdressServer}\nEnable SNTP        :1\n{$configNetwork} \nDHCP Mode          :{$ByDHCP}\nTime Zone          :" . existsValue($arrParameters, 'Time_Zone', 12) . "\n\n<LAN CONFIG MODULE>\nBridge Mode        :" . existsValue($arrParameters, 'Bridge', 0) . "\n\n<TELE CONFIG MODULE>\nDial End With #    :1\nDial Fixed Length  :0\nFixed Length       :11\nDial With Timeout  :1\nDial Timeout value :5\n\n<DSP CONFIG MODULE>\nVAD                :0\nRing Type          :1\n--Port Config--    :\nP1 Codec           :1\n\n<IAX2 CONFIG MODULE>\nServer   Address   :{$ipAdressServer}\nServer   Port      :4569\nUser     Name      :{$id_device}\nUser     Password  :{$secret}\nUser     Number    :{$id_device}\nVoice    Number    :0\nVoice    Text      :mail\nEchoTest Number    :1\nEchoTest Text      :echo\nLocal    Port      :4569\nEnable   Register  :1\nRefresh  Time      :60\nEnable   G.729     :0\n\n<AUTOUPDATE CONFIG MODULE>\nDownload Username  :user\nDownload password  :pass\nDownload Server IP :{$ipAdressServer}\nConfig File Name   :atc{$macAdress}.cfg\nConfig File Key    :\nDownload Protocol  :2\nDownload Mode      :1\nDownload Interval  :1\n<<END OF FILE>>";
    return $content;
}
Exemple #8
0
function PrincipalFileDamallD3310($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer, $macAdress, $ip_endpoint)
{
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', "");
    switch ($ByDHCP) {
        case '':
            $configNetwork = get_net_conf($ip_endpoint, "admin", "admin");
            break;
        case 0:
            $dns = existsValue($arrParameters, 'DNS1', '');
            $dns2 = existsValue($arrParameters, 'DNS2', '');
            $ip = existsValue($arrParameters, 'IP', '');
            $mask = existsValue($arrParameters, 'Mask', '');
            $gw = existsValue($arrParameters, 'GW', '');
            $configNetwork = <<<TEMP
[WAN_Config]
ITEM=19 
CurrentIP={$ip}
CurrentGateway={$gw}
CurrentNetMask={$mask}
#0:DHCP, 1:Static, 2:PPPoE 
NetworkMode=1 
DeviceName=Damall D-3310 
DomainName= 
DNSdomain= 
PrimaryDNS={$dns}
SecondrayDNS={$dns2}
AlterDNS= 
StaticIP={$ip}
SubnetMask={$mask}
DefaultGateway={$gw}
UserAccount=
Password= 
LcpEchoInterval= 
ISPName= 
#0:PAP, 1:CHAP
AuthType=0 

TEMP;
            break;
        case 1:
            $configNetwork = <<<TEMP
[WAN_Config]
ITEM=19 
CurrentIP= 
CurrentGateway= 
CurrentNetMask= 
#0:DHCP, 1:Static, 2:PPPoE 
NetworkMode=0 
DeviceName=Damall D-3310 
DomainName= 
DNSdomain= 
PrimaryDNS= 
SecondrayDNS= 
AlterDNS= 
StaticIP= 
SubnetMask= 
DefaultGateway= 
UserAccount= 
Password= 
LcpEchoInterval= 
ISPName= 
#0:PAP, 1:CHAP 
AuthType=0 

TEMP;
            break;
        default:
            $configNetwork = "";
            break;
    }
    $time = existsValue($arrParameters, 'Time_Zone', 12);
    $timezone = <<<TEMP
[Time_Config]
ITEM=13
Timezone={$time}
ServerAddress=209.81.9.7
ServerPort=21
PollingInterval=300
#0: 0:00; 1: -0:30; 2: -1:00; 3: +0:30; 4: +1:00
DaylightSaving=0
timeout=60
DaylightEnable=0
SelectSNTP=1
TIM_ManualYear=
TIM_ManualMonths=
TIM_ManualDay=
TIM_ManualHour=
TIM_ManualMinute=  

TEMP;
    $pcportmode = existsValue($arrParameters, 'Bridge', 1);
    if ($pcportmode == 0) {
        $pcportmode = " \n[LAN_Config] \nITEM=7 \nBridgeMode=0 \nDHCPServer=1 \nForwardDNS=1 \nStartIP=2 \nEndIP=19 \n";
    } else {
        $pcportmode = "\n[LAN_Config] \nITEM=7 \nBridgeMode=1 \nDHCPServer=1 \nForwardDNS=1 \nStartIP=2 \nEndIP=19 \n";
    }
    if ($configNetwork == NULL) {
        $content = FALSE;
    } else {
        $content = <<<TEMP
{$configNetwork}

{$pcportmode}

[Primary_Register]
ITEM=26
#0:Unregistered; 1:registered
Registered=1
Enable=1
DisplayName={$DisplayName}
ServerAddress={$ipAdressServer}
ServerPort=5060
UserName1={$id_device}
Password1={$secret}
AuthUserName={$id_device}
DomainRealm=
SameServer=
EnableProxy=1
ProxyAddress=
ProxyPort=5060
UserName2=
Password2=
Version=RFC 3261
#0:RFC 2833; 1:Inband; 2:SIP Info
DTMFMode=0
UserAgent=Damall D-3310
DetectInterval=60
RegisterExpire=60
LocalSIPPort=5060
LocalRTPPort=12345
RegisterTime=60
RTPPort=10000
RTPQuantity=200
NatKeepAlive=0
PRACKEnable=0
Register_time=2

[Secondary_Register]
ITEM=21
#0:Unregistered; 1:registered
Registered=0
Enable=0
DisplayName=
ServerAddress=
ServerPort=5060
UserName1=
Password1=
AuthUserName=
DomainRealm=
SameServer=
EnableProxy=1
ProxyAddress=
ProxyPort=5060
UserName2=
Password2=
Version=RFC 3261
#0:RFC 2833; 1:Inband; 2:SIP Info
DTMFMode=0
UserAgent=
DetectInterval=120
RegisterExpire=120
LocalSIPPort=5060
LocalRTPPort=12345

[Audio_Config]
ITEM=27
MEMBER=2
OTHERS=27
RingerVolume=2
RingerType=5
VoiceVolume=4
MicVolume=4
HandsetIn=5
HandsetOut=5
Speaker=2
RingTone=2
#0:default
Ringer=6
AudioFrame=4
#0:G.729; 1:G.711a; 2:G.711u; 3:G.723.1
Codec#1=0
Codec#2=1
Codec#3=2
Codec#4=3
Codec#5=0
HighRate=1
VAD=0
AGC=1
AEC=1
#0:Italy,1:Belgium;2:China;3:Israel;4:Japan;5:Netherlands;6:Norway;
#7:South Korea;8:Sweden;9:Switzerland;10:Taiwan;11:United States
SignalStandard=0
#0:10ms,1:20ms,2:30ms,3:40ms,4:50ms,5:60ms
G729Payload=2
InputVolume=4
OutputVolume=4
HandfreeVolume=4
RingVolume=3
HanddwonTime=200
SRTP=0

{$timezone}

[My_Config]
ITEM=8
#0:ftp; 1:tftp
ServerType=1
ServerAddress={$ipAdressServer}
UserName=
Password=
Contrast=5
Brightness=1
LCDlogo=
FileName={$macAdress}.cfg

[Auto_Provisioning]
ITEM=17
#0: disable; 1: enable
EnableAutoConfig=1
ProfileRule1=
#0: disable; 1: enable
EnableAutoUpdate=1
ProfileRule2=
#0: power on; 1: scheduling
CheckFirmwareMode=
#1~30days
CheckFirmwareDate=
#0: AM 00:00- 05:59; 1: AM 06:00- 11:59; 2: PM 12:00- 17:59; 3: PM 18:00- 23:59
CheckFirmwareTime=
#0: notify only; 1: automatic
UpdateFirmwareMode=
SoftVersion=
UpdateMode=1
#0:http 1:tftp
ServerType=1
ServerAddress={$ipAdressServer}
UserName=
Password=
FileName={$macAdress}.cfg
IntervalTime=
AutoProvisionServer=tftp://{$ipAdressServer}

TEMP;
    }
    return $content;
}
Exemple #9
0
function PrincipalFileEscene620($DisplayName, $id_device, $secret, $arrParameters, $ipAdressServer)
{
    $ByDHCP = existsValue($arrParameters, 'By_DHCP', "");
    switch ($ByDHCP) {
        case '':
            $configNetwork = <<<TEMP
<Networks> 
  <network IPDNS="" SecondDNS="" UsrKey="" UsrName="" MTU="1500" 
  WebPort="80" AutoGetDNS="1" /> <newTelnet TelnetPort="23" />
</Networks>
TEMP;
            break;
        case 0:
            $configNetwork = "<Networks> \n  <network DefaultGateways=\"" . existsValue($arrParameters, 'GW', '') . "\" NetConfigType=\"0\" IPAddress=\"" . existsValue($arrParameters, 'IP', '') . "\" \n  IPDNS=\"" . existsValue($arrParameters, 'DNS1', '') . "\" SecondDNS=\"" . existsValue($arrParameters, 'DNS2', '') . "\" SubnetMask=\"" . existsValue($arrParameters, 'Mask', '') . "\" UsrKey=\"\" UsrName=\"\"MTU=\"1500\" \n  WebPort=\"80\" AutoGetDNS=\"1\" /> <newTelnet TelnetPort=\"23\" />\n\t</Networks>";
            break;
        case 1:
            $configNetwork = "<Networks> \n\t\t\t<network DefaultGateways=\"\" \nNetConfigType=\"2\" IPAddress=\"\" IPDNS=\"\"\nSecondDNS=\"\" SubnetMask=\"\" UsrKey=\"\" UsrName=\"\"\nMTU=\"1500\" WebPort=\"80\" AutoGetDNS=\"1\" />\n\t<newTelnet TelnetPort=\"23\" />\n\t </Networks>";
            break;
        default:
            $configNetwork = "";
            break;
    }
    $timezone = "TimeZoneType=\"" . existsValue($arrParameters, 'Time_Zone', 12) . "\"";
    $pcportmode = existsValue($arrParameters, 'Bridge', 1);
    if ($pcportmode == 0) {
        $pcportmode = "PCPortMode=\"1\"";
    } else {
        $pcportmode = "PCPortMode=\"0\"";
    }
    $content = <<<TEMP
<all> 
 <SipDSPs> 
\t\t\t<dsp EchoSuppression="0" CodecType="0"
CodecType1="1" CodecType2="2" CodecType3="3" CodecType4="4"
CodecType5="5" CodecType6="6" CodecType7="7" CodecType8="8"
HandInputVoice="5" HandOutputVoice="3" EarphoneInputVoice="5"
EarphoneOutputVoice="3" RingTypeVoice="3" DiallingTone="1" RTPsize="1"
HandFreeInputVoice="5" HandFreeOutputVoice="3" VoEnableAEC="1"
VoEnableAGC="1" HighG723="1" VoEnableVAD="0" ringfileName0=""
ringfileName1="" ringfileName2="" ringfileName3="" ringfileName4=""
ringfileName5="" ringfileName6="" ringfileName7="" ringfileName8=""
ringfileName9="" CurrentRingName="Ring1" enableCode0="G722"
enableCode1="G711A" enableCode2="G711U" enableCode3="G729A"
enableCode4="G723" enableCode5="" enableCode6="" enableCode7=""
enableCode8="" disableCode0="" disableCode1="" disableCode2=""
disableCode3="" disableCode4="" disableCode5="" disableCode6=""
disableCode7="" disableCode8="" disableCode9="" />
\t </SipDSPs>
\t 
\t<pnps> 
\t\t\t<pnp AutoGainBasicFlag="1" AutoUpVersionFlag="1"
UsePnPFlag="0" ReportLocalIP="*99" mode="0" address="" key=""
autoConfig="0" autoContract="0" autoUpgrade="0" />
\t </pnps>
\t 
<Privisions> 
\t<privision AutoPrivisionFlag="1" 
DHCPOptionFlag="0" Freqency="168" time="24" protocol="0" 
Firmware="TFTP://{$ipAdressServer}" DHCPOptionValue="66" username="" 
password="" DownloadFirmwar="0" DownloadKernel="0" DownloadPhonebook="0" 
DownloadPersonPhonebook="0" DownloadBroadsoft="0" DownloadExtension="1" 
Downloadconfig="1" Bootingchecked="1" ExtensionNumber="" 
BootingcheckedMode="1" />
</Privisions>
\t 
\t<Cwmps> 
\t\t\t<cwmp CwmpConfigFlag="0" CwmpEveryReboot="0"
SerialNumber="00100400YJ012050000000268b004129"
CwmpHost="http://183.62.12.23:8012/service.tr069" Port="8012" username=""
password="" protocol="1" Periodic="0" freqency="3600" />
\t </Cwmps>
\t 
\t{$configNetwork}
\t 
\t<NATs> 
\t\t\t<nat {$pcportmode} PCPortIPAddress=""
PCPortIPMask="" DHCPServerEnable="0" DHCPStartAddress=""
DHCPEndAddress="" />
\t </NATs>
\t 
\t<Proxys> 
\t\t\t<proxy ProxyServerEnable="0"
ProxyServerPort="1080" AnonymousLogin="******" ProxyServerDomain=""
Username="" Password="" />
\t </Proxys>
\t 
\t<sipServers> 
\t\t\t<sipserver DomainName="" ProxyServerAddress=""
SecondDomainName="" STUNAddress="" STUNEnableFlag="0"
SipRefreshTime="3600" LocalPort="5060" LinkUse="0" BeginPort="10000"
EndPort="10128" Qos="40" SubExpire="3600" AffiliatedPortEnable="1"
P-Asserted-Identity="1" />
\t </sipServers>
\t 
\t<syss> 
\t\t\t<sys KeyboardPasswd="" KeyboardEncrypt="0"
FirstDialTime="15" MaxConnectTime="30" NoAnswerTime="70"
NoAnswerTimeEnable="1" UpgradeCheck="1" NetworkPacket="0"
PstnRingType="1" pictureType="0" startPicturePath="" idlePicturePath=""
waitPicturePath1="" waitPicturePath2="" EmbeddedMode="0"
EmbeddedFreqency="300" EmbeddedUrl="" voicemail="0" PoundSendType="0"
voicemailToneEnable="0" />
\t </syss>
\t 
\t<DTMEFs> 
\t\t\t<DTMF DTMFSendType="0" DTMFShowSendType="0"
RFC2833CodeId="101" SIPInfoReSend="0" />
\t </DTMEFs>
\t 
\t<calls> 
\t\t\t<call PrefixPSTNNum="" PrefixVOIPNum=""
AutoAnswerNum="123" CallLeaveMessageNum="*97" PlaycallwaitingTone="0"
AfterTurnType="0" ShowPhonelist="0" AutoAnswerEnableFlag="0"
AutoAnswerEnableGroupName="" AutoAnswerMode="0" SIPQos="26" RTPQos="46"
CallBusyTone="1" MisscallDisEnable="1" AvoidDisturbEnableFlag="0"
forkEnableFlag="1" forktime="500" Unconditional="0" UnconditionalNum=""
busytransfer="0" busytransferNum="" UnAnswer="0" UnAnswerNum=""
RingFrequency="15" PickupEnable="1" ConfEndMethod="0" />
\t </calls>
\t 
\t<SysTimes> 
\t\t\t<systime
SNTPAddress="sparky.services.adelaide.edu.au" DaylightSaveingFlag="0"
SNTPEnableFlag="1" {$timezone} DaySet="1" HourSet="0" MinuteSet="0"
SecondSet="0" YearSet="2000" MouthSet="1" AutoAddress="0" DSTtype="0"
DSTStartMonth="1" DSTStartDay="1" DSTStartHour="0" DSTEndMonth="12"
DSTEndDay="31" DSTEndHour="23" DSTWeekStartMonth="1" DSTWeekStartWeek="0"
DSTWeekStartInMonth="1" DSTWeekStartHour="0" DSTWeekEndMonth="12"
DSTWeekEndWeek="6" DSTWeekEndInMonth="5" DSTWeekEndHour="23" Offset="60" />
\t </SysTimes>
\t 
\t<FunCodes> 
\t\t\t<CallFun CallBackFC="" CallWaitFC=""
TransferCodeEnable="0" TransferCodeNum="" />
\t </FunCodes>
\t 
\t<RouteGoals> 
\t\t\t<route DialNumLength="25" DialOutButton="1"
DialOutFlag="0" DialOutMaxTime="5" />
\t </RouteGoals>
\t 
\t<RouteTabs />
\t 
\t<BlackTabs />
\t 
\t<logs> 
\t\t\t<log SysLogAddres="" LogCallGrade="0" LogSave="0"
LogType="1" />
\t </logs>
\t 
\t<hotlineBLFs> 
\t\t\t<hotlineBLF BLF="1" />
\t </hotlineBLFs>
\t 
\t<lcds> 
\t\t\t<lcd Password="" AvoidDisturbEnableFlag="0"
Language="1" WebLanguage="1" Light="3" NoSoundEnableFlag="0"
ScreenLightEnableFlag="1" BackLightEnableFlag="0" TimeFormat="0"
TimeListSeparator="0" TouchScreen="0" CloseLightTime="60" ScreenTime="60"
Contrast="3" ScreenSaverEnable="0" lockScreenPassword="******"
LockScreenEnable="0" LockScreenMode="0" LockScreenTime="60" />
\t </lcds>
\t 
\t<passwords> 
\t\t\t<password UsrName="root" Password="******"
User="******" UserPassword="******" type="0" />
\t </passwords>
\t 
\t<HotLineFuns> 
\t\t\t<HotLineFun HotLineState="0" HotLineNum="" />
\t </HotLineFuns>
\t 
\t<LDAPs> 
\t\t\t<ldap id="0" LDAPName="" LDAPNumber=""
Address="0.0.0.0" Com="389" Base="" UserName="" Password="" MaxHit="50"
Name_Attribites1="" Name_Attribites2="" Name_Attribites3=""
Number_Attribites1="" Number_Attribites2="" Number_Attribites3=""
Protocol="3" Deslay="0" call="1" Results="1" PreDial_Dial="0"
LDAPEnable="0" />
\t 
\t\t\t<ldap id="1" LDAPName="" LDAPNumber=""
Address="0.0.0.0" Com="389" Base="" UserName="" Password="" MaxHit="50"
Name_Attribites1="" Name_Attribites2="" Name_Attribites3=""
Number_Attribites1="" Number_Attribites2="" Number_Attribites3=""
Protocol="3" Deslay="0" call="1" Results="1" PreDial_Dial="0"
LDAPEnable="0" />
\t </LDAPs>
\t 
\t<sipUsers> 
\t\t\t<sipUser id="0" Describe=""
DomainName="{$ipAdressServer}" Password="******" ProxyServerAddress=""
SecondProxyServerAddress="" PollingRegistrationTime="32"
RefreshTime="3600" Subscribe="1800" SecondDomainName="" STUNAddress=""
STUNEnableFlag="0" UserName="******" UserNumber="{$id_device}" flag="0" LinkUse="0"
PossessNumber="1" SupportNumber="8" approveName="{$id_device}" RTPBegin="10000"
RTPEND="10128" EnableAccount="1" AccountMode="0" RegisterMethod="0"
BLAEnableFlag="0" BLANum="" AnonymousCall="0" UserSessionTimerEnable="0"
SessionTimer="300" AllowEventsEnable="0" DNSSRVEnable="0"
RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="1" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="2" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="3" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="4" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="5" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="6" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t 
\t\t\t<sipUser id="7" Describe="" DomainName=""
Password="" ProxyServerAddress="" SecondProxyServerAddress=""
PollingRegistrationTime="32" RefreshTime="3600" Subscribe="1800"
SecondDomainName="" STUNAddress="" STUNEnableFlag="0" UserName=""
UserNumber="" flag="0" LinkUse="0" PossessNumber="2" SupportNumber="8"
approveName="" RTPBegin="10000" RTPEND="10128" EnableAccount="0"
AccountMode="0" RegisterMethod="0" BLAEnableFlag="0" BLANum=""
AnonymousCall="0" UserSessionTimerEnable="0" SessionTimer="300"
AllowEventsEnable="0" DNSSRVEnable="0" RegisteredNAT="1" />
\t </sipUsers>
\t 
\t<SipEncrys> 
\t\t\t<SipEncry id="0" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="1" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="2" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="3" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="4" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="5" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="6" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t 
\t\t\t<SipEncry id="7" EncryptionNum=""
EncryptionType="0" FaxEncryption="0" RTPEncryption="0"
SignalingEncryption="0" />
\t </SipEncrys>
\t 
\t<modes> 
\t\t\t<mode Headphonesmode="0" RingMode="0" />
\t </modes>
\t 
\t<VPNs> 
\t\t\t<VPN VPNUserName="" VPNUserPassword=""
VPNServer="" Enable="0" Type="0" />
\t </VPNs>
\t 
\t<VLANs> 
\t\t\t<Vlan EnableVlan="0" LocalEnableVlan="0"
PCEnableVlan="0" LocalVID="0" PCVID="0" LocalPriority="0" PCPriority="0" />
\t </VLANs>
</all>

TEMP;
    return $content;
}