--}}
Новая тема
Вы не можете создавать новые темы.
Т.к. вы неавторизованы на сайте. Пожалуйста назовите себя или зарегистрируйтесь.
Список тем

знатокам asterisk , нужна помощь .

Нужен совет (поиск решения проблемы. не для купли-продажи)
2448
41
С друзьями на NN.RU
В социальных сетях
Поделиться
trak1
01.11.2013
Начитавшись разных форумов решил для себя и своей семьи поставить этот чудо сервер телефонии.Начитавшись форумов , взялся за дело .Вроде всё хорошо шло , но упёрся в стену.Не могу прикрутить к нему модем , что бы звонки шли через gsm. Третий день бьюсь с установкой модулей всё выскакивают ошибки.Может есть кто бы взялся прикрутить это несчастный модем к серверу, за вознаграждение или проконсультировал.
7aladin
01.11.2013
модем то готов к использованию? голос не залочен?
USB устройства в системе появляются?
trak1
01.11.2013
Модем разлочен , голос активировал .Система видит модем .Весь трабл , не могу установить модуль chan_datacard или chan_dongle.Т.е скачивается , разархивируется далее пишу команду make и тут выскакивает ошибка.Вот с этим уже 3 дня сижу.
7aladin
01.11.2013
требование к версии ядра соблюдено?
trak1
01.11.2013
Linux localhost.localdomain 2.6.32-358.23.2.el6.i686 #1 SMP Wed Oct 16 17:21:31 UTC 2013 i686 i686 i386 GNU/Linux
Читал что с этим ядром тоже работает , ядро если пересобирать для меня пока тёмный лес )))))
ph03nix
01.11.2013
есть же разжеванный ман
habrahabr.ru/post/160299/
trak1
01.11.2013
Попробую щас по нему сделать.Спасибо.
mik-mak
01.11.2013
Что за модем?
Какие ошибки лезут?

Думаю, сам по себе астериск тут ни причём, ибо не он модемом заведует.. Следовательно, вопрос меняется на такой: нужно подключить 3G модем (модель) на линуксовую систему (дистрибутив)..
Кактотак..

ЗЫ.. Чёта ступил :)) Тоесь, ты хочешь сделать GSM-шлюз?
trak1
01.11.2013
Да gsm шлюз .Т.е при наборе определённых номеров звонки должны идти через модем , а остальные либо по внутренним номерам или по sip. Забыл , модем huawei 1550. У меня беда в том что я не очень то в познании centOS и вообще Linux.
trak1
01.11.2013
Вот такую ошибку выдаёт make: *** No targets specified and no makefile found. Stop.
mik-mak
01.11.2013
Так.. А в какой директории ты make пишешь, тама makefile то есть?
Прям напиши командами, чего делаешь..
trak1
01.11.2013
cd /usr/tmp
wget softnastroy.com/downloads/asterisk/chan_dongle-1.1.r14.tgz
tar xvfz chan_dongle-1.1.r14.tgz
cd /usr/tmp/chan_dongle-1.1.r14
./configure
make
И далее выдаёт make: *** No targets specified and no makefile found. Stop.
вот как то так Забыл сказать операционка centOS 6
Alex5252
01.11.2013
А что выдаёт на команду:
./configure
?
trak1
01.11.2013
ну я так понимаю модуль собирается для установки.Щас повторю операцию и выложу полностью.
trak1
01.11.2013
Вот
[root@localhost tmp]# wget softnastroy.com/downloads/asterisk/chan_dongle-1.1.r14.tgz
--2013-11-02 03:05:22-- softnastroy.com/downloads/asterisk/chan_dongle-1.1.r14.tgz
Resolving softnastroy.com ... 88.198.92.93
Connecting to softnastroy.com|88.198.92.93|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189204 (185K) [application/x-gzip]
Saving to: “chan_dongle-1.1.r14.tgz”

100%[======================================>] 189,204 211K/s in 0.9s

2013-11-02 03:05:24 (211 KB/s) - “chan_dongle-1.1.r14.tgz” saved [189204/189204]

