Asterisk Startup

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
blaughtmon
DD-WRT User


Joined: 29 Mar 2010
Posts: 117

PostPosted: Mon Oct 11, 2010 21:13    Post subject: Asterisk Startup Reply with quote
I just recently installed Asterisk 1.4 on my Asus RT-N16 (build 14929) and I am having trouble with getting Asterisk to start on startup. I followed the directions in this link.

http://www.fivn.com/products/asterisk.html

After doing the installation of the startup files and enter "asterisk" in the Administration ---> Commands field, I reboot the router and it works perfectly the first time. I tried rebooting the router a day later and it doesn't work. I've tried putting /opt/sbin/asterisk in the Commands field but no dice. It only seems to work the first time.

Anyone have any ideas? If you need more information please let me know.
Sponsor
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Mon Oct 11, 2010 23:45    Post subject: Reply with quote
Have you verified if your '/opt' location is being mounted properly?

If it is, you might need to put a 'sleep' statement of several seconds before you try launching asterisk. The startup commands tend to run concurrently with some other processes including the mounting of USB devices. If the '/opt' location is not mounted at the time of the startup script running it, then it will never start.

Also, have you tried seeing if the asterisk program is running in memory from the console? If it is not running, have you tried starting it from the command line and then see if it is running in memory?

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
blaughtmon
DD-WRT User


Joined: 29 Mar 2010
Posts: 117

PostPosted: Tue Oct 12, 2010 2:26    Post subject: Reply with quote
crashfly

My opt partition automatically mounts at startup via the USB startup option under Services ----> USB

I think I will need that sleep command. Can you please post the syntax?

Thanks.
lv426
DD-WRT User


Joined: 21 Nov 2007
Posts: 79

PostPosted: Tue Oct 12, 2010 16:43    Post subject: Reply with quote
Hi blaughtmon,

Code:

sleep 20
asterisk -C <config_file>


lv426
blaughtmon
DD-WRT User


Joined: 29 Mar 2010
Posts: 117

PostPosted: Wed Oct 13, 2010 17:16    Post subject: Reply with quote
lv426

Thanks for that command. Asterisk starts up perfectly every time.
blaughtmon
DD-WRT User


Joined: 29 Mar 2010
Posts: 117

PostPosted: Wed Oct 13, 2010 20:02    Post subject: Reply with quote
I have another question that I'm hoping someone can answer

After Asterisk starts up I checked the running processes by typing the "top" command. I see that there are over 10 running Asterisk processes all with different PIDs. Anyone have an idea as to why there are so many Asterisk processes running at one time?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum