Anleitung: Asterisk on FBF 7170 / 7050

dynamic

Aktives Mitglied
Mitglied seit
1 Apr 2006
Beiträge
1,154
Punkte für Reaktionen
0
Punkte
36
Asterisk on FBF 7270 / 7170 / 7150 / 7050 ( last update 16.01.2009 )

///////////////////////////////////////// Asterisk FAQ ///////////////////////////////////////////
See below for English version
/////////////////////////////////////////////////////////////////////////////////////​

Asterisk 1.4.22 ( für 2.6'er Kernel, uClibc 0.9.28 & 0.9.29 ):
Install-Script Version: 1.242
http://spblinux.de/fbox.new/cfg_asterisk14 **

Asterisk 1.6.0.1 ( für 2.6'er Kernel, uClibc 0.9.28 & 0.9.29 ):
Install-Script Version: 1.242
http://www.spblinux.de/fbox.new/cfg_asterisk16 **

#################################################
Für die aktuellen Labor-Versionen ( mit uClibc 0.9.28 & 0.9.29 ) sind nachfolgende Beta-Versionen zu verwenden:
#################################################
http://c2a2b2.com/fbox/cfg_asterisk14 ( v1.4.22 )
http://c2a2b2.com/fbox/cfg_asterisk16 ( v1.6.0.1 )
http://c2a2b2.com/fbox/cfg_dropbear ( v0.51, Install Script:1.241 )


Achtung:
Die hier zur Verfügung gestellten Asterisk Releases entsprechen nicht immer der allerneuesten Version, so dass möglicherweise Sicherheits-Patches fehlen. Daher sind "remote exploits" grundsätzlich denkbar, weshalb in sicherheitskritischen Umgebungen der Asterisk in der aktuellsten Version selber kompilert und genutzt werden sollte!
Die enthaltenen Programme und Scripte werden im Rahmen und unter den Bedingungen der GNU General Public License und ohne jegliche Gewähr angeboten.

In der default-Konfiguration sind nur die wichtigsten/standard Module eingebunden. Weitere Module stehen im modules14 ( für Asterisk 1.4.x ) bzw. im modules16 Verzeichnis ( für Asterisk 1.6.x ) zur Verfügung:
http://www.spblinux.de/fbox.new/modules14 ( für v1.4.22 ) **
http://www.spblinux.de/fbox.new/modules16 ( für v1.6.0.1 ) **

**Alternativ kann auch http://c2a2b2.com/fbox verwendet werden.

1) Installation des *
Install-Script holen und ausführbar machen:
Code:
cd /var
wget [URL]http://www.spblinux.de/fbox.new/cfg_asterisk14[/URL]
chmod +x ./cfg_asterisk14
a) RAM Installation:
Code:
./cfg_asterisk14 install
b) Installation auf USB-Device:
Code:
./cfg_asterisk14 usb_install
c) Installation auf beliebiges Verzeichnis via INST_DIR
Code:
INST_DIR=/var/mntXYZ ./cfg_asterisk14 usb_install
Folgende zusätzlichen Install-Switches und Parameter stehen zur Verfügung:
###############################################################