[root@localhost tmp]# tar xvfz chan_dongle-1.1.r14.tgz
chan_dongle-1.1.r14/
chan_dongle-1.1.r14/TODO.txt
chan_dongle-1.1.r14/ringbuffer.c
chan_dongle-1.1.r14/single.c
chan_dongle-1.1.r14/config.h.in
chan_dongle-1.1.r14/manager.h
chan_dongle-1.1.r14/helpers.h
chan_dongle-1.1.r14/pdiscovery.c
chan_dongle-1.1.r14/README.txt
chan_dongle-1.1.r14/install-sh
chan_dongle-1.1.r14/mixbuffer.h
chan_dongle-1.1.r14/pdu.h
chan_dongle-1.1.r14/channel.c
chan_dongle-1.1.r14/at_read.c
chan_dongle-1.1.r14/BUGS
chan_dongle-1.1.r14/test/
chan_dongle-1.1.r14/test/test1.c
chan_dongle-1.1.r14/test/parse.c
chan_dongle-1.1.r14/cpvt.h
chan_dongle-1.1.r14/Makefile.in
chan_dongle-1.1.r14/at_read.h
chan_dongle-1.1.r14/mixbuffer.c
chan_dongle-1.1.r14/cli.c
chan_dongle-1.1.r14/pdiscovery.h
chan_dongle-1.1.r14/memmem.c
chan_dongle-1.1.r14/at_parse.c
chan_dongle-1.1.r14/memmem.h
chan_dongle-1.1.r14/etc/
chan_dongle-1.1.r14/etc/dongle.conf
chan_dongle-1.1.r14/etc/extensions.conf
chan_dongle-1.1.r14/missing
chan_dongle-1.1.r14/app.c
chan_dongle-1.1.r14/export.h
chan_dongle-1.1.r14/manager.c
chan_dongle-1.1.r14/pdu.c
chan_dongle-1.1.r14/COPYRIGHT.txt
chan_dongle-1.1.r14/chan_dongle.h
chan_dongle-1.1.r14/char_conv.h
chan_dongle-1.1.r14/mutils.h
chan_dongle-1.1.r14/LICENSE.txt
chan_dongle-1.1.r14/cli.h
chan_dongle-1.1.r14/cpvt.c
chan_dongle-1.1.r14/config.sub
chan_dongle-1.1.r14/dc_config.h
chan_dongle-1.1.r14/config.guess
chan_dongle-1.1.r14/at_response.c
chan_dongle-1.1.r14/char_conv.c
chan_dongle-1.1.r14/at_command.h
chan_dongle-1.1.r14/ringbuffer.h
chan_dongle-1.1.r14/at_queue.h
chan_dongle-1.1.r14/configure
chan_dongle-1.1.r14/tools/
chan_dongle-1.1.r14/tools/tty.c
chan_dongle-1.1.r14/tools/discovery.c
chan_dongle-1.1.r14/tools/tty.h
chan_dongle-1.1.r14/chan_dongle.c
chan_dongle-1.1.r14/configure.in
chan_dongle-1.1.r14/at_response.h
chan_dongle-1.1.r14/contrib/
chan_dongle-1.1.r14/contrib/openwrt/
chan_dongle-1.1.r14/contrib/openwrt/asterisk18-chan-dongle/
chan_dongle-1.1.r14/contrib/openwrt/asterisk18-chan-dongle/Makefile
chan_dongle-1.1.r14/contrib/openwrt/asterisk16-chan-dongle/
chan_dongle-1.1.r14/contrib/openwrt/asterisk16-chan-dongle/Makefile
chan_dongle-1.1.r14/at_parse.h
chan_dongle-1.1.r14/dc_config.c
chan_dongle-1.1.r14/app.h
chan_dongle-1.1.r14/INSTALL
chan_dongle-1.1.r14/stamp-h.in
chan_dongle-1.1.r14/helpers.c
chan_dongle-1.1.r14/at_queue.c
chan_dongle-1.1.r14/at_command.c
chan_dongle-1.1.r14/channel.h
[root@localhost tmp]# cd /usr/tmp/chan_dongle-1.1.r14
[root@localhost chan_dongle-1.1.r14]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether asterisk.h in include... no
checking whether asterisk.h in /usr/include... no
checking whether asterisk.h in /usr/local/include... no
checking whether asterisk.h in /opt/local/include... no
configure: error: Can′t find ″asterisk.h″
[root@localhost chan_dongle-1.1.r14]# make
make: *** No targets specified and no makefile found. Stop.
mik-mak
01.11.2013
Дык.. Это ш configure ошибку пишет!

checking whether asterisk.h in include... no
checking whether asterisk.h in /usr/include... no
checking whether asterisk.h in /usr/local/include... no
checking whether asterisk.h in /opt/local/include... no
configure: error: Can′t find ″asterisk.h″

