Asterisk per Freetz Webinterface starten / stoppen???

Rückmeldung:

Image funktioniert ebenso wie die Auslagerung nach External. Einzig die Configs lassen sich nicht auslagern, was aber mit dem Aufrufen einer externen angepassten asterisk.conf relativ gut umgangen werden kann.

Grüße,

Dougi
 
Ich habe Ticket 706 mal renoviert (sorry, Versionsjunkie). Somit Wird nun Asterisk 1.6.2.18 kompiliert.

Völlig übermütig wollte ich nun chan_datacard und chan_dongle integrieren. Aber leider sträuben sich die Channels beharrlich. Ich hatte schon ein chan_datacard.so hinbekommen, aber nun viele Tage später und mit dem Gedanken der Freetz-Integration schwanger klappt es nicht mehr. Aktuell hängt er schon beim Aufruf von configure (mittels make):
Code:
cj@ubuntu:~/trunk$ make
mkdir -p packages/target-mipsel_uClibc-0.9.31.1/chan_datacard-203/root
if test -d make/chan_datacard/files; then tar -c -C make/chan_datacard/files --exclude=.svn . | tar -x -C packages/target-mipsel_uClibc-0.9.31.1/chan_datacard-203 ; fi
---> package/chan_datacard: preparing... tools/tar -C source/target-mipsel_uClibc-0.9.31.1  -xjf dl/chan_datacard-203.tar.bz2
set -e; shopt -s nullglob; for i in make/chan_datacard/patches/*.patch; do tools/freetz_patch source/target-mipsel_uClibc-0.9.31.1/chan_datacard-203 $i; done
configuring... (conf_cmd() { ./configure  "$@"  || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed.";  exit 1; } }; cd source/target-mipsel_uClibc-0.9.31.1/chan_datacard-203;   rm -f config.{cache,status} ; cp -a ./autoconf ./autoconf.before_rpath_fix; sed -i -r -e "s|(runpath_var=)[$]runpath_var|\1|g" -e "s|(hardcode_into_libs=).+$|\1no|g" -e '/hardcode_libdir_flag_spec[_A-Za-z0-9]*=/s/[$][{]wl[}]-?-rpath(,| [$][{]wl[}])[$]libdir/-D__SOMETHING_NON_EMPTY_TO_FOOL_LIBTOOL__/g' -e 's/(hardcode_libdir_flag_spec(_ld)?=)[$]lt_([[][]]_LT_AC_TAGVAR[(])?hardcode_libdir_flag_spec[_A-Za-z0-9]*(, *[$]1[)])?/\1/g' ./autoconf; cp -a ./automake ./automake.before_rpath_fix; sed -i -r -e "s|(runpath_var=)[$]runpath_var|\1|g" -e "s|(hardcode_into_libs=).+$|\1no|g" -e '/hardcode_libdir_flag_spec[_A-Za-z0-9]*=/s/[$][{]wl[}]-?-rpath(,| [$][{]wl[}])[$]libdir/-D__SOMETHING_NON_EMPTY_TO_FOOL_LIBTOOL__/g' -e 's/(hardcode_libdir_flag_spec(_ld)?=)[$]lt_([[][]]_LT_AC_TAGVAR[(])?hardcode_libdir_flag_spec[_A-Za-z0-9]*(, *[$]1[)])?/\1/g' ./automake; cp -a -a -a.before_rpath_fix; sed -i -r -e "s|(runpath_var=)[$]runpath_var|\1|g" -e "s|(hardcode_into_libs=).+$|\1no|g" -e '/hardcode_libdir_flag_spec[_A-Za-z0-9]*=/s/[$][{]wl[}]-?-rpath(,| [$][{]wl[}])[$]libdir/-D__SOMETHING_NON_EMPTY_TO_FOOL_LIBTOOL__/g' -e 's/(hardcode_libdir_flag_spec(_ld)?=)[$]lt_([[][]]_LT_AC_TAGVAR[(])?hardcode_libdir_flag_spec[_A-Za-z0-9]*(, *[$]1[)])?/\1/g' -a; cp -a ./configure ./configure.before_rpath_fix; sed -i -r -e "s|(runpath_var=)[$]runpath_var|\1|g" -e "s|(hardcode_into_libs=).+$|\1no|g" -e '/hardcode_libdir_flag_spec[_A-Za-z0-9]*=/s/[$][{]wl[}]-?-rpath(,| [$][{]wl[}])[$]libdir/-D__SOMETHING_NON_EMPTY_TO_FOOL_LIBTOOL__/g' -e 's/(hardcode_libdir_flag_spec(_ld)?=)[$]lt_([[][]]_LT_AC_TAGVAR[(])?hardcode_libdir_flag_spec[_A-Za-z0-9]*(, *[$]1[)])?/\1/g' ./configure;   PATH=""/home/cj/trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin:/home/cj/trunk/toolchain/build/mipsel_gcc-4.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"" CC="/home/cj/trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" CXX="/home/cj/trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-g++-wrapper" CFLAGS="-march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="" PKG_CONFIG_PATH="/home/cj/trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/cj/trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/../lib/pkgconfig"  FREETZ_TARGET_LFS="y" CONFIG_SITE=/home/cj/trunk/include/site/mipsel-linux-uclibc conf_cmd   --cache-file=/home/cj/trunk/source/target-mipsel_uClibc-0.9.31.1/config.cache --target=mipsel-linux --host=mipsel-linux --build=i386-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --datadir=/usr/share --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --sbindir=/usr/sbin --sysconfdir=/etc --with-gnu-ld --disable-nls  --with-asterisk=source/target-mipsel_uClibc-0.9.31.1/asterisk-1.6.2.18/include    )
cp: Aufruf von stat für „./autoconf“ nicht möglich: Datei oder Verzeichnis nicht gefunden
sed: kann ./autoconf nicht lesen: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für „./automake“ nicht möglich: Datei oder Verzeichnis nicht gefunden
sed: kann ./automake nicht lesen: Datei oder Verzeichnis nicht gefunden
cp: Ungültige Option -- .
„cp --help“ gibt weitere Informationen.
sed: Ungültige Option -- a
Aufruf: sed [OPTION]... {Skript-falls-kein-anderes-Skript} [Eingabe-Datei]...

  -n, --quiet, --silent
                 verhindert die automatische Ausgabe des Arbeitspuffers
  -e skript, --expression=skript
                 hängt `skript' an die auszuführenden Befehle an
  -f skript-Datei, --file=skript-Datei
                 hängt den Inhalt von `Skript-Datei' an die
                 auszuführenden Befehle an
  --follow-symlinks
                 follow symlinks when processing in place
  -i[Suffix], --in-place[=Suffix]
                 ändert die Eingabedatei (Backup wird erzeugt, falls Suffix
                 angegeben wurde)
  -l N, --line-length=N
                 gibt die gewünschte Zeilenumbruchlänge für den `l'-Befehl an
  --posix
                 schaltet alle GNU-Funktions-Erweiterungen ab.
  -r, --regexp-extended
                 verwendet die erweiterten reg. Ausdrücke für das Skript.
  -s, --separate
                 die Dateien werden getrennt und nicht als einzige
                 zusammenhängende Quelle betrachtet.
  -u, --unbuffered
                 lade nur kleinste Datenmengen aus den Eingabedateien
                 und schreibe die Ausgabepuffer häufiger zurück.
      --help     nur diese Hilfe anzeigen und dann beenden
      --version  nur die Versionsinfo ausgeben und dann beenden

Falls kein -e, --expression, -f, oder --file Option angegeben ist, wird das
erste Argument, das keine Option ist als sed-Skript verwendet.
Alle restlichen Argumente werden als Eingabedateinamen behandelt.
Falls keine Eingabedateien angegeben sind, wird von der Standardeingabe gelesen.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
cp: Aufruf von stat für „./configure“ nicht möglich: Datei oder Verzeichnis nicht gefunden
sed: kann ./configure nicht lesen: Datei oder Verzeichnis nicht gefunden
/bin/bash: ./configure: Datei oder Verzeichnis nicht gefunden

ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.31.1/chan_datacard-203/.configured] Fehler 1
 
Zuletzt bearbeitet:
Also ich konnte jetzt beide Channels in jeweils ihrer aktuellsten Version (Rev. 203 und Rev. 13) für Asterisk 1.6.2.19-rc1 kompilieren. Folgende manuelle Schritte (im Anschluss ans fehlgeschlagene Freetz-make):
Code:
ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13/.configured] Fehler 1
cj@ubuntu:~/trunk$ [B][COLOR="#0000ff"]cd source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13/[/COLOR][/B]
cj@ubuntu:~/trunk/source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13$ [B][COLOR="#0000ff"]autoconf[/COLOR][/B]
configure.in:7: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
cj@ubuntu:~/trunk/source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13$ [B][COLOR="#0000ff"]automake -a[/COLOR][/B]
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in:6: installing `./config.guess'
configure.in:6: installing `./config.sub'
configure.in:52: installing `./install-sh'
automake: no `Makefile.am' found for any configure output
cj@ubuntu:~/trunk/source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13$ [B][COLOR="#0000ff"]./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux --with-asterisk=../asterisk-1.6.2.19-rc1/include[/COLOR][/B]
checking build system type... i386-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
checking target system type... mipsel-unknown-linux-gnu
./configure: line 2353: AM_INIT_AUTOMAKE: command not found
checking for mipsel-linux-gcc... no
checking for mipsel-linux-cl... no
checking for mipsel-linux-cc... no
checking for gcc... gcc
configure: WARNING: using cross tools not prefixed with host triplet
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... yes
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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
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 ../asterisk-1.6.2.19-rc1/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... no
checking whether DESTDIR is /usr/local/lib/asterisk/modules... no
checking whether DESTDIR is /opt/local/lib/asterisk/modules... no
checking for working memcmp... no
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
cj@ubuntu:~/trunk/source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13$ [B][COLOR="#0000ff"]make[/COLOR][/B]
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o app.o -c app.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/app.h:26:0,
                 from app.c:18:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP  -o at_command.o -c at_command.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from at_command.c:23:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP  -o at_parse.o -c at_parse.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from chan_dongle.h:20,
                 from at_parse.c:23:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP  -o at_queue.o -c at_queue.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from at_queue.c:17:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP  -o at_read.o -c at_read.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from at_read.c:24:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP  -o at_response.o -c at_response.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/devicestate.h:40,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/pbx.h:27,
                 from at_response.c:17:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF .chan_dongle.o.d -MP  -o chan_dongle.o -c chan_dongle.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/module.h:31,
                 from chan_dongle.c:50:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP  -o channel.o -c channel.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/devicestate.h:40,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/pbx.h:27,
                 from channel.c:17:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT char_conv.o -MF .char_conv.o.d -MP  -o char_conv.o -c char_conv.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cli.o -MF .cli.o.d -MP  -o cli.o -c cli.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from chan_dongle.h:20,
                 from cli.c:21:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT helpers.o -MF .helpers.o.d -MP  -o helpers.o -c helpers.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from helpers.h:8,
                 from helpers.c:20:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT manager.o -MF .manager.o.d -MP  -o manager.o -c manager.c
In file included from manager.c:20:0:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT memmem.o -MF .memmem.o.d -MP  -o memmem.o -c memmem.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT ringbuffer.o -MF .ringbuffer.o.d -MP  -o ringbuffer.o -c ringbuffer.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cpvt.o -MF .cpvt.o.d -MP  -o cpvt.o -c cpvt.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from cpvt.c:12:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT dc_config.o -MF .dc_config.o.d -MP  -o dc_config.o -c dc_config.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from dc_config.c:8:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdu.o -MF .pdu.o.d -MP  -o pdu.o -c pdu.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from helpers.h:8,
                 from pdu.c:11:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT mixbuffer.o -MF .mixbuffer.o.d -MP  -o mixbuffer.o -c mixbuffer.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from mixbuffer.c:9:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I../asterisk-1.6.2.19-rc1/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdiscovery.o -MF .pdiscovery.o.d -MP  -o pdiscovery.o -c pdiscovery.c
In file included from ../asterisk-1.6.2.19-rc1/include/asterisk/utils.h:681:0,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/config.h:30,
                 from ../asterisk-1.6.2.19-rc1/include/asterisk/channel.h:143,
                 from dc_config.h:8,
                 from at_command.h:8,
                 from at_queue.h:12,
                 from pdiscovery.c:17:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h: In function âast_str_truncateâ:
../asterisk-1.6.2.19-rc1/include/asterisk/strings.h:495:1: warning: signed and unsigned type in conditional expression
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
cj@ubuntu:~/trunk/source/target-mipsel_uClibc-0.9.31.1/chan_dongle-13$
Am Ende liegt eine chan_dongle.so bereit, die man nur noch strippen und z.B. mittels own-files-0.1 ins Image bringen muss.

Ab hier muss dann jemand ran, der sich mit Asterisk auskennt. Trotz "autoload=yes" zeigt "module list" 0 geladene Module an. Mit "module load chan_dongle" (dauert 20 Sekunden oder so) taucht es dann auf, aber "dongle show devices" bringt immer noch "No such command" hervor.
 
Zuletzt bearbeitet:
das problem ist, dass das modul nicht mips kompatibel ist

sterisk: '/usr/lib/asterisk/modules/chan_dongle.so' is not an ELF executable for MIPS
[Jun 28 00:57:49] WARNING[8756]: loader.c:387 load_dynamic_module: Error loading module 'chan_dongle.so': File not found

hab deine Anleitung ein wenig angepasst und den mipsel-linux-gcc mit angegeben:
export CC="/home/freetz/freetz-trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/mipsel-linux-gcc"
./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux --with-asterisk=../asterisk-1.6.2.18/include
=>
>file chan_dongle.so
chan_dongle.so: ELF 32-bit LSB shared object, MIPS, MIPS32 version 1 (SYSV), dynamically linked, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x3040000, not stripped

Leider kommt beim starten von Asterisk: "asterisk: can't resolve symbol 'ast_register_file_version'"

Übrigens gibt es im Asterisk unterforum eine ganz gute Diskussion zu diesem Thema: [Diskussion]: UMTS-Stick an der FBF als GSM-Gateaway verwenden
Folgender Beitrag ist wichtig in Bezug auf prinzipielle Probleme mit chan_datacard: http://www.ip-phone-forum.de/showthread.php?t=209037&p=1691495&viewfull=1#post1691495

###########

nachdem ich nun das ganze weiter angepasst habe:

Edit der Datei chan_dongle.c (auskommentieren)
#include <asterisk.h>
/*ASTERISK_FILE_VERSION(__FILE__, "$Rev: " PACKAGE_REVISION " $")
*/