*** alle Installationen ***

  • [INST_DIR=install_dir] cfg_asterisk16 [-v] [-s alt_sever ] install|usb_install
    install: installs to ramdisk or to INST_DIR/addons if INST_DIR is given
    usb_install
    : installs to ./addons of autodetected usb device -v: enables verbose mode for debugging purposes -s [ftp://[id:secret@]my_ftp_server.com|http://my_http_server.com]: allows override of download server with an alternative server
  • cfg_asterisk16 [-v] remove
    remove
    : only for information purposes. A clean remove of this application requires a soft-reboot of your box.

  • cfg_asterisk16 [-v] disable|enable
    disable
    : Application is put to maintenance mode to prevent installing and starting of asterisk
    enable
    : Application is put to normal operations mode again

  • cfg_asterisk16 [-v|h] start|stop [asterisk|zebedee]
    -h
    : Provide additional help instructions for start / stop of binaries
    start|stop
    : Start/Stop asterisk or zebedee application ( applications can also be started by simply invoked from prompt )
*** nur RAM-Installationen ***
  • cfg_asterisk16 [-v] [-f] config2flash|flash2config|clearflash [minor]
    config2flash
    : save modified configuration files to non volatile (flash) memory
    flash2config
    : restore configuration files from non volatile (flash) memory
    clearflash
    : clear asterisk16 configuration files from flash memory
    -f: forced mode - never prompt and always assume "y"
###############################################################

Die Switches gehören VOR die install bzw. usb_install Option:
Code:
[INST_DIR=/my_dir] ./cfg_asterisk14 [-v] [-s ... ] install | usb_install
Für die Installation des * in der Version v1.6.x ist cfg_asterisk14 durch cfg_asterisk16 zu ersetzen ( Alle Installationen erfolgen direkt in ein Root-Overlay Verzeichnis, d.h. die Files erscheinen so als wenn diese im Root-Pfad liegen. Der Switch "-x" ist jetzt Standard und wird nicht mehr angegeben!)

2) WHO IS WHO ?
cfg_asterisk14 / cfg_asterisk16:
Das haupt Installationsscript mit dem der Asterisk installiert wird.

cfg.common:
Enthält häufig genutzte Funktionen, die bei der Installation des * ( aber auch anderen cfg_xxxxx Paketen von spblinux ) genutzt werden. Das cfg.common Script wird zur Laufzeit des Installationsscripts "gesourced" ( geladen ) und genutzt.

cfg.customize:
Dieses Script wird nach der Installation des * augerufen und falls darin definiert, werden User spezifische "Post-Installation" Aktivitäten durchgeführt. Nähere Informationen hierzu können in dem jeweiligen Script gefunden werden ( optional )

3) MISCELLANEOUS
cfg_dropbear:
Dropbear ist eine ( vollständig auf SSH2 basierende ) Alternative zum OpenSSH-Server und ist speziell für Arbeitsumgebungen mit wenig Speicher -und / oder Prozessorresourcen ausgelegt.

cfg_sqf:
Ein kleines Tool zum Download und Mounten eines beliebigen SQF-Images im RAM.

lazybox:
LazyBox ist ein multi-call Script, das ohne Änderungen das Einbinden von applokationsspezifischen Settings vor dem Aufruf einer beliebigen Applikation ermöglicht, wenn statt der Applikation ein Symlink ( mit dem Applikationsnamen ) auf das lazybox Script aufgerufen wird.
Es können sowohl ein generelles ".lazybox" dotfile und/oder ein applikationsspezifisches ".<executable>" dotfile im Zielverzeichnis der aufgerufenen Applikation definiert werden. Beide .dotfiles werden automatisch "gesourced" und im Anschluß die aufgerufene Applikation mit allen übergebenen Parametern gestartet.