Само собой, make не работает, ибо собирать ему нечего!
mik-mak
01.11.2013
Ты астериск из сырцов собирал? Там должен быть этот заголовочный файл..
Щас посмотрел, у меня он вот тут:
find / -name asterisk.h
/usr/src/asterisk/asterisk-1.8.20.1/include/asterisk.h
/usr/include/asterisk.h
trak1
01.11.2013
Я конечно думал на эти ошибки , но фиг знает что с ними делать .Стал asterisk с диска , т.е скачал образ asterisk NOW и поставил.
Alex5252
01.11.2013
Надо поставить dev пакет для астериска - тогда можно будет дособрать нужные модули.
mik-mak
01.11.2013
Честно гря, не самый лучший вариант для того, что б привинтить ГСМ-шлюз! Скорей всего, "искаропки" оно не заработает, а с конфигами повозиться придётся, поскольку большинство методичек по поводу ГСМ-шлюза тока для астрериска без всяких FreePBX-ов.. Да и для понимания того, как оно работает, лучче самому написать (скопировать и поправить) конфиги, чем разбираться в конфигах FreePBX-ом :)
trak1
01.11.2013
Т.е лучше собирать из исходников ? На какой оси лучше ?
mik-mak
01.11.2013
Думаю, пофиг.. Но я как-то к CentOS-и привык :)) Да и для Астериска она роднее..
Alex5252
01.11.2013
Что за дистрибутив?
Как ставился астериск (какой командой)?
trak1
01.11.2013
asterisk NOW коробочная версия.
Alex5252
01.11.2013
По какой ссылке скачивали?
trak1
01.11.2013
Alex5252
01.11.2013
Битность ?:)
64 или 32 ?
trak1
01.11.2013
32
Alex5252
01.11.2013
При установке что было выбрано?
1 - Asterisk + FreePBX
2 - Asterisk only
?
trak1
01.11.2013
Asterisk + FreePBX
Alex5252
02.11.2013
В общем, надо доставить пакет asterisk-devel:
yum install asterisk-devel
предложит поставить пакет asterisk-devel
нужно с этим согласиться.
Теперь будет новая ошибка:
In file included from app.c:21:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function ‘app_status_exec’:
app.c:37: warning: missing initializer
app.c:37: warning: (near initialization for ‘args.resource’)

Попробовал так:
forum.asterisk.ru/viewtopic.php?f=5&t=1801
не сработало :))

Нагуглил тут:
www.ra1aie.ru/?p=1215

Собралось и вроде даже работает
cd /var/tmp
wget https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip -O asterisk11.zip
unzip asterisk11.zip
cd asterisk-chan-dongle-asterisk11/
yum install automake patch
aclocal && autoconf && automake -a
./configure
make
make install
cp etc/dongle.conf /etc/asterisk/dongle.conf

Ну, а дальше - настроить конфиг /etc/asterisk/dongle.conf:

