Disable auto-dial out


I run Asterisk on OpenWRT and polling the /var/spool/asterisk/outgoing directory takes a lot of CPU cycles (100%) on my Linksys router. How can we disable the auto-dial out function of Asterisk?


just an idea, but may be worth trying … if you delete the “outgoing” directory does Asterisk re-create it ? if so, does creating a file “outgoing” stop the scanning ? or does the lack of an “outgoing” directory stop the scanning ?

Yes, the directory /var/spool/asterisk/outgoing keep being re-created!

I also realized that the chan_sip.so module polls the function “gettimeofday” every second wich may also takes a lot of CPU.

Is that polling necessary?

[quote=“baconbuttie”]does creating a file “outgoing” stop the scanning ?[/quote]did you try this ?

I found the problem!

It was neither the auto-dial out or the gettimeofday function. It was the /usr/lib/asterisk/astdb file! Asterisk keeps reading and writing in that file located in flash memory instead of RAM. I simply moved the file in /var/spool/asterisk/ (RAM) and created a link.