Asterisk on FritzBox Fon WLAN 7140

teleweb

Neuer User
Mitglied seit
29 Jan 2006
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Hi,

The FritzBox Fon WLAN 7140 is now available in Belgium (with English firmware), and of course I ordered one right away! :)

It's an Annex A version with firmware 39.04.20

Apart from the analog phones, I also want to connect one or two SIP IP phones and call between all of them, without having to go out and in again over the Internet (which would be wasted bandwidth of course).

Am I right that you have to install Asterisk on the Fritzbox for this?

So, how would you recommend doing this?
I have an USB memory stick available if that would be the best way to proceed!

I already found the cfg_asterisk, but which version / commands should I use for this 7140 box? (as I said, I can connect an USB stick to the fritzbox port if that would be recommended!)

A short how-to in English would be very much appreciated, as this forum is the only place in the world where such valuable resources can be found!
You people rock!!!

Thanks a lot,
Frederic
 
Asterisk on FBF

Hi teleweb,

from the top of my head, the steps you need to take should be as following:
Code:
cd /var
wget http://www.spblinux.de/fbox/contributed/cfg_asterisk
chmod +x cfg_asterisk
cfg_asterisk usb_install

What this will do is, scan for your USB-Device, create an "/var/media/ftp/*/asterisk" directory on the first USB-Device detected and the install cfg_asterisk on that directory.
That's it all ... the rest you can find in the instructions outlined in the various configuration files that you can find under /var/media/ftp/*/asterisk/etc/asterisk ( especially the extensions.conf ).

I do however not have a 7170 and can not tell , if the 7170 is completely equal to the 7170 or not.
Just install as outlined above and test ... it'll take you no more than 30 min.

Hope this helps.

... by the way, I do also suggest that you scan through following Thread, which shows all the fancy stuff currently going on with asterisk on the FBF.

'asterisk on FBF' brought to you by ... spblinux ;-)

P.S.: If you have any further questions, feel free to drop me a PM.

Enjoy
Regards
dynamic
 
Zuletzt bearbeitet:
Thank you very much dynamic!

This was my output:

Code:
# ./cfg_asterisk usb_install
              total         used         free       shared      buffers
  Mem:        30748        20752         9996            0         2620
 Swap:            0            0            0
Total:        30748        20752         9996
installing asterisk ...
rd.o                 100% |*****************************|  7688       00:00 ETA
Using rd.o
freeramdisk          100% |*****************************|  8043       00:00 ETA
chroot               100% |*****************************| 23584       00:00 ETA
ram0                 100% |*****************************| 12288       00:00 ETA
              total         used         free       shared      buffers
  Mem:        30748        20944         9804            0         2628
 Swap:            0            0            0
Total:        30748        20944         9804
installing asterisk on usb device (USB2-0-Partition-0-0)
asterisk_usb.sqf     100% |*****************************| 12288       00:00 ETA
wget: server returned error 404: HTTP/1.1 404 Not Found
ram1                 100% |*****************************|  1388 KB    00:00 ETA
cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

asterisk has been successfully installed to usb device USB2-0-Partition-0-0
              total         used         free       shared      buffers
  Mem:        30748        26380         4368            0         3492
 Swap:            0            0            0
Total:        30748        26380         4368
to use asterisk type ./cfg_asterisk start
(or /var/media/ftp/USB2-0-Partition-0-0/asterisk/cfg_asterisk start)

After a reboot you may reinstall asterisk from usb with
/var/media/ftp/USB2-0-Partition-0-0/asterisk/cfg_asterisk usb_install

Do you have any idea why that wget 404 not found error is in there and am I missing an important component now?
And what about the "illegal option"?

Anyway, the modules directory of asterisk was completely empty after install, is that normal? So I have downloaded the following modules manually to make asterisk startup:

res_features.so
codec_alaw.so
chan_sip.so
app_dial.so

Do I also need others like pbx_*.so and func_*.so modules?
And if I put in a lot of app_*.so modules, are they all loaded at * start or only when needed?
What is a recommended set of modules for fritzbox (my usb stick is 512MB so that won't be a problem, but I guess it isn't a good idea to just download ALL the modules because of ram usage??)

