1

Тема: Asterisk

Есть несколько отличных инструкций как поднять Asterisk с нуля.

Post's attachments

IVR 1.43 kb, 1 downloads since 2019-03-18 

Добавление sip в БД 198 b, 2 downloads since 2019-03-18 

Телефония Asterisk с нуля. Текстовая инструкция. Коды.pdf 468.12 kb, 2 downloads since 2019-03-18 

Телефония Asterisk с нуля. Текстовая инструкция.pdf 1.04 mb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2

Re: Asterisk

sip.conf перенести пользователей в realtime mysql

extconfig.conf

[settings]
sipusers => mysql,general,sip_conf
sippeers => mysql,general,sip_conf
res_mysql.conf

[general]
dbhost = 127.0.0.1
dbname = astdb
dbuser = astdb
dbpass = astdb
dbport = 3306
sip.conf

[general]
context=public
realm=sip.local
bindport=5060 
bindaddr=10.10.10.1 
srvlookup=yes
language=ru
disallow=all
allow=ulaw
allow=alaw
allow=gsm
type=friend
rtcachefriends = yes
rtcache=yes
localnet=10.10.10.0/255.255.255.0
дамп базы

CREATE TABLE `sip_conf` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `disallow` varchar(100) DEFAULT 'all',
  `allow` varchar(100) DEFAULT 'gsm;ulaw;alaw;g729',
  `context` varchar(80) NOT NULL DEFAULT 'phone',
  `dtmfmode` varchar(7) DEFAULT NULL,
  `host` varchar(31) NOT NULL DEFAULT 'dynamic',
  `insecure` varchar(20) DEFAULT NULL,
  `mailbox` varchar(50) DEFAULT NULL,
  `musiconhold` varchar(100) DEFAULT NULL,
  `nat` varchar(22) NOT NULL DEFAULT 'force_rport,comedia',
  `secret` varchar(80) DEFAULT NULL,
  `type` varchar(6) NOT NULL DEFAULT 'friend',
  `username` varchar(80) NOT NULL DEFAULT '',
  `videosupport` enum('yes','no') DEFAULT 'yes',
  `name` varchar(50) DEFAULT NULL,
  `ipaddr` varchar(20) DEFAULT NULL,
  `port` varchar(5) NOT NULL DEFAULT '',
  `regseconds` int(11) NOT NULL DEFAULT '0',
  `lastms` varchar(20) DEFAULT NULL,
  `fullcontact` varchar(80) DEFAULT NULL,
  `useragent` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;


--
-- Dumping data for table `sip_conf`
--

INSERT INTO `sip_conf` VALUES (2,'all','gsm;ulaw;alaw;g729','phone',NULL,'dynamic',NULL,NULL,NULL,'force_rport,comedia','100001','friend','100001','yes','100001',NULL,'',0,NULL,NULL,NULL);
проверяем коннект к MySQL:
# mysql -u astdb -pastdb -h 127.0.0.1 astdb

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 391
Server version: 5.5.43-0+deb7u1 (Debian)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>