audio=/dev/ttyUSB1 ?
data=/dev/ttyUSB2 ?
trak1
02.11.2013
Спасибо огромное , с меня пиво или сок .Ща буду ставить .
trak1
02.11.2013
А модуль ставили на чистую версию астериск без дополнительных пакетов .Делаю по вашему мануалу и не получается ни как.
Alex5252
02.11.2013
Ставил на то, что было указано - Asterisk + FreePBX - 32 битный образ, скачал и в vmware player запустил.
А вот этот шаг:
yum install asterisk-devel
был сделан?
trak1
02.11.2013
Да сделал впервую очередь
trak1
02.11.2013
Вот с распаковки архива
[root@localhost tmp]# unzip asterisk11.zip
Archive: asterisk11.zip
28a46567a88cebdc365db6f294e682246fd2dd7b
creating: asterisk-chan-dongle-asterisk11/
inflating: asterisk-chan-dongle-asterisk11/.gitignore
inflating: asterisk-chan-dongle-asterisk11/BUGS
inflating: asterisk-chan-dongle-asterisk11/COPYRIGHT.txt
inflating: asterisk-chan-dongle-asterisk11/INSTALL
inflating: asterisk-chan-dongle-asterisk11/LICENSE.txt
inflating: asterisk-chan-dongle-asterisk11/Makefile.in
inflating: asterisk-chan-dongle-asterisk11/README.txt
inflating: asterisk-chan-dongle-asterisk11/TODO.txt
inflating: asterisk-chan-dongle-asterisk11/app.c
inflating: asterisk-chan-dongle-asterisk11/app.h
inflating: asterisk-chan-dongle-asterisk11/at_command.c
inflating: asterisk-chan-dongle-asterisk11/at_command.h
inflating: asterisk-chan-dongle-asterisk11/at_parse.c
inflating: asterisk-chan-dongle-asterisk11/at_parse.h
inflating: asterisk-chan-dongle-asterisk11/at_queue.c
inflating: asterisk-chan-dongle-asterisk11/at_queue.h
inflating: asterisk-chan-dongle-asterisk11/at_read.c
inflating: asterisk-chan-dongle-asterisk11/at_read.h
inflating: asterisk-chan-dongle-asterisk11/at_response.c
inflating: asterisk-chan-dongle-asterisk11/at_response.h
inflating: asterisk-chan-dongle-asterisk11/chan_dongle.c
inflating: asterisk-chan-dongle-asterisk11/chan_dongle.h
inflating: asterisk-chan-dongle-asterisk11/channel.c
inflating: asterisk-chan-dongle-asterisk11/channel.h
inflating: asterisk-chan-dongle-asterisk11/char_conv.c
inflating: asterisk-chan-dongle-asterisk11/char_conv.h
inflating: asterisk-chan-dongle-asterisk11/cli.c
inflating: asterisk-chan-dongle-asterisk11/cli.h
inflating: asterisk-chan-dongle-asterisk11/config.h.in
inflating: asterisk-chan-dongle-asterisk11/configure.in
creating: asterisk-chan-dongle-asterisk11/contrib/
creating: asterisk-chan-dongle-asterisk11/contrib/openwrt/
creating: asterisk-chan-dongle-asterisk11/contrib/openwrt/asterisk16-chan-dongle/
inflating: asterisk-chan-dongle-asterisk11/contrib/openwrt/asterisk16-chan-dongle/Makefile
creating: asterisk-chan-dongle-asterisk11/contrib/openwrt/asterisk18-chan-dongle/
inflating: asterisk-chan-dongle-asterisk11/contrib/openwrt/asterisk18-chan-dongle/Makefile
inflating: asterisk-chan-dongle-asterisk11/cpvt.c
inflating: asterisk-chan-dongle-asterisk11/cpvt.h
inflating: asterisk-chan-dongle-asterisk11/dc_config.c
inflating: asterisk-chan-dongle-asterisk11/dc_config.h
creating: asterisk-chan-dongle-asterisk11/etc/
inflating: asterisk-chan-dongle-asterisk11/etc/dongle.conf
inflating: asterisk-chan-dongle-asterisk11/etc/extensions.conf
inflating: asterisk-chan-dongle-asterisk11/export.h
inflating: asterisk-chan-dongle-asterisk11/helpers.c
inflating: asterisk-chan-dongle-asterisk11/helpers.h
inflating: asterisk-chan-dongle-asterisk11/manager.c
inflating: asterisk-chan-dongle-asterisk11/manager.h
inflating: asterisk-chan-dongle-asterisk11/memmem.c
inflating: asterisk-chan-dongle-asterisk11/memmem.h
inflating: asterisk-chan-dongle-asterisk11/mixbuffer.c
inflating: asterisk-chan-dongle-asterisk11/mixbuffer.h
inflating: asterisk-chan-dongle-asterisk11/mutils.h
inflating: asterisk-chan-dongle-asterisk11/pdiscovery.c
inflating: asterisk-chan-dongle-asterisk11/pdiscovery.h
inflating: asterisk-chan-dongle-asterisk11/pdu.c
inflating: asterisk-chan-dongle-asterisk11/pdu.h
inflating: asterisk-chan-dongle-asterisk11/ringbuffer.c
inflating: asterisk-chan-dongle-asterisk11/ringbuffer.h
inflating: asterisk-chan-dongle-asterisk11/single.c
extracting: asterisk-chan-dongle-asterisk11/stamp-h.in
creating: asterisk-chan-dongle-asterisk11/test/
inflating: asterisk-chan-dongle-asterisk11/test/parse.c
inflating: asterisk-chan-dongle-asterisk11/test/test1.c
creating: asterisk-chan-dongle-asterisk11/tools/
inflating: asterisk-chan-dongle-asterisk11/tools/discovery.c
inflating: asterisk-chan-dongle-asterisk11/tools/tty.c
inflating: asterisk-chan-dongle-asterisk11/tools/tty.h
[root@localhost tmp]# yum install automake patch
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos-mirror.rbc.ru
* extras: centos-mirror.rbc.ru
* updates: centos-mirror.rbc.ru
Setting up Install Process
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package patch-2.6-6.el6.i686 already installed and latest version
Nothing to do
[root@localhost tmp]# cd asterisk-chan-dongle-asterisk11/
[root@localhost asterisk-chan-dongle-asterisk11]# yum install automake patch Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos-mirror.rbc.ru
* extras: centos-mirror.rbc.ru
* updates: centos-mirror.rbc.ru
Setting up Install Process
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package patch-2.6-6.el6.i686 already installed and latest version
Nothing to do
[root@localhost asterisk-chan-dongle-asterisk11]# aclocal && autoconf && automake -a
configure.in:10 : warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
lib/autoconf/general.m4:1795: AC_CANONICAL_TARGET is expanded from...
lib/autoconf/general.m4:1819: AC_CANONICAL_SYSTEM is expanded from...
configure.in:10 : the top level
configure.in:10 : warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
lib/autoconf/general.m4:1795: AC_CANONICAL_TARGET is expanded from...
lib/autoconf/general.m4:1819: AC_CANONICAL_SYSTEM is expanded from...
configure.in:10 : the top level
configure.in:10 : warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
lib/autoconf/general.m4:1795: AC_CANONICAL_TARGET is expanded from...
lib/autoconf/general.m4:1819: AC_CANONICAL_SYSTEM is expanded from...
configure.in:10 : the top level
configure.in:6 : installing `./config.guess'
configure.in:6 : installing `./config.sub'
configure.in:7 : installing `./install-sh'
configure.in:7 : installing `./missing'
automake: no `Makefile.am' found for any configure output
[root@localhost asterisk-chan-dongle-asterisk11]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking target system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for gcc... no
checking for cl... no
checking for cc... no
configure: error: in `/var/tmp/asterisk-chan-dongle-asterisk11':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@localhost asterisk-chan-dongle-asterisk11]# make
-bash: make: command not found
Alex5252
02.11.2013
Ага, надо доставить следующие пакеты:
yum install make gcc subversion patch automake
make gcc automake - эти обязательно
trak1
02.11.2013
Всё завелось . /etc/asterisk/dongle.conf: появился.Огромное спасибо.
Alex5252
02.11.2013
Отлично.
MikeKuzn
02.11.2013
а по SIPp знатаки есть?
Надо сервер на локалке между компом и отладочной платой.
Я в этом нефига непонимаю. Скачивал какие то астериксы и СИПп-ы, а там экзешки нет, это что компилить надо, и под чем??
Еще с английским туго, поэто просьбы англоезычные ссылки не давать, все равно нефига непойму.
Еще желательно под винду.
Сам я программист микроконтроллеров, а в этом чайник. Помогите чайнику кто чем может.
Alex5252
02.11.2013
В обсуждаемой теме устанавливается пакет на виртуалку, с ним идёт FreePBX - установив его, через веб-интерфейс пробуйте подключиться к плате.
За Вас, вряд ли, кто будет настраивать.
Новая тема
Вы не можете создавать новые темы.
Т.к. вы неавторизованы на сайте. Пожалуйста назовите себя или зарегистрируйтесь.
Список тем
Последние темы форумов
Форум Тема (Автор) Последний ответ Ответов
Материнские платы на запчасти и не только

Материнские платы на запчасти и не только Материнские платы и другие комплектующие Отправка в регионы после оплаты. Транспортной...
Цена: 3 000 руб.

Принтер лазерный HEWLETT PACKARD HP-6L

Принтер лазерный HEWLETT PACKARD HP-6L Отправка в регионы после оплаты. 3штуки БУ. Внешний вид из магазина простояли на складе...
Цена: 4 500 руб.

Сетевой фильтр APC Surge Arrest

Сетевой фильтр APC Surge Arrest для радиолюбителя.и не только Отправка в регионы после оплаты. ЦЕНА 3000 руб. В рабочем состоянии....
Цена: 3 000 руб.

Оперативная память Corsair XMS3 CMX8GX3M2A1600C9

Оперативная память Corsair XMS3 CMX8GX3M2A1600C9 Отправка в регионы после оплаты. Продаются сразу обе. Цена за обе 2000 руб....
Цена: 1 000 руб.