OpenWrt Forum Archive

Topic: Asterisk 1.2.14 and 1.4.0-beta4

The content of this topic has been archived between 5 Apr 2018 and 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

HI zandbelt,

Does this Asterisk pointing to the Asterisk.org 1.4 version? If not, what do I need to modify to make it get souce from either asterisk.org 1.2 or 1.4 version?

thanks
peng

Building from source
Update: the source patch does not yet contain the zaptel dummy timer patch (ie. no support for app_meetme or iax2 trunking).

   1. svn co https://svn.openwrt.org/openwrt/branches/whiterussian/
      (accept the certificate temporarily (t))
   2. patch -p0 < openwrt-whiterussian-bluez-libs-2.24-asterisk-1.2.13.patch
   3. cd whiterussian/openwrt
   4. make menuconfig
      select asterisk in Networking section and everything except chan-h323 and asterisk-sqlite
   5. make

Could someone cross build zaprtc for 2.4 kernel please. My router WRTSL54GS does not support usb-uhci.... ;(

ericw12 wrote:

Could someone cross build zaprtc for 2.4 kernel please. My router WRTSL54GS does not support usb-uhci.... ;(

I built and tried this one but think it did not work on my Asus WL-500GX:

  http://zandbelt.dyndns.org/asterisk/zaprtc.o

zaprtc-0.0.1, whiterussian kernel 2.4.30, zaptel header from 1.2.12

I'm very curious to know wether it works for you; if so, I'll create an ipkg for it.
I guess it wouldn't because your device needs a real time clock for it and I don't think this is supported on mipsel devices...

Hans.

(Last edited by zandbelt on 26 Dec 2006, 13:20)

HI Zandbelt,
I tried your 1.2.14 version with ssl loaded, but it also seems not working without any obvious error.

hmmm, has no clue about what's going on.

peng

HI Zandbelt,

The follwoing are some caputered info for your info. 1.2.14 doesn't seem to work in my wrt54gs after I use ImageBuilder to mix your ipk to the existing files.
source list.

base-files
base-files-brcm
bridge
busybox
dnsmasq
dropbear
haserl
ipkg
iptables
iwlib
kmod-brcm-wl
kmod-diag
kmod-switch
kmod-wlcompat
mtd
nvram
uclibc
wificonf
wireless-tools
libgcc
ip
iptables-mod-conntrack
iptables-mod-extra
iptables-mod-filter
iptables-mod-imq
iptables-mod-ipopt
iptables-mod-ipsec
kmod-imq
kmod-ipt-conntrack
kmod-ipt-extra
kmod-ipt-filter
kmod-ipt-ipopt
kmod-ipt-ipsec
kmod-sched
kmod-tun
qos-scripts
tc
nas
libncurses
libpthread
asterisk
asterisk-sounds
asterisk-voicemail
asterisk-res-crypto
asterisk-pbx-dundi
asterisk-mysql
asterisk-pgsql
ez-ipupdate
openntpd
openvpn
openssl-util
libopenssl
liblzo
ipkg-upgrade-fix
webif

When I issued the "asterisk" command to bring up the asterisk,
root@OpenWrt:/$ asterisk
root@OpenWrt:/$ ps
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   92 root        344 S   logger -s -p 6 -t 
   94 root        356 S   init       
   97 root        316 S   klogd
  122 root        336 S   /sbin/syslogd -C 16 -m 0
  478 root        324 S   wifi up
  660 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  667 ntp         356 S   /usr/sbin/ntpd -s
  669 root        356 S   /usr/sbin/ntpd -s
  691 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  705 root        380 S   httpd -p 80 -h /www -r OpenWrt
  795 root        312 S   telnetd -l /bin/login
  866 nobody      424 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  993 root            SWN [jffs2_gcd_mtd4]
1022 root        384 S   /usr/sbin/dropbear
1023 root        524 S   /bin/ash --login
1048 root        328 R   ps
root@OpenWrt:/$

It's not up.
root@OpenWrt:/$ /etc/init.d/S60asterisk
root@OpenWrt:/$ ps
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   92 root        344 S   logger -s -p 6 -t 
   94 root        356 S   init       
   97 root        316 S   klogd
  122 root        336 S   /sbin/syslogd -C 16 -m 0
  478 root        324 S   wifi up
  660 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  667 ntp         356 S   /usr/sbin/ntpd -s
  669 root        356 S   /usr/sbin/ntpd -s
  691 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  705 root        380 S   httpd -p 80 -h /www -r OpenWrt
  795 root        312 R   telnetd -l /bin/login
  866 nobody      424 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  993 root            SWN [jffs2_gcd_mtd4]
1022 root        384 S   /usr/sbin/dropbear
1023 root        524 S   /bin/ash --login
1052 root        328 R   ps
root@OpenWrt:/$ /etc/init.d/S60asterisk restart
root@OpenWrt:/$ ps
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   92 root        344 S   logger -s -p 6 -t 
   94 root        356 S   init       
   97 root        316 S   klogd
  122 root        336 S   /sbin/syslogd -C 16 -m 0
  478 root        324 S   wifi up
  660 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  667 ntp         356 S   /usr/sbin/ntpd -s
  669 root        356 S   /usr/sbin/ntpd -s
  691 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  705 root        380 S   httpd -p 80 -h /www -r OpenWrt
  795 root        312 S   telnetd -l /bin/login
  866 nobody      424 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  993 root            SWN [jffs2_gcd_mtd4]
1022 root        384 S   /usr/sbin/dropbear
1023 root        524 S   /bin/ash --login
1056 root        328 R   ps
root@OpenWrt:/$
root@OpenWrt:/$  asterisk -vvvvvvvvvvvvr
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
root@OpenWrt:/$ more /var/run/asterisk.
/var/run/asterisk.ctl   /var/run/asterisk.pid
root@OpenWrt:/$ more /var/run/asterisk.ctl
more: /var/run/asterisk.ctl: No such device or address
root@OpenWrt:/$
root@OpenWrt:/$ more /var/run/asterisk.pid
1041



root@OpenWrt:/$ more /var/log/asterisk/messages
Dec 28 15:09:12 NOTICE[1041] cdr.c: CDR simple logging enabled.
Dec 28 15:09:14 WARNING[1041] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 28 15:09:14 WARNING[1047] res_musiconhold.c: /var/lib/asterisk/mohmp3 is not a valid directory
Dec 28 15:09:14 WARNING[1047] res_musiconhold.c: Unable to spawn mp3player
Dec 28 15:09:14 WARNING[1041] loader.c: File not found
Dec 28 15:09:14 WARNING[1041] loader.c: Loading module pbx_dundi.so failed!

root@OpenWrt:/$ more /usr/lib/asterisk/
/usr/lib/asterisk/astdb      /usr/lib/asterisk/keys/      /usr/lib/asterisk/mohmp3/
/usr/lib/asterisk/firmware/  /usr/lib/asterisk/modules/   /usr/lib/asterisk/sounds/
root@OpenWrt:/$ more /usr/lib/asterisk/

peng wrote:

root@OpenWrt:/$ /etc/init.d/S60asterisk restart

did you modify the /etc/default/asterisk file?
you should set "ENABLE_ASTERISK" to "yes" there.

also make sure in /etc/asterisk/musiconhold.conf to point to /usr/lib/asterisk/mohmp3 instead of /var/lib/asterisk/mohmp3
(yes this could be changed in the packages itself, but its just the default asterisk config on non-openwrt machines)

Hans.

zandbelt wrote:
ericw12 wrote:

Could someone cross build zaprtc for 2.4 kernel please. My router WRTSL54GS does not support usb-uhci.... ;(

I built and tried this one but think it did not work on my Asus WL-500GX:

  http://zandbelt.dyndns.org/asterisk/zaprtc.o

zaprtc-0.0.1, whiterussian kernel 2.4.30, zaptel header from 1.2.12

I'm very curious to know wether it works for you; if so, I'll create an ipkg for it.
I guess it wouldn't because your device needs a real time clock for it and I don't think this is supported on mipsel devices...

Hans.

That didn't work... which sort of make sense. Zaprtc is a RTC module replacement, which is something I don't have in my WRTSL54GS.
There is only one thing left according to http://www.voip-info.org/wiki/view/Asterisk+timer --- realzap. Have you ever tried to port that?
I don't get why this thing have to have time source.... that sucks.

I hope someone could help me with this.

I'm working on my own Asterisk package build, trying to do the recently-released 1.4.

I am almost there, but the build environment recommended by mbm (kamikaze via svn) does not seem to have the libtermcap.so file anywhere in the tree. 

It is needed to build Asterisk, and after three hours of searching the net high and low, I can't find an openWRT ipkg, nor can I find the sources anywhere for that library.

If someone could provide me a clue I'd be greatly appreciative.

capouch wrote:

I'm working on my own Asterisk package build, trying to do the recently-released 1.4.
I am almost there, but the build environment recommended by mbm (kamikaze via svn) does not seem to have the libtermcap.so file anywhere in the tree.

You don't need libtermcap if you provide libncurses instead, which is in the packages repository.

BTW: I'll be uploading an enhancement ticket with a patch for asterisk 1.4.0 build support for kamikaze/WR-buildroot-ng later this day/tomorrow and I'll put up binary packages somewhere else.

Hans.

HI Zandbelt,

I tried your suggestions , but haven't got any success. My understanding with that default "enable=yes" is only used to help you boot asterisk when router boots. so, i don't think it coutns here.

I am not sure whether there's something wrong during your make of ipk.

the followings are some captures.

thanks
peng

root@OpenWrt:/$ more /var/log/asterisk/messages
Dec 29 14:03:50 NOTICE[1001] cdr.c: CDR simple logging enabled.
Dec 29 14:03:51 WARNING[1001] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 14:03:51 WARNING[1008] res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'
Dec 29 14:03:51 WARNING[1008] res_musiconhold.c: Unable to spawn mp3player
Dec 29 14:03:52 WARNING[1001] loader.c: File not found
Dec 29 14:03:52 WARNING[1001] loader.c: Loading module pbx_dundi.so failed!
Dec 29 14:06:14 NOTICE[1019] cdr.c: CDR simple logging enabled.
Dec 29 14:06:14 WARNING[1019] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 14:06:14 WARNING[1025] res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'
Dec 29 14:06:14 WARNING[1025] res_musiconhold.c: Unable to spawn mp3player
Dec 29 14:06:14 WARNING[1019] loader.c: File not found
Dec 29 14:06:14 WARNING[1019] loader.c: Loading module pbx_dundi.so failed!
Dec 29 14:06:46 NOTICE[1030] cdr.c: CDR simple logging enabled.
Dec 29 14:06:46 WARNING[1030] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 14:06:46 WARNING[1030] loader.c: File not found
Dec 29 14:06:46 WARNING[1030] loader.c: Loading module pbx_dundi.so failed!
root@OpenWrt:/$ date
Fri Dec 29 14:07:38 UTC 2006


root@OpenWrt:/$ more /etc/default/asterisk
## startup options for /etc/init.d/asterisk

root@OpenWrt:/$  more /etc/asterisk/musiconhold.conf
;
; Music on Hold -- Sample Configuration
;

[default]
mode=quietmp3
directory=/usr/lib/asterisk/mohmp3


ENABLE_ASTERISK="yes"
OPTIONS=""
root@OpenWrt:/$


root@OpenWrt:/$ ps
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   69 root            SWN [jffs2_gcd_mtd4]
   93 root        344 S   logger -s -p 6 -t 
   95 root        356 S   init       
   98 root        316 S   klogd
  123 root        336 S   /sbin/syslogd -C 16 -m 0
  484 root        324 S   wifi up
  534 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  541 root        392 S   /usr/sbin/dropbear
  547 root        380 S   httpd -p 80 -h /www -r OpenWrt
  831 nobody      424 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  845 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  871 ntp         356 S   /usr/sbin/ntpd -s
  880 root        356 S   /usr/sbin/ntpd -s
  992 root        596 R   /usr/sbin/dropbear
  993 root        524 S   -ash
1042 root        328 R   ps

root@OpenWrt:~$ asterisk
root@OpenWrt:~$ ps   
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   69 root            SWN [jffs2_gcd_mtd4]
   93 root        344 S   logger -s -p 6 -t 
   95 root        356 S   init       
   98 root        316 S   klogd
  123 root        336 S   /sbin/syslogd -C 16 -m 0
  483 root        324 S   wifi up
  591 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  616 root        392 S   /usr/sbin/dropbear
  628 root        380 S   httpd -p 80 -h /www -r OpenWrt
  735 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  751 ntp         356 S   /usr/sbin/ntpd -s
  758 root        356 S   /usr/sbin/ntpd -s
  835 root        596 R   /usr/sbin/dropbear
  863 nobody      416 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  922 root        524 S   -ash
  938 root        328 R   ps
root@OpenWrt:~$ asterisk -vvvvvvvvvvvr
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

root@OpenWrt:~$ ls /var/run/
/var/run/asterisk.ctl   /var/run/dropbear.pid   /var/run/vlan1.pid
/var/run/asterisk.pid   /var/run/nas.lan.conf   /var/run/wifi.pid
/var/run/dnsmasq.pid    /var/run/nas.lan.pid
root@OpenWrt:~$ ls /var/run/

root@OpenWrt:~$ more /var/run/asterisk.ctl
more: /var/run/asterisk.ctl: No such device or address
root@OpenWrt:~$ more /var/run/asterisk.pid
931

peng wrote:

I tried your suggestions , but haven't got any success.

which packages have you installed exactly ?

Hans.

HI Zandbelt,

The follwoing are some caputered info for your info. 1.2.14 doesn't seem to work in my wrt54gs after I use ImageBuilder to mix your ipk to the existing files.
source list.

base-files
base-files-brcm
bridge
busybox
dnsmasq
dropbear
haserl
ipkg
iptables
iwlib
kmod-brcm-wl
kmod-diag
kmod-switch
kmod-wlcompat
mtd
nvram
uclibc
wificonf
wireless-tools
libgcc
ip
iptables-mod-conntrack
iptables-mod-extra
iptables-mod-filter
iptables-mod-imq
iptables-mod-ipopt
iptables-mod-ipsec
kmod-imq
kmod-ipt-conntrack
kmod-ipt-extra
kmod-ipt-filter
kmod-ipt-ipopt
kmod-ipt-ipsec
kmod-sched
kmod-tun
qos-scripts
tc
nas
libncurses
libpthread
asterisk
asterisk-sounds
asterisk-voicemail
asterisk-res-crypto
asterisk-pbx-dundi
asterisk-mysql
asterisk-pgsql
ez-ipupdate
openntpd
openvpn
openssl-util
libopenssl
liblzo
ipkg-upgrade-fix
webif

peng wrote:

The follwoing are some caputered info for your info. 1.2.14 doesn't seem to work in my wrt54gs after I use ImageBuilder to mix your ipk to the existing files.

Try without mixing your own image first, by installing a default image (RC6) and just installing additional packages (asterisk-*) from the commandline.
I've created a package repository for the latest releases now, so you can just add this repository to your /etc/ipkg.conf.

Hans.

(Last edited by zandbelt on 29 Dec 2006, 15:45)

root@OpenWrt:/$ ipkg install asterisk
Installing asterisk (1.2.14-2) to root...
Downloading http://members.home.nl/hans.zandbelt/op … mipsel.ipk
Configuring asterisk
Successfully terminated.
root@OpenWrt:/$ ipkg install asterisk-voicemail
Installing asterisk-voicemail (1.2.14-2) to root...
Downloading http://members.home.nl/hans.zandbelt/op … mipsel.ipk
Configuring asterisk-voicemail
Successfully terminated.
root@OpenWrt:/$ ipkg install asterisk-sounds   
Installing asterisk-sounds (1.2.14-2) to root...
Downloading http://members.home.nl/hans.zandbelt/op … mipsel.ipk
Configuring asterisk-sounds
Successfully terminated.
root@OpenWrt:/$ ipkg install asterisk-res-crypto
Installing asterisk-res-crypto (1.2.14-2) to root...
Downloading http://members.home.nl/hans.zandbelt/op … mipsel.ipk
Configuring asterisk-res-crypto
Successfully terminated.


root@OpenWrt:/$ ipkg list_installed
asterisk - 1.2.14-2 - An open source PBX
asterisk-res-crypto - 1.2.14-2 - Asterisk Crypto module
asterisk-sounds - 1.2.14-2 - a sounds collection for Asterisk
asterisk-voicemail - 1.2.14-2 - VoiceMail related modules for Asterisk
base-files - 9 - OpenWrt filesystem structure and scripts
base-files-brcm - 2 - Board/architecture specific files
bridge - 1.0.6-1 - Ethernet bridging tools
busybox - 1.2.1-6 - Core utilities for embedded Linux systems
dnsmasq - 2.35-1 - A lightweight DNS and DHCP server
dropbear - 0.48.1-1 - a small SSH 2 server/client designed for small memory environments.
ez-ipupdate - 3.0.11b8-2 - Dynamic DNS services client
haserl - 0.8.0-1 - a CGI wrapper to embed shell scripts in HTML documents
ip - 2.6.11-050330-1 - iproute2 routing control utility
ipkg - 0.99.149-2 - lightweight package management system
ipkg-upgrade-fix - 0.2-1 - Shows warning about 'ipkg upgrade' when user tries to use it.
iptables - 1.3.3-2 - The netfilter firewalling software for IPv4
iptables-mod-conntrack - 1.3.3-2 - Iptables (IPv4) extensions for connection tracking
iptables-mod-extra - 1.3.3-2 - Other extra Iptables (IPv4) extensions
iptables-mod-filter - 1.3.3-2 - Iptables (IPv4) extension for packet content inspection
iptables-mod-imq - 1.3.3-2 - Iptables (IPv4) extensions for Intermediate Queuing Device QoS-support
iptables-mod-ipopt - 1.3.3-2 - Iptables (IPv4) extensions for matching/changing IP packet options
iptables-mod-ipsec - 1.3.3-2 - Iptables (IPv4) extensions for matching special IPsec packets
iwlib - 29.pre10-1 - Library for setting up WiFi cards using the Wireless Extension
kernel - 2.4.30-brcm-5 -
kmod-brcm-wl - 2.4.30-brcm-5 - Proprietary driver for Broadcom Wireless chipsets
kmod-diag - 2.4.30-brcm-5 - Kernel modules for LEDs and buttons
kmod-imq - 2.4.30-brcm-5 - Kernel support for the Intermediate Queueing device
kmod-ipt-conntrack - 2.4.30-brcm-5 - Extra Netfilter (IPv4) kernel modules for connection tracking
kmod-ipt-extra - 2.4.30-brcm-5 - Other extra Netfilter (IPv4) kernel modules
kmod-ipt-filter - 2.4.30-brcm-5 - Netfilter (IPv4) kernel modules for packet content inspection
kmod-ipt-ipopt - 2.4.30-brcm-5 - Netfilter (IPv4) kernel modules for matching/changing IP packet options
kmod-ipt-ipsec - 2.4.30-brcm-5 - Netfilter (IPv4) kernel modules for matching special IPsec packets
kmod-sched - 2.4.30-brcm-5 - Kernel schedulers for IP traffic
kmod-switch - 2.4.30-brcm-1 - switch driver for robo/admtek switch
kmod-tun - 2.4.30-brcm-5 - Kernel TUN/TAP extension
kmod-wlcompat - 2.4.30-brcm-4 - Compatibility module for using the Wireless Extension with broadcom's wl
libgcc - 3.4.4-9 - GCC support library
liblzo - 2.02-1 - A real-time data compression library
libncurses - 5.2-7 - a terminal handling library and common terminal definitions
libopenssl - 0.9.8d-1 - OpenSSL (Secure Socket Layer) libraries
libpthread - 0.9.27-1 - POSIX threads library
mtd - 4 - Tool for modifying the flash chip
nas - 3.90.37-17 - Proprietary Broadcom WPA Authenticator/Supplicant
nvram - 1 - NVRAM utility and libraries for Broadcom hardware
openntpd - 3.9p1-1 - NTP server
openssl-util - 0.9.8d-1 - OpenSSL (Secure Socket Layer) command line tool
openvpn - 2.0.8-1 - Open Source VPN solution using SSL
qos-scripts - 0.9.3-1 -
tc - 2.6.11-050330-1 - iproute2 traffic control utility
uclibc - 0.9.27-9 - Standard C library for embedded Linux systems
webif - 0.3-2 - An HTTP administrative console for OpenWrt.
wificonf - 6 - Replacement utility for wlconf
wireless-tools - 29.pre10-1 - Tools for setting up WiFi cards using the Wireless Extension
Successfully terminated


root@OpenWrt:/$ asterisk
root@OpenWrt:/$ ps
  PID  Uid     VmSize Stat Command
    1 root        356 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
   92 root        344 S   logger -s -p 6 -t 
   95 root        356 S   init       
   97 root        316 S   klogd
  122 root        336 S   /sbin/syslogd -C 16 -m 0
  481 root        324 S   wifi up
  661 root        368 S   udhcpc -i vlan1 -r 10.10.10.10 -b -p /var/run/vlan1.p
  667 ntp         356 S   /usr/sbin/ntpd -s
  669 root        356 S   /usr/sbin/ntpd -s
  691 root        412 S   /usr/sbin/nas -P /var/run/nas.lan.pid -l br0 -H 34954
  706 root        380 S   httpd -p 80 -h /www -r OpenWrt
  795 root        316 S   telnetd -l /bin/login
  863 nobody      424 S   dnsmasq -l /tmp/dhcp.leases -K -F lan,192.168.15.100,
  988 root        524 S   /bin/ash --login
1012 root            SWN [jffs2_gcd_mtd4]
1098 root        384 S   /usr/sbin/dropbear
1111 root       2792 S   asterisk
1112 root       2792 S   asterisk
1114 root       2792 S   asterisk
1115 root       2792 S   asterisk
1116 root       2792 S   asterisk
1117 root       2792 S   asterisk
1118 root       2792 S   asterisk
1119 root       2792 S   asterisk
1120 root        328 R   ps

root@OpenWrt:/$ asterisk -vvvvvvvvvvr
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.2.14, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.14 currently running on OpenWrt (pid = 1111)
Verbosity was 0 and is now 10



root@OpenWrt:/$ more /var/log/asterisk/messages
Dec 29 15:11:27 NOTICE[1111] cdr.c: CDR simple logging enabled.
Dec 29 15:11:27 WARNING[1111] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 15:11:27 WARNING[1111] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
Dec 29 15:11:27 WARNING[1117] res_musiconhold.c: /var/lib/asterisk/mohmp3 is not a valid directory
Dec 29 15:11:27 WARNING[1117] res_musiconhold.c: Unable to spawn mp3player
Dec 29 15:11:27 WARNING[1111] app_voicemail.c: Failed to load configuration file. Module not activated.

root@OpenWrt:/$ more /etc/asterisk/
/etc/asterisk/agents.conf          /etc/asterisk/extconfig.conf       /etc/asterisk/misdn.conf
/etc/asterisk/alarmreceiver.conf   /etc/asterisk/extensions.ael       /etc/asterisk/modules.conf
/etc/asterisk/asterisk.conf        /etc/asterisk/extensions.conf      /etc/asterisk/musiconhold.conf
/etc/asterisk/cdr.conf             /etc/asterisk/features.conf        /etc/asterisk/osp.conf
/etc/asterisk/cdr_custom.conf      /etc/asterisk/iax.conf             /etc/asterisk/privacy.conf
/etc/asterisk/cdr_manager.conf     /etc/asterisk/iaxprov.conf         /etc/asterisk/queues.conf
/etc/asterisk/codecs.conf          /etc/asterisk/indications.conf     /etc/asterisk/rtp.conf
/etc/asterisk/dnsmgr.conf          /etc/asterisk/logger.conf          /etc/asterisk/sip.conf
/etc/asterisk/enum.conf            /etc/asterisk/manager.conf         /etc/asterisk/sip_notify.conf


root@OpenWrt:/$ more /var/log/asterisk/messages
Dec 29 15:11:27 NOTICE[1111] cdr.c: CDR simple logging enabled.
Dec 29 15:11:27 WARNING[1111] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 15:11:27 WARNING[1111] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
Dec 29 15:11:27 WARNING[1117] res_musiconhold.c: /var/lib/asterisk/mohmp3 is not a valid directory
Dec 29 15:11:27 WARNING[1117] res_musiconhold.c: Unable to spawn mp3player
Dec 29 15:11:27 WARNING[1111] app_voicemail.c: Failed to load configuration file. Module not activated.
Dec 29 15:15:30 NOTICE[1135] cdr.c: CDR simple logging enabled.
Dec 29 15:15:30 WARNING[1135] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 15:15:30 WARNING[1135] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
Dec 29 15:15:30 WARNING[1141] res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'
Dec 29 15:15:30 WARNING[1141] res_musiconhold.c: Unable to spawn mp3player
Dec 29 15:15:30 WARNING[1135] app_voicemail.c: Failed to load configuration file. Module not activated.

HI Zandbelt,

It seems working by directly installing ipkg from your repository.

but I do find the following errors,

1. there's no default /etc/asterisk/voicemail.conf, which leads to the error "Dec 29 15:15:30 WARNING[1135] app_voicemail.c: Failed to load configuration file. Module not activated.:, i guess. Is this something that you missed during your make of ipkg?

2. I changed the /var/lib/asterisk/mohmp3 to /usr/lib/asterisk/mohmps, but it still shows error "res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'
Dec 29 15:15:30 WARNING[1141] res_musiconhold.c: Unable to spawn mp3player"

3. What's the cause of these two errors? "Dec 29 15:15:30 WARNING[1135] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 15:15:30 WARNING[1135] chan_iax2.c: Unable to open IAX timing interface: No such file or directory"

4. Why are there so many Asterisk processes? I thought it's only one process we are running, i mean one program.
1135 root       2796 S   asterisk
1136 root       2796 S   asterisk
1138 root       2796 S   asterisk
1139 root       2796 S   asterisk
1140 root       2796 S   asterisk
1141 root       2796 S   asterisk
1142 root       2796 S   asterisk
1143 root       2796 S   asterisk

5. What would be the difference of installing your ipkg directly from net and installing your ipkg with my ImageBuilder?

tks
peng

I was trying to use Imagebuilder so I can save more space.

peng wrote:

1. there's no default /etc/asterisk/voicemail.conf, which leads to the error "Dec 29 15:15:30 WARNING[1135] app_voicemail.c: Failed to load configuration file. Module not activated.:, i guess. Is this something that you missed during your make of ipkg?

Nope, there's a default one like that in the asterisk-voicemail package.
Double check your config (maybe it overrules the installed one because you had one already and that one is not correct?)

peng wrote:

2. I changed the /var/lib/asterisk/mohmp3 to /usr/lib/asterisk/mohmps, but it still shows error "res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'

Probably because you don't have mp3 files in that directory?

peng wrote:

Dec 29 15:15:30 WARNING[1141] res_musiconhold.c: Unable to spawn mp3player"

3. What's the cause of these two errors? "Dec 29 15:15:30 WARNING[1135] res_musiconhold.c: Unable to open pseudo channel for timing...  Sound may be choppy.
Dec 29 15:15:30 WARNING[1135] chan_iax2.c: Unable to open IAX timing interface: No such file or directory"

Warnings like these can be ignored (output of tests).

peng wrote:

4. Why are there so many Asterisk processes? I thought it's only one process we are running, i mean one program.

Because of the threading implementation on mipsel-linux (LinuxThreads): one process per thread. Google for the details.

peng wrote:

5. What would be the difference of installing your ipkg directly from net and installing your ipkg with my ImageBuilder?

Something in the way the image is created...

Hans.

root@OpenWrt:/$ more /etc/asterisk/
/etc/asterisk/agents.conf          /etc/asterisk/extensions.ael       /etc/asterisk/musiconhold.conf
/etc/asterisk/alarmreceiver.conf   /etc/asterisk/extensions.conf      /etc/asterisk/osp.conf
/etc/asterisk/asterisk.conf        /etc/asterisk/features.conf        /etc/asterisk/privacy.conf
/etc/asterisk/cdr.conf             /etc/asterisk/iax.conf             /etc/asterisk/queues.conf
/etc/asterisk/cdr_custom.conf      /etc/asterisk/iaxprov.conf         /etc/asterisk/rtp.conf
/etc/asterisk/cdr_manager.conf     /etc/asterisk/indications.conf     /etc/asterisk/sip.conf
/etc/asterisk/codecs.conf          /etc/asterisk/logger.conf          /etc/asterisk/sip_notify.conf
/etc/asterisk/dnsmgr.conf          /etc/asterisk/manager.conf         /etc/asterisk/voicemail.conf
/etc/asterisk/enum.conf            /etc/asterisk/misdn.conf
/etc/asterisk/extconfig.conf       /etc/asterisk/modules.conf
root@OpenWrt:/$ more /var/log/asterisk/messages


Dec 29 15:48:50 NOTICE[1141] res_musiconhold.c: Request to schedule in the past?!?!
Dec 29 15:48:50 WARNING[1141] res_musiconhold.c: Found no files in '/usr/lib/asterisk/mohmp3'
Dec 29 15:48:50 WARNING[1141] res_musiconhold.c: Unable to spawn mp3player
root@OpenWrt:/$
root@OpenWrt:/$
root@OpenWrt:/$ mv /usr/lib/asterisk/mohmp3/ /usr/lib/asterisk/moh-native

root@OpenWrt:/$ more /var/log/asterisk/messages
Dec 29 16:03:08 NOTICE[1226] cdr.c: CDR simple logging enabled.
Dec 29 16:03:08 WARNING[1226] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
root@OpenWrt:/$

HI Zandbelt,

1. I modified /etc/asterisk/musiconhold.conf and it will use /moh-native instead. I created  one for that directory by doing" root@OpenWrt:/$ mv /usr/lib/asterisk/mohmp3/ /usr/lib/asterisk/moh-native". it resolves the error.

2. I removed asterisk-voice package and re-installed it again, i got /etc/asterisk/voicemail.conf.

3. This is the only left out error info. "Dec 29 16:03:08 WARNING[1226] chan_iax2.c: Unable to open IAX timing interface: No such file or directory". Not sure what's the cause. but, if you think it's ok, then should be fine.

4. I tried to use ImageBuilder with yoru package to save some space on the router. So, if I can install your ipkg directly and it works, what could be the cause of not get it working after imagebulder process?

thanks
peng

HI Zandbelt,

Are you going to deep dive in creating 1.4 Asterisk ipkg ? I am really interested in the new feature of h264 passthrough.

Let me know if you have any roadmaps. One thing that concerns me is that why I cound't use DTMF after 1.4 is loaded.

tks
peng

HI Zandbelt,

Can you explain a bit in detail how we're going to install this .tar.gz on the router?

I  tar -zxvf asterisk-gui-svn-204.tar.gz in /tmp folder. Then, don't know what to do next? it seems that "make/make install" doesn't work on the router>

tks
peng


Here's a package for testing the stuff from asterisk-gui project, basically adding a Graphical User Interface to Asterisk 1.4.x through HTTP/HTML/AJAM.
# asterisk-gui-svn-204.tar.gz
After installation the following steps are needed (at least):

peng wrote:

Can you explain a bit in detail how we're going to install this .tar.gz on the router?

I  tar -zxvf asterisk-gui-svn-204.tar.gz in /tmp folder. Then, don't know what to do next? it seems that "make/make install" doesn't work on the router>

Whoops; I mixed up source and binaries here: the tar.gz is used for downloading and compiling in the OpenWRT SDK (source patch is pending).
The actual binary ipkg is:

  asterisk14-gui_svn-204-1_mipsel.ipk

I corrected the webpage at http://zandbelt.dyndns.org/asterisk.html

ssokol and capouch have better results in actually configuring it to do what it is supposed to do (could be with another release though).
See: http://forum.openwrt.org/viewtopic.php?pid=39974#p39974

Thanks for checking,

Hans

thanks

HI Hans,

Do you know that whether fax to an internal extension through adapter to a fax machine and send out fax works in the package installed in linksys router?

Are you aware of any issues? Can I just plug a fax through an adapter to test? any configurations that I need to do prior to that?

tks
peng

The discussion might have continued from here.