4) FAQ
Was ist Asterisk / * : siehe wikipedia
Nutzen der Analogen Schnittstelle am *: siehe Posting / Thread
Asterisk auf 7050 mit neuerer FW ( 2.6'er Kernel ): siehe Posting
Anmelden der ISDN/Analog Leitung per sip an FBF-Asterisk: siehe Posting
Automatischer Restart des Asterisk nach dem Reboot: siehe Posting
Asterisk auf einer gefritzten Speedport ( W900V ): siehe Posting
Konfiguration der OpenWRT Buildroot um sources für die FBF zu kompilieren: siehe conf_spb und Posting
Timestamps im CLI und richtige Timezone Einstellung des *: siehe Thread

WICHTIG: In diesem Thread bitte keine Fragen / Diskussionen posten.

Fragen oder Diskussionen sollten in einem neuen bzw. anderen bestehenden Thread gepostet werden.

Viel Spaß mit Asterisk ...
Thanks an spblinux, der das hier überhaupt ermöglicht hat :D

... the story continues!

Gruß
dynamic & spblinux

//////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////// ENGLISH VERSION /////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
Asterisk 1.4.22 ( for 2.6'er Kernel, uClibc 0.9.28 & 0.9.29 ):
Install-Script Version: 1.242
http://spblinux.de/fbox.new/cfg_asterisk14 **


Asterisk 1.6.0.1 ( for 2.6'er Kernel, uClibc 0.9.28 & 0.9.29 ):
Install-Script Version: 1.242
http://www.spblinux.de/fbox.new/cfg_asterisk16 **

#################################################
For recent Labor-Versions ( with uClibc 0.9.28 & 0.9.29 ) following Beta-Versions are to be used instead:
#################################################
http://c2a2b2.com/fbox/cfg_asterisk14 ( v1.4.22 )
http://c2a2b2.com/fbox/cfg_asterisk16 ( v1.6.0 )
http://c2a2b2.com/fbox/cfg_dropbear ( v0.51, Install Script:1.241 )

Attention:
The Asterisk Releases provided here do not always reflect the latest available Version. There is a high likelihood that Security-Patches are missing in the released version here.
Remote exploits are therefore generally possible, why this release should not be used in saftey-critical environments and you should rather always compile the latest version and use the latest version instead!
The program and scripts are distributed at no warranty and under the terms of the GNU General Public License!

The default asterisk configuration contains only key/standard modules. Further modules can be found under the modules14 ( for Asterisk 1.4.x ) respectively modules16 directories ( for Asterisk 1.6.x ):
http://www.spblinux.de/fbox.new/modules14 ( für v1.4.22 ) **
http://www.spblinux.de/fbox.new/modules16 ( für v1.6.0.1 ) **

**Alternatively you can also use the mirror server on http://c2a2b2.com/fbox .


1) Installation of *
Code:
cd /var
wget http://www.spblinux.de/fbox.new/cfg_asterisk14
chmod +x ./cfg_asterisk14
a) RAM Installation :
Code:
./cfg_asterisk14 install
b) Installation on USB-Device:
Code:
./cfg_asterisk14 usb_install
c) Installation to any desired Directory via INST_DIR variable
Code:
INST_DIR=/var/mntXYZ ./cfg_asterisk14 usb_install
Following additional install switches are available:
###############################################################

*** all installation variants ***

  • [INST_DIR=install_dir] cfg_asterisk16 [-v] [-s alt_sever ] install|usb_install
    install: installs to ramdisk or to INST_DIR/addons if INST_DIR is given
    usb_install
    : installs to ./addons of autodetected usb device -v: enables verbose mode for debugging purposes -s [ftp://[id:secret@]my_ftp_server.com|http://my_http_server.com]: allows override of download server with an alternative server
  • cfg_asterisk16 [-v] remove
    remove
    : only for information purposes. A clean remove of this application requires a soft-reboot of your box.

  • cfg_asterisk16 [-v] disable|enable
    disable
    : Application is put to maintenance mode to prevent installing and starting of asterisk
    enable
    : Application is put to normal operations mode again

  • cfg_asterisk16 [-v|h] start|stop [asterisk|zebedee]
    -h
    : Provide additional help instructions for start / stop of binaries
    start|stop
    : Start/Stop asterisk or zebedee application ( applications can also be started by simply invoked from prompt )
*** only RAM installations ***
  • cfg_asterisk16 [-v] [-f] config2flash|flash2config|clearflash [minor]
    config2flash
    : save modified configuration files to non volatile (flash) memory
    flash2config
    : restore configuration files from non volatile (flash) memory
    clearflash
    : clear asterisk16 configuration files from flash memory
    -f: forced mode - never prompt and always assume "y"
These switches have to bet set BEFORE the install / usb_install Option:
Code:
[INST_DIR=/my_dir] ./cfg_asterisk14 [-v] [-s ...] install | usb_install
cfg_asterisk14 is to be replaced by cfg_asterisk16 if you are installing Version 1.6.x of Asterisk ( All installations are now performed directly into a Root-Overlay directory, meaning the files appear as if they were installed into the root path. The "-x" is therefore assumed to be default and is no longer required ).

2) WHO IS WHO ?
cfg_asterisk / cfg_asterisk14:
Main Asterisk installation scripts.

