def createAsteriskConfig(self):
		c = AstConf("op_server.cfg")
                c.setSection("general")
		if self.web_hostname:
			c.appendValue(self, "web_hostname")	
		c.appendValue(self, "security_code")	
		c.appendValue(self, "poll_interval")	
		panelutils.createManagerConfig(self)
		panelutils.createDefaultConfig(c)	
	def createAsteriskConfig(self):
		c = AstConf("op_server.cfg")
                c.setSection("general")
		if self.web_hostname:
			c.appendValue(self, "web_hostname")	

		c.appendValue(self, "security_code")	
		c.appendValue(self, "poll_interval")	
		panelutils.createManagerConfig(self)
		panelutils.createDefaultConfig(c)	

		c = AstConf("op_style.cfg")
		panelutils.createDefaultStyle(c)

		LABEL_FONT_SIZE = 20
		LABEL_MARGIN_TOP = 20
		LABEL_MARGIN_LEFT = 38
		CLID_FONT_SIZE = 13
		BTN_WIDTH = 246
		BTN_HEIGHT = 70
		BTN_ROUND_BORDER = 8
		LED_SCALE = 90
		LED_MARGIN_TOP = 34
		LED_MARGIN_LEFT = 20
		ICON1_MARGIN_TOP = 43
		ICON1_MARGIN_LEFT = -34
		ICON1_SCALE = 17
		ICON2_MARGIN_TOP = 46
		ICON2_MARGIN_LEFT = -29
		ICON2_SCALE = 14
		ICON3_MARGIN_TOP = 34
		ICON3_MARGIN_LEFT = -36
		ICON3_SCALE = 20
		ICON4_MARGIN_TOP = 33
		ICON4_MARGIN_LEFT = -34
		ICON4_SCALE = 16
		ICON5_MARGIN_TOP = 32
		ICON5_MARGIN_LEFT = -33
		ICON5_SCALE = 16
		ICON6_MARGIN_TOP = 32
		ICON6_MARGIN_LEFT = -33
		ICON6_SCALE = 16
		MAIL_MARGIN_LEFT = -23
		MAIL_MARGIN_TOP = 13
		MAIL_SCALE = 9
		TIMER_FONT_SIZE = 13
		TIMER_MARGIN_TOP = 48
		ARROW_SCALE = 70
		ARROW_MARGIN_TOP = 10

		if self.btnsize == "vsmall": scale = 0.6
		elif self.btnsize == "small": scale = 0.8
		elif self.btnsize == "large": scale = 1.2
		elif self.btnsize == "vlarge": scale = 1.4
		else: scale = 1

		c.append("label_font_size=%s" % int(LABEL_FONT_SIZE * scale) )
		c.append("label_margin_top=%s" % ( int(BTN_HEIGHT * scale)/2 - int(LABEL_FONT_SIZE * scale)/2) )

		c.append("label_margin_left=%s" % int(LABEL_MARGIN_LEFT * scale) )
		c.append("clid_font_size=%s" % int(CLID_FONT_SIZE * scale) )
		c.append("btn_width=%s" % int(BTN_WIDTH * scale) )
		c.append("btn_height=%s" % int(BTN_HEIGHT * scale) )
		c.append("btn_round_border=%s" % int(BTN_ROUND_BORDER * scale) )

		c.append("led_scale=%s" % int(LED_SCALE * scale) )
		c.append("led_margin_top=%s" % int(LED_MARGIN_TOP * scale) )
		c.append("led_margin_left=%s" % int(LED_MARGIN_LEFT * scale) )
		c.append("icon1_margin_top=%s" % int(ICON1_MARGIN_TOP * scale) )
		c.append("icon1_margin_left=%s" % int(ICON1_MARGIN_LEFT * scale) )
		c.append("icon1_scale=%s" % int(ICON1_SCALE * scale) )
		c.append("icon2_margin_top=%s" % int(ICON2_MARGIN_TOP * scale) )
		c.append("icon2_margin_left=%s" % int(ICON2_MARGIN_LEFT * scale) )
		c.append("icon2_scale=%s" % int(ICON2_SCALE * scale) )
		c.append("icon3_margin_top=%s" % int(ICON3_MARGIN_TOP * scale) )
		c.append("icon3_margin_left=%s" % int(ICON3_MARGIN_LEFT * scale) )
		c.append("icon3_scale=%s" % int(ICON3_SCALE * scale) )
		c.append("icon4_margin_top=%s" % int(ICON4_MARGIN_TOP * scale) )
		c.append("icon4_margin_left=%s" % int(ICON4_MARGIN_LEFT * scale) )
		c.append("icon4_scale=%s" % int(ICON4_SCALE * scale) )
		c.append("icon5_margin_top=%s" % int(ICON5_MARGIN_TOP * scale) )
		c.append("icon5_margin_left=%s" % int(ICON5_MARGIN_LEFT * scale) )
		c.append("icon5_scale=%s" % int(ICON5_SCALE * scale) )
		c.append("icon6_margin_top=%s" % int(ICON6_MARGIN_TOP * scale) )
		c.append("icon6_margin_left=%s" % int(ICON6_MARGIN_LEFT * scale) )
		c.append("icon6_scale=%s" % int(ICON6_SCALE * scale) )
		c.append("mail_margin_left=%s" % int(MAIL_MARGIN_LEFT * scale) )
		c.append("mail_margin_top=%s" % int(MAIL_MARGIN_TOP * scale) )
		c.append("mail_scale=%s" % int(MAIL_SCALE * scale) )
		c.append("timer_font_size=%s" % int(TIMER_FONT_SIZE * scale))
		c.append("timer_margin_top=%s "% int(TIMER_MARGIN_TOP * scale) )
		c.append("arrow_scale=%s" % int(ARROW_SCALE * scale) )
		c.append("arrow_margin_top=%s" % int(ARROW_MARGIN_TOP * scale) )