Gustik's Websitepowered-by-FreeBSD

News

  • Asterisk 12 makes some trouble on Arch Linux at least. I discovered this problem running Arch Linux with Asterisk 12 on my RaspberryPi:

    loader.c: Error loading module 'res_rtp_asterisk.so':
    libpjnath.so.2: cannot open shared object file: No such file or directory

    Without this module res_rtp_asterisk.so Asterisk 12 will not be able to do RTP, so that it will not transport audio or video, making Asterisk unusable for setting up calls. So I looked into this, by using ldd first:

    ldd /usr/lib/asterisk/modules/res_rtp_asterisk.so

    libpjnath.so.2 => not found
    libpjlib-util.so.2 => not found
    libpj.so.2 => not found
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0xb6f63000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb6df5000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb6d98000)
    libc.so.6 => /usr/lib/libc.so.6 (0xb6c61000)
    /usr/lib/ld-linux-armhf.so.3 (0xb6fa9000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0xb6c56000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb6c3b000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6c15000)

    So the problem here is that he can not find the libpj library. So we have to install it, since it is not installed by dependency yet:

    pacman -Ss pj

    we get:

    extra/liborigin2 20110829-3
    A library for reading OriginLab OPJ project files
    extra/liborigin2-docs 20110829-3
    Documentation for liborigin2: a library for reading OriginLab OPJ project files
    aur/pjproject 2.2.1-2.1
    Open source SIP stack and media stack

    So pjproject looks good, so we try that:

    pacman -S pjproject

    After installing it, it works:

    libpjnath.so.2 => /usr/lib/libpjnath.so.2 (0xb6ea4000)
    libpjlib-util.so.2 => /usr/lib/libpjlib-util.so.2 (0xb6e7b000)
    libpj.so.2 => /usr/lib/libpj.so.2 (0xb6e52000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0xb6e32000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb6cc4000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb6c67000)
    libc.so.6 => /usr/lib/libc.so.6 (0xb6b30000)
    /usr/lib/ld-linux-armhf.so.3 (0xb6ef9000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0xb6b23000)
    libm.so.6 => /usr/lib/libm.so.6 (0xb6ab0000)
    librt.so.1 => /usr/lib/librt.so.1 (0xb6aa1000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0xb6a95000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb6a7a000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6a54000)

    Now we verify it by module show like rtp_asterisk after restarting Asterisk by core restart now and we get:

    Module Description Use Count Status
    res_rtp_asterisk.so Asterisk RTP Stack 0 Running

    All done!

  • I bought a MikroTik Router Board 750GL (50€) for use in our home in the city of Piešťany/Slovakia (link to official website of the city there), where the device is working now, running OpenWRT firmware (version AA).

    It does have 5x Gigabit LAN RJ45 interfaces and has some 128 MB of Flash disk, 64 MB RAM and about ½ GHz CPU, but that is not important, since that device is powerful enough to do everything one might need on a home network. With OpenWRT you are able to adjust VLAN for each port, so you can divide up your network into more subnetworks, letting your Router Board doing the routing and firewalling on it, so that a client on one network can not use the printer of another network and so on. The MikroTik RouterBoard 750GL is a good alternative to my Netgear WNDR3800 for everyone who does not need WLan where you have the router. I am using separate devices for WLan, mainly WRT54GL v1.1 and D-Link DIR-300, all with OpenWRT running on it.

    You can take a look at my setup inside of our house in Piešťany/Slovakia area here , running this RB750GL (OpenWRT) as a DSL Router (PPPoE), dividing networks into separate VLANs, doing Asterisk telephony PBX (version 1.8), doing restrictive firewalling and IPv6 tunneling (HEnet) for this connection that does not have native IPv6 yet. It is distributing IPv4 addresses using DHCPv4 and IPv6 addresses through SLAAC (RtAdv).