back to README




Installation:
==============================================================================

Step 1:
==============================================================================
	untar archive - you probably did it!
	Modify Makefile



Step 2: 
==============================================================================
	make
	make install

	copy sample dynextendb.conf-dist to your asterisk configuration path,
	i.e. to /etc/asterisk/dynextendb.conf



Step 3:
==============================================================================
	smoke a cigarette - you're almost done!



Step 4:
==============================================================================
	change dynextendb.conf for your database:

	[global]
	hostname=localhost		- database host
	user=asterisk			- username to connect
	password=secret			- your db password
	dbname=hotline			- name of database
	tblname=extensions		- name of extensions-table



Step 5:
==============================================================================
	Create extensions table in your database:

		CREATE TABLE extensions (
		   eid int(11) NOT NULL auto_increment,
		   context tinytext NOT NULL,
		   exten tinytext NOT NULL,
		   pri tinyint(4) DEFAULT '0' NOT NULL,
		   appl tinytext NOT NULL,
		   data tinytext NOT NULL,
		   PRIMARY KEY (eid)
		);

	(see file extensions.sql)

	more detailed information:

	your probably know how such an extension line from extensions.conf looks
	like. you just have to put these lines into the database, like this:

	(EXAMPLE 1)
	===========
	example from extensions.conf:
		exten => 38039159,1,AGI,/etc/asterisk/agi/agi_reboot.agi
	becomes:
		INSERT INTO tblname (context, exten, pri, appl, data) 
			VALUES ('remote','38039159','1','AGI','/etc/asterisk/agi/agi_reboot.agi');


	(EXAMPLE 2)
	===========
	example from extensions.conf:
		exten => 93521714,8,Dial,CAPI/38039159:0108101783927380|30|r
	becomes:
		INSERT INTO tblname (context, exten, pri, appl, data)
			VALUES ('remote','93521714','8','Dial','CAPI/38039159:0108101783927380|30|r');


	in general:
		exten => 93521714,	8,	Dial,	CAPI/38039159:0108101783927380|30|r

			 exten		pri	appl	data


	


Step 6:
==============================================================================
	insert extensions into table and run asterisk