machtudong / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

chan_dongle installation failed with Huawei e180 & e1750 in asterisk r11 #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. usb_switch command executed to switch to usb modem
2. download chan_dongle-1.1.r14
3. implement
aclocal
autoconf
automake -a
./configure
make all
make install
cp etc/dongle.conf /etc/asterisk/
cp /usr/src/asterisk-chan-dongle-asterisk11/etc/extensions.conf 
/etc/asterisk/extensions-dongle.conf
asterisk -rx "core restart now"
asterisk -rx "dongle show devices"

What is the expected output? What do you see instead?
the device should show up, but I don't see any device connected as following: 
ID           Group State      RSSI Mode Submode Provider Name  Model      
Firmware          IMEI             IMSI             Number
dongle0      0     Not connec 0    0    0       NONE                            
                                              Unknown

What version of the product are you using? On what operating system?
asterisk r11 + chan_dongle-1.1.r14

Please provide any additional information below.
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# aclocal
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# autoconf
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# automake -a
automake: no `Makefile.am' found for any configure output
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# vi aclocal.m4
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# vi Makefile.am
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# ^C
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# automake -a
automake: no `Makefile.am' found for any configure output
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# ./configure
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking target system type... armv6l-unknown-linux-gnueabihf
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... no
checking for mawk... mawk
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... yes
checking asterisk.h usability... yes
checking asterisk.h presence... yes
checking for asterisk.h... yes
checking whether iconv.h in /usr/include... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv use const inbuf... no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# make all
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
gcc  -shared -Xlinker -x -o chan_dongle.so app.o at_command.o at_parse.o 
at_queue.o at_read.o at_response.o chan_dongle.o channel.o char_conv.o cli.o 
helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o 
pdiscovery.o
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# make install
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
strip chan_dongle.so
/usr/bin/install -c -m 755 chan_dongle.so /usr/lib/asterisk/modules
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# cp etc/dongle.conf 
/etc/asterisk/
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# cp 
/usr/src/asterisk-chan-dongle-asterisk11/etc/extensions.conf 
/etc/asterisk/extensions-dongle.conf
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# asterisk -rx "core 
restart now"
root@raspbx:/usr/src/asterisk-chan-dongle-asterisk11# asterisk -rx "dongle show 
devices"
ID           Group State      RSSI Mode Submode Provider Name  Model      
Firmware          IMEI             IMSI             Number
dongle0      0     Not connec 0    0    0       NONE                            
                                              Unknown

Original issue reported on code.google.com by linb...@gmail.com on 13 Nov 2013 at 5:08

GoogleCodeExporter commented 9 years ago
look to http://wiki.e1550.mobi/doku.php?id=requirements  
check your dongles present in system with USBtty
and read how chan_dongle can use USBtty or searching by IMEI/IMSI

Original comment by bg_...@mail.ru on 30 Dec 2013 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 29 Apr 2014 at 8:08