export CPPFLAGS="-I/home/freetz/freetz-trunk/toolchain/target/include/ -Os -pipe"
export CFLAGS="${CPPFLAGS}"
export LDFLAGS="-L/home/freetz/freetz-trunk/toolchain/toolchain/target/lib"
export CC="/home/freetz/freetz-trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/mipsel-linux-gcc"
./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux --with-asterisk=../asterisk-1.6.2.18/include
make

Startet asterisk mit chan_dongle erst mal, aber auf /dev/ttyUSB kann nicht zugegriffen werden

Asterisk Ready.
*CLI>
*CLI> 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
*CLI>
*CLI>
*CLI> -- [dongle0] Trying to connect on /dev/ttyUSB2...
[Jun 28 03:39:46] WARNING[23504]: chan_dongle.c:246 opentty: tcsetattr(TCSAFLUSH) failed for /dev/ttyUSB2: Invalid argument
[Jun 28 03:39:46] WARNING[23504]: chan_dongle.c:246 opentty: tcsetattr(TCSAFLUSH) failed for /dev/ttyUSB1: Invalid argument
-- [dongle0] Dongle has connected, initializing...
[Jun 28 03:39:48] ERROR[23630]: chan_dongle.c:434 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected

Modem wird aber richtig erkannt:

Code:
option 1-1.1:1.0: GSM modem (1-port) converter detected
usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.1:1.1: GSM modem (1-port) converter detected
usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.1:1.2: GSM modem (1-port) converter detected
usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
 
Zuletzt bearbeitet:
Also bei mir kommt auch ohne export CC=... ein MIPS-Binary heraus (gleiche file-Ausgabe wie bei dir, nur eben noch stripped). Aber müsste hier nicht MIPSEL stehen?
 
Ich wollte mich auch mal an Asterisk 1.8 versuchen, bin aber schon wieder am Freetz-Kompilierprozess gescheitert. Vielleicht kann Oliver nochmal reinschauen?
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.