Код: Выделить всё
cat /dev/cuau0
Код: Выделить всё
cat /dev/cuau0
Вот нормальный вариант без корючек и нужный лог calls.log, но в лог currentcalls.log нечего не поподает и в MySQL нечего непоподает(((fox писал(а):Доброе время суток, Господа!
Поставил atslog по статье.
Атс имеем в наличии LG LDK-100, в calls.log поступают следующие данные:Но в базу нечего не поступает(((6078000 I:01 01, 4C 1 1(1,330)
08/01/11 TIME: 15:11:00
6078000 I:01 02, 4C 1 1(1,330)
6078000 I:01 03, 4C 1 1(1,330)
6078000 I:01 04, 4C 1 1(1,330)
6078000 I:01 05, 4C 1 1(1,330)
6078000 I:01 06, 4C 1 1(1,330)
6078000 I:01 07, 4C 1 1(1,330)
6078000 I:01 08, 4C 1 1(1,330)
6078000 I:01 09, 4C 1 1(1,330)
6078002 D>01 02, 42 00 00
6078002 D>01 02, 41 05 03
6078002 D>01 02, 53 15 11
6078002 D>01 02, 54 20 20
6078002 D>01 03, 42 00 00
6078002 D>01 03, 41 05 03
6078002 D>01 03, 53 15 11
6078002 D>01 03, 54 20 20
6078002 D>01 04, 42 00 00
6078002 D>01 04, 41 05 03
6078002 D>01 04, 53 15 11
6078002 D>01 04, 54 20 20
6078002 D>01 05, 42 00 00
6078002 D>01 05, 41 05 03
6078002 D>01 05, 53 15 11
6078002 D>01 05, 54 20 20
6078002 D>01 06, 42 00 00
6078002 D>01 06, 41 05 03
6078002 D>01 06, 53 15 11
6078002 D>01 06, 54 20 20
6078005 D>01 02, 50 00 11
6078005 D>01 02, 51 08 01
6078005 D>01 02, 41 0B 02
6078005 D>01 03, 50 00 11
6078005 D>01 03, 51 08 01
6078005 D>01 03, 41 0B 02
6078005 D>01 04, 50 00 11
6078005 D>01 04, 51 08 01
6078005 D>01 04, 41 0B 02
6078005 D>01 05, 50 00 11
6078005 D>01 05, 51 08 01
6078005 D>01 05, 41 0B 02
6078005 D>01 06, 50 00 11
.........................
Как быть? Куда копать, вот конф:Спасибо за внимание!Код: Выделить всё
build=664 sqlmaspasswd=atslog sqlhost=localhost sqldatabase=atslog sqlmasteruser=atslog sqltype=mysql port=cuau0 speed=19200 charsize=8 parity=n stopbits=1 bindir=/usr/local/bin libdir=/usr/local/libexec/atslog logdir=/var/log/atslog sharedir=/usr/local/share/atslog langdir=lang atslogd=atslogd atslogd_flags= masterscript=atslogmaster atslogdb=atslogdb.pl cleardb=atslogcleardb.pl callslogfile=calls.log curcallslogfile=currentcalls.log notwritelog=notwrite.log debug=no startlogfile=atstart.log pidfile=/var/run/atslogd.pid howmonth=12 model=LDK-300 syslogfacility=user.err fastwrite=yes
Код: Выделить всё
[Wed Aug 24 15:54:29 2011] [error] [client 192.168.1.41] PHP Warning: mysql_pconnect(): Headers and client library minor version mismatch. Headers:50154 Library:50300 in /var/www/atslog/include/adodb/drivers/adodb-mysql.inc.php on line 376
[Wed Aug 24 15:54:29 2011] [error] [client 192.168.1.41] PHP Notice: Undefined variable: color in /var/www/atslog/include/set/commonData.php on line 58
[Wed Aug 24 15:54:41 2011] [error] [client 192.168.1.41] PHP Warning: mysql_pconnect(): Headers and client library minor version mismatch. Headers:50154 Library:50300 in /var/www/atslog/include/adodb/drivers/adodb-mysql.inc.php on line 376
[Wed Aug 24 15:54:41 2011] [error] [client 192.168.1.41] PHP Notice: Undefined variable: color in /var/www/atslog/include/set/commonData.php on line 58
[Wed Aug 24 15:54:41 2011] [error] [client 192.168.1.41] PHP Notice: Trying to get property of non-object in /var/www/atslog/include/set/functions.php on line 438
[Wed Aug 24 15:54:48 2011] [error] [client 192.168.1.41] PHP Warning: mysql_pconnect(): Headers and client library minor version mismatch. Headers:50154 Library:50300 in /var/www/atslog/include/adodb/drivers/adodb-mysql.inc.php on line 376
[Wed Aug 24 15:54:48 2011] [error] [client 192.168.1.41] PHP Notice: Undefined variable: color in /var/www/atslog/include/set/commonData.php on line 58
[Wed Aug 24 15:54:48 2011] [error] [client 192.168.1.41] PHP Notice: Trying to get property of non-object in /var/www/atslog/include/set/functions.php on line 438
[Wed Aug 24 15:54:53 2011] [error] [client 192.168.1.41] PHP Warning: mysql_pconnect(): Headers and client library minor version mismatch. Headers:50154 Library:50300 in /var/www/atslog/include/adodb/drivers/adodb-mysql.inc.php on line 376
[Wed Aug 24 15:54:53 2011] [error] [client 192.168.1.41] PHP Notice: Undefined variable: color in /var/www/atslog/include/set/commonData.php on line 58
[Wed Aug 24 15:54:53 2011] [error] [client 192.168.1.41] PHP Notice: Trying to get property of non-object in /var/www/atslog/include/set/functions.php on line 438
Код: Выделить всё
ysql_pconnect(): Headers and client library minor version mismatch. Headers:50154 Library:50300
Код: Выделить всё
aptitude show php5-mysql
Пакет: php5-mysql
Новый: да
Состояние: установлен
Автоматически установлен: нет
Версия: 5.3.5-1ubuntu7.2
Приоритет: необязательный
Раздел: web
Сопровождающий: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Размер в распакованном виде: 250 k
Зависимости: libc6 (>= 2.4), libmysqlclient16 (>= 5.1.21-1),
phpapi-20090626+lfs, php5-common (= 5.3.5-1ubuntu7.2)
Конфликтует: php5-mysqli
Заменяет: php5-mysqli
Описание: MySQL module for php5
This package provides modules for MySQL database connections directly from PHP
scripts. It includes the generic "mysql" module which can be used to connect
to all versions of MySQL, an improved "mysqli" module for MySQL version 4.1 or
later, and the pdo_mysql module for use with the PHP Data Object extension.
PHP5 is a widely-used general-purpose scripting language that is especially
suited for Web development and can be embedded into HTML. The goal of the
language is to allow web developers to write dynamically generated pages
quickly. This version of PHP5 was built with the Suhosin patch.
Сайт: http://www.php.net/
Код: Выделить всё
aptitude search pdo
i ifupdown - высокоуровневые инструменты для настройки
p ifupdown-extra - Network scripts for ifupdown
v ifupdown-scripts -
p ifupdown-scripts-zg2 - Zugschlus' interface scripts for ifupdown'
p python-setupdocs - setuptools plugin that automates building
p sheepdog - A distributed storage system for KVM.
Код: Выделить всё
| 2011-10-15 13:18:49 | 0 | 234 | 721 | 2 | 997654321 | 43 | 0.000 |
| 2011-10-15 13:16:07 | 0 | 219 | 722 | 2 | 987654321 | 627 | 0.000 |
Код: Выделить всё
`number` decimal(65,0) unsigned NOT NULL default '0',
Код: Выделить всё
`number` varchar(18) default NULL,
Код: Выделить всё
[root@ats /usr/home/atslog]# mysql
mysql> use atslog;
ALTER TABLE calls MODIFY number VARCHAR(18) default NULL;
Код: Выделить всё
$LocalCalls='^[^0]';
$LongDistanceCalls='^0.+';
$InternationalCalls='^00.+';
$MobileCallsPrefix="^0";
$MobileCallsSuffix=".+";
Код: Выделить всё
dmesg | grep usb
Код: Выделить всё
Mon Oct 24 18:39:50 FET 2011 atslogd[27421]: stopped
Mon Oct 24 18:39:50 FET 2011 atslogd[27421]: Closing CDR stream
Mon Oct 24 18:39:50 FET 2011 atslogd[27421]: Exiting on signal 15
Mon Oct 24 18:39:50 FET 2011 atslogd[27970]: Starting
Mon Oct 24 18:43:31 FET 2011 atslogd[27970]: stopped
Mon Oct 24 18:43:31 FET 2011 atslogd[27970]: Closing CDR stream
Mon Oct 24 18:43:31 FET 2011 atslogd[27970]: Exiting on signal 15
Mon Oct 24 18:43:31 FET 2011 atslogd[28352]: Starting
Mon Oct 24 18:55:03 FET 2011 atslogd[28352]: stopped
Mon Oct 24 18:55:03 FET 2011 atslogd[28352]: Closing CDR stream
Mon Oct 24 18:55:03 FET 2011 atslogd[28352]: Exiting on signal 15
Mon Oct 24 18:55:04 FET 2011 atslogd[29764]: Starting
Mon Oct 24 18:56:17 FET 2011 atslogd[29764]: stopped
Mon Oct 24 18:56:17 FET 2011 atslogd[29764]: Closing CDR stream
Mon Oct 24 18:56:17 FET 2011 atslogd[29764]: Exiting on signal 15
Mon Oct 24 18:56:17 FET 2011 atslogd[29896]: Starting
Код: Выделить всё
build=664
port=ttyS0
speed=9600
Код: Выделить всё
atslogmaster restart
Код: Выделить всё
dmesg | grep usb