cutemeister
18/04/2011, 01h29
je n'arrive pas a connecter asterisk a mysql '' enfin je crois "
mon fichier res_mysql.conf
[general]
dbhost = 127.0.0.1
dbname = siprealtime
dbuser = asterisk
dbpass = cutemeister
dbport = 3306
dbsock = /var/lib/mysql/mysql.sock
mon fichier extconfig.conf
[settings]
sipusers => mysql,general,sipfriends
sippeers => mysql,general,sipfriends
ma table sipfriends
CREATE TABLE `sipfriends` (
`name` varchar(40) NOT NULL default ' ',
`type` varchar(10) NOT NULL default ' ',
`defaultuser` varchar(40) default NULL,
`fromuser` varchar(40) default NULL,
`fromdomain` varchar(40) default NULL,
`secret` varchar(40) default NULL,
`md5secret` varchar(40) default NULL,
`auth` varchar(10) default NULL,
`mailbox` varchar(20) default NULL,
`subscribemwi` varchar(10) default NULL,
`vmexten` varchar(20) default NULL,
`callerid` varchar(40) default NULL,
`cid_number` varchar(40) default NULL,
`callingpres` varchar(20) default NULL,
`usereqphone` varchar(10) default NULL,
`language` varchar(10) default NULL,
`incominglimit` varchar(10) default NULL,
`context` varchar(40) NOT NULL default ' ',
`subscribecontext` varchar(40) default NULL,
`amaflags` varchar(20) default NULL,
`accountcode` varchar(20) default NULL,
`musicclass` varchar(20) default NULL,
`mohsuggest` varchar(20) default NULL,
`allowtransfer` varchar(20) default NULL,
`callgroup` varchar(20) default NULL,
`pickupgroup` varchar(20) default NULL,
`autoframing` varchar(10) default NULL,
`disallow` varchar(20) default 'all',
`allow` varchar(20) default NULL,
`maxcallbitrate` varchar(15) default NULL,
`host` varchar(40) default 'dynamic',
`outboundproxy` varchar(40) default NULL,
`ipaddr` varchar(20) NOT NULL default ' ',
`defaultip` varchar(20) NOT NULL default '0.0.0.0',
`port` int(6) NOT NULL default '0',
`fullcontact` varchar(60) default NULL,
`insecure` varchar(20) default NULL,
`qualify` varchar(15) default NULL,
`regseconds` int(11) NOT NULL default '0',
`regexten` varchar(20) default NULL,
`regserver` varchar(20) default NULL,
`rtptimeout` varchar(15) default NULL,
`rtpholdtimeout` varchar(15) default NULL,
`rtpkeepalive` varchar(15) default NULL,
`lastms` int(11) NOT NULL default '-1',
`setvar` varchar(200) default NULL,
`Nat` varchar(3) NOT NULL,
`useragent` varchar(40) default NULL,
`Directmedia` varchar(3) default 'no',
`Deny` varchar(31) default '',
`Permit` varchar(31) default NULL,
PRIMARY KEY (`name`),
KEY `host` (`host`,`port`),
KEY `ipaddr` (`ipaddr`,`port`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
et la j'ai une grosse erreur qui m'apparait sur la console asterisk mais je ne comprends pas d'ou cela peut bien venir
[Apr 18 01:34:35] WARNING[3418]: config.c:2018 find_engine: Realtime mapping for 'sippeers' found to engine 'mysql', but the engine is not available
si une âme charitable pouvait bien m'aider .... :'(
mon fichier res_mysql.conf
[general]
dbhost = 127.0.0.1
dbname = siprealtime
dbuser = asterisk
dbpass = cutemeister
dbport = 3306
dbsock = /var/lib/mysql/mysql.sock
mon fichier extconfig.conf
[settings]
sipusers => mysql,general,sipfriends
sippeers => mysql,general,sipfriends
ma table sipfriends
CREATE TABLE `sipfriends` (
`name` varchar(40) NOT NULL default ' ',
`type` varchar(10) NOT NULL default ' ',
`defaultuser` varchar(40) default NULL,
`fromuser` varchar(40) default NULL,
`fromdomain` varchar(40) default NULL,
`secret` varchar(40) default NULL,
`md5secret` varchar(40) default NULL,
`auth` varchar(10) default NULL,
`mailbox` varchar(20) default NULL,
`subscribemwi` varchar(10) default NULL,
`vmexten` varchar(20) default NULL,
`callerid` varchar(40) default NULL,
`cid_number` varchar(40) default NULL,
`callingpres` varchar(20) default NULL,
`usereqphone` varchar(10) default NULL,
`language` varchar(10) default NULL,
`incominglimit` varchar(10) default NULL,
`context` varchar(40) NOT NULL default ' ',
`subscribecontext` varchar(40) default NULL,
`amaflags` varchar(20) default NULL,
`accountcode` varchar(20) default NULL,
`musicclass` varchar(20) default NULL,
`mohsuggest` varchar(20) default NULL,
`allowtransfer` varchar(20) default NULL,
`callgroup` varchar(20) default NULL,
`pickupgroup` varchar(20) default NULL,
`autoframing` varchar(10) default NULL,
`disallow` varchar(20) default 'all',
`allow` varchar(20) default NULL,
`maxcallbitrate` varchar(15) default NULL,
`host` varchar(40) default 'dynamic',
`outboundproxy` varchar(40) default NULL,
`ipaddr` varchar(20) NOT NULL default ' ',
`defaultip` varchar(20) NOT NULL default '0.0.0.0',
`port` int(6) NOT NULL default '0',
`fullcontact` varchar(60) default NULL,
`insecure` varchar(20) default NULL,
`qualify` varchar(15) default NULL,
`regseconds` int(11) NOT NULL default '0',
`regexten` varchar(20) default NULL,
`regserver` varchar(20) default NULL,
`rtptimeout` varchar(15) default NULL,
`rtpholdtimeout` varchar(15) default NULL,
`rtpkeepalive` varchar(15) default NULL,
`lastms` int(11) NOT NULL default '-1',
`setvar` varchar(200) default NULL,
`Nat` varchar(3) NOT NULL,
`useragent` varchar(40) default NULL,
`Directmedia` varchar(3) default 'no',
`Deny` varchar(31) default '',
`Permit` varchar(31) default NULL,
PRIMARY KEY (`name`),
KEY `host` (`host`,`port`),
KEY `ipaddr` (`ipaddr`,`port`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
et la j'ai une grosse erreur qui m'apparait sur la console asterisk mais je ne comprends pas d'ou cela peut bien venir
[Apr 18 01:34:35] WARNING[3418]: config.c:2018 find_engine: Realtime mapping for 'sippeers' found to engine 'mysql', but the engine is not available
si une âme charitable pouvait bien m'aider .... :'(