Currently, my asterisk which is running on a LaFonera WiFi router is working after I applied a simple hack to fix some problem. However, I sure would like to get some feedbacks from readers here to get this problem fixed in a more proper/normal way.
Here is what I have done:
[ol][li]I downloaded and successfully compiled OpenWRT SVN trunk with asterisk v1.4.17.[/li]
[li]I flashed my LaFonera 2100 WiFi router with this newly compile OpenWRT firmware + asterisk v1.4.17.[/li]
[li]I managed to configure the asterisk with some VoIP lines, GTalk, and some extensions. They are all working fine.[/li][/ol]
My problem is as follows:
[ol][li]If I configure my asterisk to run during the boot time using the /etc/init.d/asterisk scripts file, my asterisk will only run with three processes. Any further attempt to launch rasterisk or asterisk -r, will get an error message saying Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) At this stage, none of my VoIP lines nor extensions get registered as if they all are dead. No GTalk neither. See below:
[code]root@Fonerisk:~# /etc/init.d/asterisk start
root@Fonerisk:~# ps
PID Uid VSZ Stat Command
1 root 1664 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
20 root SW< [kblockd/0]
40 root SW [pdflush]
41 root SW [pdflush]
42 root SW< [kswapd0]
43 root SW< [aio/0]
56 root SW< [mtdblockd]
188 root SWN [jffs2_gcd_mtd3]
202 root 1664 S logger -s -p 6 -t
203 root 1664 S init
210 root 1676 S syslogd -C16
212 root 1660 S klogd
220 root 752 S /sbin/hotplug2 --override --persistent --max-children
489 root 1660 S crond -c /etc/crontabs
493 root 1172 S /usr/sbin/dropbear -p 22
499 root 1660 S httpd -p 80 -h /www -r OpenWrt
516 nobody 888 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
539 root 1228 S /usr/sbin/dropbear -p 22
540 root 1676 S -ash
543 root 1228 S /usr/sbin/dropbear -p 22
544 root 1668 S -ash
568 root 2600 S /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf
569 root 2600 S /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf
570 root 2600 S /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf
571 root 1664 R ps
root@Fonerisk:~# rasterisk
Asterisk 1.4.17, Copyright © 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core 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 ‘core show license’ for details.
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)[/code][/li]
[li]If I edit the /etc/default/asterisk scripts file to include a -v, then /etc/init.d/asterisk start will return twenty-one and/or more asterisk processes. At this stage, rasterisk will gives me the asterisk CLI and all my VoIP lines, GTalks, and extensions are normally working with incoming/outgoing calls. See below:
[code]root@Fonerisk:~# ps
PID Uid VSZ Stat Command
1 root 1664 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
20 root SW< [kblockd/0]
40 root SW [pdflush]
41 root SW [pdflush]
42 root DW< [kswapd0]
43 root SW< [aio/0]
56 root SW< [mtdblockd]
188 root SWN [jffs2_gcd_mtd3]
202 root 1664 S logger -s -p 6 -t
203 root 1664 S init
210 root 1676 S syslogd -C16
212 root 1660 S klogd
220 root 752 S /sbin/hotplug2 --override --persistent --max-children
484 root 9384 R /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
489 root 1660 S crond -c /etc/crontabs
493 root 1172 S /usr/sbin/dropbear -p 22
499 root 1660 S httpd -p 80 -h /www -r OpenWrt
502 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
505 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
507 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
512 root 1228 R /usr/sbin/dropbear -p 22
517 nobody 888 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
522 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
523 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
524 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
525 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
526 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
527 root 1668 S -ash
530 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
531 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
532 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
533 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
534 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
535 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
536 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
537 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
538 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
539 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
540 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
541 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
544 root 1228 S /usr/sbin/dropbear -p 22
545 root 1668 S -ash
547 root 2604 S rasterisk
548 root 9384 S /usr/sbin/asterisk -vC /etc/asterisk/asterisk.conf
549 root 1664 R ps
root@Fonerisk:~# rasterisk
Asterisk 1.4.17, Copyright © 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core 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 ‘core show license’ for details.
Connected to Asterisk 1.4.17 currently running on Fonerisk (pid = 484)
Verbosity is at least 1
Fonerisk*CLI>[/code][/li][/ol]
Although this quick hack/fix works, I am here seeking for a more subtle and/or better way to get this problem fixed, let alone wanting to know what causes the problem. So, I will appreciate if anyone out here can help