cfg.common:
Contains common functions that are used during the installation process of * ( and other cfg_xxxx packages from spblinux ). The cfg.common script is sourced during runtime and used during installation.

cfg.customize:
This script is invoked after installation of * is compled and if defined, respective user specific "Post Installation" activities are then run ( optional ). Further information to this script can be found in the comments of the respective script.

3) MISCELLANEOUS
cfg_dropbear:
Dropbear is a ( fully SSH2 based ) alternative to the OpenSSH-Server, mainly aimed at environments with limited memory- and / or processing resources.

cfg_sqf:
A little tool for downloading and mounting any of the cfg_xxxx related SQF-Images into RAM.

lazybox:
LazyBox is a multi-call script that helps to perform additional application specifc settings prior to an application being started, provided that a symlink ( with name of application ) to lazybox is invoked instead of the application itself.
It will allow the definition and running of a generic ".lazybox" dotfile and/or an application specific ".<executable>" dotfile from the target directory of the binary being invoked. Both .dotfiles will be automatically sourced, prior to the executable being run with all arguments that were provided.

4) FAQ
What is Asterisk / * : see wikipedia
Using FBF Analogue Lines with *: see Posting / Thread
Asterisk on 7050 with new FW ( 2.6 Kernel ): see Posting
Registering of ISDN/Analogue line via sip on FBF-Asterisk: see Posting
Automatic restart of Asterisk after Reboot: see Posting
Asterisk on fritz modded Speedport ( W900V ): see Posting
Configuring the OpenWRT Buildroot to compile sources for the FBF : see conf_spb and Posting
Timestamps on CLI prompt and setting correct Timezone for *: see Thread

IMPORTANT: Please don't post questions / comments into this Thread.

Questions or comments should be raised in a separate / existing other Thread in this subforum.

Enjoy! Of course, thanks to spblinux, who made "Asterisk on FBF" possible!
... the story continues

Regards
dynamic & spblinux

#################################################################
# ... so fing es an:
# Auf der Suche nach * auf der FBF ... bis die Lösung von spblinux kam :)
#################################################################
Gibt es eigentlich bereits erste Versuche und/oder Erfahrungen einen Asterisk Server auf dem FBF ( z.B. 7170 ) zum Laufen zu bringen ?

Was auf dem Linksys WRT54G läuft sollte auf der 7170 eigentlich zumindest aus Kapazitätssicht kein Problem sein, oder ?

In den Threats habe ich nichts entsprechendes gefunden ( was mich gewundert hat ) und dachte öffne mal einen entsprechenden Thread und frage die Community ...

Wie groß wäre denn die Nachfrage für eine solche Lösung ?
 
Zuletzt bearbeitet:
Wäre es möglich, dass jemand das Modul chan_datacard.so kompiliert?
Was hier funktioniert hat, müsste funktioniert für den Asterisk_on_FBF ja eigentlich genauso funktionieren.
 
Zuletzt bearbeitet:
Ich setze das cfg_asterisk16 immer noch ein, habe aber das Problem, dass in der letzten Zeit meine Fritzbox öfter mal sehr langsam wird und dann Asterisk ausfällt.
Ich habe deswegen in der asterisk.conf das Spoolverzeichnis von /var/spool/asterisk auf /var/nas/Asterisk/spool gelegt, das auch soweit funktioniert.

Leider legt das cfg_asterisk16-Script trotzdem ein Verzeichnis /var/spool/asterisk/outgoing an.
Kann man das Script so ändern, dass mein Verzeichnis genommen wird?
 
Wäre es möglich eine neue Version der chan_datacard.so kompiliert? Leider wird mein Stick (Huawei E1550) erst mit einer der letzten Versionen richtig unterstützt.

Edit: Erledigt, funktioniert nun
 
Zuletzt bearbeitet:
Dear all
I have install asterisk successfully on my 7140 PSTN fritz but i cannot find any post how to connect onboard PSTN port to use it for in-out calls.

any help please!
regards
(PSTN post)
 
