I know this is a rather old post and don't know if you already found a solution. However, I, too, would like to re-visit this issue. I have just flashed one of my LaFonera units with an OpenWRT compiled off the SVN trunk with asterisk14 and asterisk-1.2.x. Regardless which version of asterisk I installed, when I try to run rasterisk, I always got the same error message indicating /var/run/asterisk.ctl doesn't exist even though my asterisk has been configured and run through the original init scripts (/etc/init.d/asterisk) during a reboot. However, if I modified the /etc/default/asterisk file to include this OPTIONS="-vC /etc/asterisk/asterisk.conf" (notice the verbose v switch) and add an & at the end of the line to launch asterisk on the /etc/init.d/asterisk file, i.e. $DEST/usr/sbin/asterisk $OPTIONS &, then rasterisk will run without a problem as shown below:
root@192.168.1.2's password:
BusyBox v1.8.2 (2008-02-12 15:28:32 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r10141) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@Fonerisk:~# rasterisk
Asterisk 1.4.17, Copyright (C) 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 = 461)
Verbosity is at least 1
Fonerisk*CLI>
Honetly, I just don't like this quick and simple hack. I am hoping someone who knows how to fix this can help me.