Re: PostgreSQL
конфиги для SIP via MySQL:
----------------------------
[root@dc serg]# cat /etc/asterisk/extconfig.conf
[settings]
sipusers => mysql,asterisk,sip
sippeers => mysql,asterisk,sip
[root@dc serg]# cat /etc/asterisk/res_mysql.conf
[general]
dbhost = localhost
dbname = asterisk
dbuser = asterisk
dbpass = xxxxxxxx
;dbport = 3306
;dbsock = /tmp/mysql.sock
dbsock = /var/lib/mysql/mysql.sock
----------------------------------------------------
--
-- Table structure for table `sip`
--
CREATE TABLE sip (
id int(11) NOT NULL auto_increment,
name varchar(80) NOT NULL default '',
accountcode varchar(20) default NULL,
amaflags varchar(7) default NULL,
callgroup varchar(10) default NULL,
callerid varchar(80) default NULL,
canreinvite char(3) default 'yes',
context varchar(80) default NULL,
defaultip varchar(15) default NULL,
dtmfmode varchar(7) default NULL,
fromuser varchar(80) default NULL,
fromdomain varchar(80) default NULL,
host varchar(31) NOT NULL default '',
insecure varchar(4) default NULL,
language char(2) default NULL,
mailbox varchar(50) default NULL,
md5secret varchar(80) default NULL,
nat varchar(5) NOT NULL default 'no',
permit varchar(95) default NULL,
deny varchar(95) default NULL,
mask varchar(95) default NULL,
pickupgroup varchar(10) default NULL,
port varchar(5) NOT NULL default '',
qualify char(3) default NULL,
restrictcid char(1) default NULL,
rtptimeout char(3) default NULL,
rtpholdtimeout char(3) default NULL,
secret varchar(80) default NULL,
type varchar(6) NOT NULL default 'friend',
username varchar(80) NOT NULL default '',
disallow varchar(100) default 'all',
allow varchar(100) default 'g729;ilbc;gsm;ulaw;alaw',
musiconhold varchar(100) default NULL,
regseconds int(11) NOT NULL default '0',
ipaddr varchar(15) NOT NULL default '',
regexten varchar(80) NOT NULL default '',
cancallforward char(3) default 'yes',
PRIMARY KEY (id),
UNIQUE KEY name (name),
KEY name_2 (name)
) TYPE=MyISAM ROW_FORMAT=DYNAMIC;
|