<?php

/**
 * Fanvil Modules Phone File
 *
 * @author gunlinux 
 * @license MPL / GPLv2 / LGPL
 * @package Provisioner
 */

class endpoint_fanvil_x3x4sip_phone extends endpoint_fanvil_base {

    public $family_line = 'x3x4sip';

    function parse_lines_hook($line_data, $line_total) {
		$line_data['debug'] = print_r($line_data,true);
        return($line_data);
    }
	
    function prepare_for_generateconfig() {
        $this->mac = strtolower($this->mac);
	parent::prepare_for_generateconfig();
	$this->timezone['gmtoffset']= (int)($this->timezone['gmtoffset'] / 3600);
	$this->timezone['timezone']= $this->timezone['gmtoffset'] * 4;
	$this->timezone['gmtoffset']= sprintf('%02d',$this->timezone['gmtoffset']);
    }

}
