From: Jonathan S. <jse...@ac...> - 2007-05-22 07:32:44
|
Thanks Ingmar, I needed the logic to symlink this misdn-init file. I also built the trunk last night, I will give it a try and check for that /etc/rc.modules file. Jonathan. Ingmar Schraub a écrit : > 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. > > Hope this helps, > > regards, > > Ingmar > > Jonathan SEMCZYK wrote: > >> Hi Ingmar, >> >> I used the Qemu for my first tests, it is easier to boot, modify the >> livecd content as needed and re-boot. And no, it does not see the PCI >> devices, I burnt the iso to try with my pci card ;) >> >> So I got the issue with the drivers within qemu and the misdn within my >> physical computer. >> >> I am using the latest livecd from sourceforge 0.4.5 . The keydisk works >> just fine but I did not find any misdn-init.conf on my keydisk, I >> modified the one in /etc/misdn-init.conf (which is a symlink to a file >> in /tmp/misdn-init.conf) but after a reboot it does not keep any changes. >> >> Here is where I am : If you look in the file /etc/init.d/asterisk line >> 86, you have this : >> >> echo "Starting mISDN" >> /etc/init.d/misdn-init config >> /etc/init.d/misdn-init start >> >> the config target for the misdn-init script rebuild the file >> /etc/misdn-init.conf, which is done for every reboot. >> I may be missing something ? >> >> Jonathan. >> >> Ingmar Schraub a écrit : >> >>> Hello Jonathan, >>> >>> I am not familiar with qemu, but does it grant you full access to PCI >>> devices? I think, in VMware this is not possible. >>> >>> What version of Astlinux are you running? This information also helps >>> others here to provide feedback. >>> >>> Did you create already the USB keydisk? The mISDN config >>> file is stored on the keydisk - if the keydisk exists. >>> >>> regards, >>> >>> Ingmar >>> >>> Jonathan SEMCZYK wrote: >>> >>> >>>> Hi, >>>> >>>> I already built an Asterisk box with an Ubuntu Linux and now I am trying >>>> to use AstLinux instead. I like very much the idea of using a livecd and >>>> a usbkey to save the configuration. >>>> >>>> Any of you were able to use the AstLinux LiveCD in a Qemu VM ? I cannot >>>> load the ne2k-pci driver at startup, I had to modifiy the /etc/rc script >>>> to enable the use of the AUTOMODS var. The AUTOMODS var is not read if >>>> the file /etc/rc.modules exists (which does in the livecd). >>>> >>>> I will also be unable to use my HFC-PCI card in TE mode as the >>>> configuration file is re-generated at startup. >>>> >>>> How do you use AstLinux ? Do you build your own with the build >>>> environment or use an already built LibeCD ? >>>> >>>> Thanks, >>>> Jonathan. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by DB2 Express >>>> Download DB2 Express C - the FREE version of DB2 express and take >>>> control of your XML. No limits. Just data. Click to get it now. >>>> http://sourceforge.net/powerbar/db2/ >>>> _______________________________________________ >>>> Astlinux-users mailing list >>>> Ast...@li... >>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>> >>>> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Astlinux-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>> >>> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... >>> >>> >> -- >> >> >> >> >> >> *Jonathan SEMCZYK >> * jse...@ac... <mailto:jse...@ac...> >> Tel: (0)3 20 28 61 65 >> Fax: (0)3 20 70 57 11 >> >> Acipia >> 50 av. Jean Lebas >> 59100 Roubaix >> >> Visitez notre site Web >> http://www.acipia.fr <http://www.acipia.fr/> >> >> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Astlinux-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... > -- *Jonathan SEMCZYK * jse...@ac... <mailto:jse...@ac...> Tel: (0)3 20 28 61 65 Fax: (0)3 20 70 57 11 Acipia 50 av. Jean Lebas 59100 Roubaix Visitez notre site Web http://www.acipia.fr <http://www.acipia.fr/> |