From: Darrick H. <dha...@dj...> - 2007-05-21 16:37:49
|
Ingmar Schraub wrote: > Hello Jonathan, > > I just noticed that the asterisk startup file in the 0.4 branch does not > contain the logic for mISDN to store/retrieve the configuration from the > keydisk. It has been implemented already in the trunk. > > So do the following (well, won't work on the liveCD... but on a RW media): > > 1.) create the keydisk > 2.) mount / with 'mount -o rw,remount /' > 3.) edit /etc/rc.conf and put the following line in > ISDN_MODPROBE="MISDN" > 4.) edit /etc/init.d/asterisk, search for the line 'if [ > "$ISDN_MODPROBE" -o "$MISDN" ]". Replace the 'if' section and delete the > /etc/init.d/misdn-init config line with the following code: > > if [ "$ISDN_MODPROBE" -o "$MISDN" ] > then > echo "Starting mISDN" > if [ -d /mnt/kd ] > then > ln -s /mnt/kd/misdn-init.conf /tmp/etc/misdn-init.conf > fi > if [ -r /mnt/kd/misdn-init.conf ] > then > echo "misdn-init.conf already exists on /mnt/kd, skipping config." > else > /usr/sbin/misdn-init scan > /usr/sbin/misdn-init config > fi > /usr/sbin/misdn-init start > > 5.) remount RO with mount -o ro,remount / > 6.) start Asterisk with "service asterisk start" > > The asterisk init file recognizes that you want to run mISDN and does > the rest for you. If there is no mISDN config file on the key disk, it > will create one for you. The next time you start Asterisk, it will check > for the config file and if it exists, it won't overwrite it. > > I will commit a fix for this to the 0.4 branch. > Thanks Ingmar. I must have missed that when merging your changes. -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com |