I am not sure, but i think you can simply use the integrated SIP-Server for PSTN-in-out-calls.
 
asterisk 1.6.2.23 for 7170

Hi all,

attached new asterisk version for 7170 only.
please extract to the directories from cfg_asterisk16 installation.
Included all modules from current freetz asterisk patch (incl. chan_dongle & chan_capi)

!!! The attached files are not working on 7170 with unmodified FW
!!! ON Freetz trunk FW flashed boxes it should work because there i have initially runned the compiled version
 

Anhänge

  • 7170_asterisk_1.6.2.23_bin.zip
    593.5 KB · Aufrufe: 39
  • 7170_asterisk_1.6.2.23_modules.zip
    2 MB · Aufrufe: 39
Zuletzt bearbeitet:
Hi all,

attached new asterisk version for 7170 only.
please extract to the directories from cfg_asterisk16 installation.
Included all modules from current freetz asterisk patch (incl. chan_dongle & chan_capi)


Good evening from Greece!

Do I need to have freetz installed in order to use this version of A@FBF?

Thanks in advance!
 
normally not. but please keep in mind the last update of this installation instruction was done in 2009 "Geändert von dynamic (15.07.2009 um 19:13 Uhr)".
Maybee you can have a look over the other possibilities
 
Guten Nachmittag waldoo,

vielen dank fur Ihre Antwort. Ich habe hier ein eigenes Thema erstellt und brauche deine Hilfe.

Auf wiedersehen!
 
Hi all,

the first tests with the "good old cfg_asterisk16" and asterisk11 from latest freetz trunk seems to work.
Of course i haven´t testet the new installation, but the "copy + paste for a old running intallation" seems to work so far.
But be carefull of 2 things:
- the default dir has to be /mod/etc/asterisk (but can be symlinked)
- addidional libraries are needed as asterisk11 has more features
If you copy it (from freetz-dir/build/modified/filesystem) to the lib directory on the stick and make an reboot asterisk should work so far (except know issues...)
Code:
root@fritz:/var/media/ftp/uStor04/addons/asterisk16/usr/lib# ls
asterisk                  libgsm.so                 libpjmedia-audiodev.so    libpjnath.so.2            libresolv.so              libspeex.so.1             libsrtp.so.1
libbacktrace.so           libgsm.so.1               libpjmedia-audiodev.so.2  libpjsip-simple.so.2      libresolv.so.0            libspeex.so.1.5.0         libsrtp.so.1.4.4
libbacktrace.so.1         libncurses.so             libpjmedia-codec.so       libpjsip-ua.so            librtpstream.so           libspeex.so.2             libssl.so
libcurl.so                libncurses.so.5           libpjmedia-codec.so.2     libpjsip-ua.so.2          librtpstream.so.2         libspeex.so.2.0.0         libssl.so.0.9.8
libcurl.so.4              libncurses.so.5.6         libpjmedia-videodev.so    libpjsip.so               librtpstream.so.2.0.0     libspeexdsp.so            libssl.so.1
libcurl.so.4.3.0          libpj.so                  libpjmedia-videodev.so.2  libpjsip.so.2             librtpstreamt38.so        libspeexdsp.so.1          libubacktrace.so.0
libg7221codec.so          libpj.so.2                libpjmedia.so             libpjsua.so               librtpstreamt38.so.2      libspeexdsp.so.1.5.0      libuuid.so.1
libgcc_s.so               libpjlib-util.so          libpjmedia.so.2           libpjsua.so.2             librtpstreamt38.so.2.0.0  libsqlite3.so.0.8.6       libuuid.so.1.3.0
libgcc_s.so.1             libpjlib-util.so.2        libpjnath.so              libresolv-0.9.29.so       libspeex.so               libsrtp.so
root@fritz:/var/media/ftp/uStor04/addons/asterisk16/usr/lib#
But it is still in Beta phase. So maybee not everything is working as it should...
 

Neueste Beiträge

Statistik des Forums

Themen
244,691
Beiträge
2,216,607
Mitglieder
371,308
Neuestes Mitglied
Chrischan 79
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.