Anyway, with the few modules I downloaded already, I can make sip calls now between the internal extensions :)
So that's a nice start.

One of the next steps would be how I can make the analog port work as an fxo for asterisk, do you have any advice for that? (I think I need chan_capi.so, right? But I can't find that module...)

Thanks again,
Frederic
 
Which version of the "cfg_asterisk" are you using ?
The output seems not to be of the cfg_asterisk from "www.spblinux.de/fbox/contributed" ...

Re-run the cfg_asterisk with the "set -x" flag enabled ( uncomment the set -x line at the top of the cfg_asterisk ) and send me the output.
Maybe you also send me the cfg_asterisk itself ... and we'll have a look.

Regards
dynamic
 
another suggestion ...

Stop and remove your last cfg_asterisk installation ...

Code:
cfg_asterisk stop
cfg_asterisk usb_remove

Re-Download a sub-release version of "cfg_asterisk" and re-install ( I am assuming that you are using a USB-Stick for installation ):

Code:
cd /var
wget http://www.spblinux.de/fbox/26/11/cfg_asterisk
chmod +x cfg_asterisk
cfg_asterisk usb_install

dynamic
 
Hallo,

I used the version from your last link:

Code:
# wget http://www.spblinux.de/fbox/26/11/cfg_asterisk
cfg_asterisk         100% |*****************************| 23532       00:00 ETA
#
#
# chmod +x cfg_asterisk
# ./cfg_asterisk usb_install
              total         used         free       shared      buffers
  Mem:        30748        26188         4560            0         1928
 Swap:            0            0            0
Total:        30748        26188         4560
installing asterisk ...
rd.o                 100% |*****************************|  7688       00:00 ETA
Using rd.o
freeramdisk          100% |*****************************|  8043       00:00 ETA
ram0                 100% |*****************************| 12288       00:00 ETA
              total         used         free       shared      buffers
  Mem:        30748        26228         4520            0         1936
 Swap:            0            0            0
Total:        30748        26228         4520
installing asterisk on usb device (USB2-0-Partition-0-0)
asterisk_usb.sqf     100% |*****************************| 12288       00:00 ETA
wget: server returned error 404: HTTP/1.1 404 Not Found
ram1                 100% |*****************************|  1388 KB    00:00 ETA
cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

cp: illegal option -- r
BusyBox v1.00-pre3 (2006.03.24-08:21+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

asterisk has been successfully installed to usb device USB2-0-Partition-0-0
              total         used         free       shared      buffers
  Mem:        30748        27984         2764            0         2012
 Swap:            0            0            0
Total:        30748        27984         2764
to use asterisk type ./cfg_asterisk start
(or /var/media/ftp/USB2-0-Partition-0-0/asterisk/cfg_asterisk start)

After a reboot you may reinstall asterisk from usb with
/var/media/ftp/USB2-0-Partition-0-0/asterisk/cfg_asterisk usb_install

As you can see, I get the same output...


The version from "contributed" however does a completely different type of install ! => other directory structure (for example /asterisk/usr/lib/asterisk/modules (on the usb stick) instead of /asterisk/usr_lib_ast/modules), and with modules and sound files installed! :)

So, do you have an idea of why the old script works without errors but not that new version?
And are there any drawbacks if I just use the old one?
What are the differences?

Gruß,
Frederic
 
There are currently multiple versions lying around ...

spblinux is continuously improving the asterisk for the FBF and as such, there are multiple versions.

I had pointed you to a tested ( well not the latest ) but for sure working version ( the one in the contributed directory ) in my first note.
However, also the version in 26/11 should be OK for you to use.

dynamic
 
hi. i am trying to install asterisk to a usb in fritz 7140.
unfortunatelly i am getting the following error.
any ideas?

# ./cfg_asterisk start
zebedee(1200/1024): Listening on local port 4570
# asterisk: can't load library 'libresolv.so.0'

is there any tutorial in English that i could follow?
 
# pwd
/var/media/ftp/Corsair-FlashVoyager-01
# ls
addons libresolv-0.9.28.so libresolv.so.0
# cp libresolv-0.9.28.so /lib/
cp: cannot remove '/lib/libresolv-0.9.28.so': No such file or directory
 
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.