Amportal restart needed to get dahdi dial tone

Hi,

when i reboot my ubuntu linux box i always got no dial tone.
i need to do amportal restart command to get dial tone.

can you teach me how to create a start up script to make automatic amportal restart every time i reboot my machine.

Thank you…

i found the root cause.
i found out asterisk not running after reboot.

i have
/usr/local/sbin/amportal start @ /etc/rc.local
for some time it works but now asterisk is not working again after reboot
workaround is to do amportal restart every time machine reboot.