You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(91) |
Feb
(111) |
Mar
(226) |
Apr
(65) |
May
(197) |
Jun
(202) |
Jul
(92) |
Aug
(87) |
Sep
(120) |
Oct
(133) |
Nov
(89) |
Dec
(155) |
2008 |
Jan
(251) |
Feb
(136) |
Mar
(174) |
Apr
(149) |
May
(56) |
Jun
(32) |
Jul
(36) |
Aug
(171) |
Sep
(245) |
Oct
(244) |
Nov
(218) |
Dec
(272) |
2009 |
Jan
(113) |
Feb
(119) |
Mar
(192) |
Apr
(117) |
May
(93) |
Jun
(46) |
Jul
(80) |
Aug
(54) |
Sep
(109) |
Oct
(70) |
Nov
(145) |
Dec
(110) |
2010 |
Jan
(137) |
Feb
(87) |
Mar
(45) |
Apr
(157) |
May
(58) |
Jun
(99) |
Jul
(188) |
Aug
(136) |
Sep
(101) |
Oct
(100) |
Nov
(61) |
Dec
(60) |
2011 |
Jan
(84) |
Feb
(43) |
Mar
(70) |
Apr
(17) |
May
(69) |
Jun
(28) |
Jul
(43) |
Aug
(21) |
Sep
(151) |
Oct
(120) |
Nov
(84) |
Dec
(101) |
2012 |
Jan
(119) |
Feb
(82) |
Mar
(70) |
Apr
(115) |
May
(66) |
Jun
(131) |
Jul
(70) |
Aug
(65) |
Sep
(66) |
Oct
(86) |
Nov
(197) |
Dec
(81) |
2013 |
Jan
(65) |
Feb
(48) |
Mar
(32) |
Apr
(68) |
May
(98) |
Jun
(59) |
Jul
(41) |
Aug
(52) |
Sep
(42) |
Oct
(37) |
Nov
(10) |
Dec
(27) |
2014 |
Jan
(61) |
Feb
(34) |
Mar
(30) |
Apr
(52) |
May
(45) |
Jun
(40) |
Jul
(28) |
Aug
(9) |
Sep
(39) |
Oct
(69) |
Nov
(55) |
Dec
(19) |
2015 |
Jan
(13) |
Feb
(21) |
Mar
(5) |
Apr
(14) |
May
(30) |
Jun
(51) |
Jul
(31) |
Aug
(12) |
Sep
(29) |
Oct
(15) |
Nov
(24) |
Dec
(16) |
2016 |
Jan
(62) |
Feb
(76) |
Mar
(30) |
Apr
(43) |
May
(46) |
Jun
(62) |
Jul
(21) |
Aug
(49) |
Sep
(67) |
Oct
(27) |
Nov
(26) |
Dec
(38) |
2017 |
Jan
(7) |
Feb
(12) |
Mar
(69) |
Apr
(59) |
May
(54) |
Jun
(40) |
Jul
(76) |
Aug
(82) |
Sep
(92) |
Oct
(51) |
Nov
(32) |
Dec
(30) |
2018 |
Jan
(22) |
Feb
(25) |
Mar
(34) |
Apr
(35) |
May
(37) |
Jun
(21) |
Jul
(69) |
Aug
(55) |
Sep
(17) |
Oct
(67) |
Nov
(9) |
Dec
(5) |
2019 |
Jan
(19) |
Feb
(12) |
Mar
(15) |
Apr
(19) |
May
|
Jun
(27) |
Jul
(27) |
Aug
(25) |
Sep
(25) |
Oct
(27) |
Nov
(10) |
Dec
(14) |
2020 |
Jan
(22) |
Feb
(20) |
Mar
(36) |
Apr
(40) |
May
(52) |
Jun
(35) |
Jul
(21) |
Aug
(32) |
Sep
(71) |
Oct
(27) |
Nov
(11) |
Dec
(16) |
2021 |
Jan
(16) |
Feb
(21) |
Mar
(21) |
Apr
(27) |
May
(17) |
Jun
|
Jul
(2) |
Aug
(22) |
Sep
(23) |
Oct
(7) |
Nov
(11) |
Dec
(28) |
2022 |
Jan
(23) |
Feb
(18) |
Mar
(9) |
Apr
(15) |
May
(15) |
Jun
(7) |
Jul
(8) |
Aug
(15) |
Sep
(1) |
Oct
|
Nov
(11) |
Dec
(10) |
2023 |
Jan
(14) |
Feb
(10) |
Mar
(11) |
Apr
(13) |
May
(2) |
Jun
(30) |
Jul
(1) |
Aug
(15) |
Sep
(13) |
Oct
(3) |
Nov
(25) |
Dec
(5) |
2024 |
Jan
(3) |
Feb
(10) |
Mar
(9) |
Apr
|
May
(1) |
Jun
(15) |
Jul
(7) |
Aug
(10) |
Sep
(3) |
Oct
(8) |
Nov
(6) |
Dec
(15) |
2025 |
Jan
(3) |
Feb
(1) |
Mar
(7) |
Apr
(5) |
May
(13) |
Jun
(16) |
Jul
(1) |
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Darrick H. <dha...@dj...> - 2007-05-23 01:58:35
|
anuar musa wrote: > Hi All, > I just download and burn the image > AstLinux-0.4.4-net4801.img.gz 0.4.4 is an old release. Please grab the latest 0.4.5 release from the sourceforge site. Kristian is working on revising the www.astlinux.org website. In its current state it's quite confusing. If you're still experiencing problems with the 0.4.5 release, then we'll start troubleshooting. No sense in playing with something that is old. Darrick -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com |
From: anuar m. <an...@ro...> - 2007-05-23 01:05:04
|
Hi All, I just download and burn the image AstLinux-0.4.4-net4801.img.gz Then, I try to run few test. one,of them where I try to download files (10M size) using ftp using the configuration below: ftp client ---[eth2][net4801][eth1]--- ftp server Then I got lots of messages below and cause the transfer very slow. Does anyone know seen this problem before and how to solve it? I did not change any setting, I just use it as it is. Thanks in advance. pbx ~ # NETDEV WATCHDOG: eth2: transmit timed out eth2: Transmit timed out, status 0x000000, resetting... eth2: DSPCFG accepted after 0 usec. eth2: Setting full-duplex based on negotiated link capability. NETDEV WATCHDOG: eth2: transmit timed out eth2: Transmit timed out, status 0x000000, resetting... eth2: DSPCFG accepted after 0 usec. eth2: Setting full-duplex based on negotiated link capability. [deleted bunch of above messages] ---- pbx ~ # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:00:24:C7:80:70 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1103 errors:0 dropped:0 overruns:0 frame:0 TX packets:111 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:105737 (103.2 KiB) TX bytes:65490 (63.9 KiB) Interrupt:10 Base address:0x2000 pbx ~ # ifconfig eth1 eth1 Link encap:Ethernet HWaddr 00:00:24:C7:80:71 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5811 errors:0 dropped:0 overruns:0 frame:0 TX packets:3833 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8737500 (8.3 MiB) TX bytes:252799 (246.8 KiB) Interrupt:10 Base address:0x4000 pbx ~ # ifconfig eth2 eth2 Link encap:Ethernet HWaddr 00:00:24:C7:80:72 inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3866 errors:0 dropped:0 overruns:0 frame:0 TX packets:5770 errors:6 dropped:51 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:256671 (250.6 KiB) TX bytes:8660850 (8.2 MiB) Interrupt:10 Base address:0x6000 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
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/> |
From: Niksa B. <nik...@lu...> - 2007-05-22 05:57:32
|
Hello, whenever I issue 'make' for the first time in development environment, I get the error with libstdc++ (details below). I found a workaround with 'make clean' and then 'make' again, but I would like to know how to avoid it all together. There is no specific error message, so I am not sure how to approach this problem. if [ -z "" ]; then \ true; \ else \ rootpre=`${PWDCMD-pwd}`/; export rootpre; \ srcrootpre=`cd /home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2/libstdc++-v3; ${PWDCMD-pwd}`/; export srcrootpre; \ lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/xgcc -B/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/ -B/home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/bin/ -B/home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/lib/ -isystem /home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/include -isystem /home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/sys-include"; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/xgcc -B/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/ -B/home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/bin/ -B/home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/lib/ -isystem /home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/include -isystem /home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc/sys-include" "CFLAGS=-g -Os" "CXXFLAGS=-g -Os" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -Os" "INSTALL=/bin/install -c" "INSTALL_DATA=/bin/install -c -m 644" "INSTALL_PROGRAM=/bin/install -c" "INSTALL_SCRIPT=/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -Os" "LIBCFLAGS_FOR_TARGET=-g -Os" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/home/nik/src/asterisk-beta/build_i586/staging_dir" "infodir=/home/nik/src/asterisk-beta/build_i586/staging_dir/info" "libdir=/home/nik/src/asterisk-beta/build_i586/staging_dir/lib" "includedir=/home/nik/src/asterisk-beta/build_i586/staging_dir/include" "prefix=/home/nik/src/asterisk-beta/build_i586/staging_dir" "tooldir=/home/nik/src/asterisk-beta/build_i586/staging_dir/i586-linux-uclibc" "gxx_include_dir=/home/nik/src/asterisk-beta/build_i586/staging_dir/include/c++/4.1.2" "AR=i586-linux-uclibc-ar" "AS=/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/as" "LD=/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/collect-ld" "RANLIB=i586-linux-uclibc-ranlib" "NM=/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=i586-linux-uclibc-nm" "DESTDIR=" "WERROR=" \ CFLAGS="-g -Os ${flags}" \ FCFLAGS=" ${flags}" \ FFLAGS=" ${flags}" \ ADAFLAGS=" ${flags}" \ prefix="/home/nik/src/asterisk-beta/build_i586/staging_dir" \ exec_prefix="/home/nik/src/asterisk-beta/build_i586/staging_dir" \ GCJFLAGS=" ${flags}" \ CXXFLAGS="-g -Os ${flags}" \ LIBCFLAGS="-g -Os ${flags}" \ LIBCXXFLAGS="-g -Os -fno-implicit-templates ${flags}" \ LDFLAGS=" ${flags}" \ MULTIFLAGS="${flags}" \ DESTDIR="" \ INSTALL="/bin/install -c" \ INSTALL_DATA="/bin/install -c -m 644" \ INSTALL_PROGRAM="/bin/install -c" \ INSTALL_SCRIPT="/bin/install -c" \ install); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi make[6]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/i586-linux-uclibc/libstdc++-v3' make[5]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/i586-linux-uclibc/libstdc++-v3' make[4]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/i586-linux-uclibc/libstdc++-v3' make[3]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/i586-linux-uclibc/libstdc++-v3' make[2]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final' make: *** [/home/nik/src/asterisk-beta/toolchain_build_i586/gcc-4.1.2-final/.installed] Error 2 -- Niksa Baldun |
From: Niksa B. <nik...@lu...> - 2007-05-21 17:05:34
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> You are right. I build Astlinux using development environment, so I figured, if you don't want mISDN, you just won't include it. I forgot that you are stuck with it if you download official release.<br> <pre class="moz-signature" cols="72">Niksa Baldun </pre> <br> <br> Ingmar Schraub wrote: <blockquote cite="mid...@es..." type="cite"> <pre wrap="">Hello Niksa, quite simple... someone might not want to start mISDN, someone might not have an ISDN card installed. Why trying to start it only if there is the startup script available? regards, Ingmar Niksa Baldun wrote: </pre> <blockquote type="cite"> <pre wrap="">Hello, what is the purpose of ISDN_MODPROBE variable? I mean, why not simply use something like this: if [ -f /etc/init.d/misdn-init ] then echo "Starting mISDN" ... Just a thought. Niksa Baldun Ingmar Schraub wrote: </pre> <blockquote type="cite"> <pre wrap="">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: </pre> <blockquote type="cite"> <pre wrap="">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 : </pre> <blockquote type="cite"> <pre wrap="">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: </pre> <blockquote type="cite"> <pre wrap="">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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap="">------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap="">-- *Jonathan SEMCZYK * <a class="moz-txt-link-abbreviated" href="mailto:jse...@ac...">jse...@ac...</a> <a class="moz-txt-link-rfc2396E" href="mailto:jse...@ac..."><mailto:jse...@ac...></a> 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 <a class="moz-txt-link-freetext" href="http://www.acipia.fr">http://www.acipia.fr</a> <a class="moz-txt-link-rfc2396E" href="http://www.acipia.fr/"><http://www.acipia.fr/></a> ------------------------------------------------------------------------ ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> ------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap="">------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap="">------------------------------------------------------------------------ ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> ------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> </body> </html> |
From: Ingmar S. <is...@es...> - 2007-05-21 16:55:09
|
Hello Niksa, quite simple... someone might not want to start mISDN, someone might not have an ISDN card installed. Why trying to start it only if there is the startup script available? regards, Ingmar Niksa Baldun wrote: > Hello, > > what is the purpose of ISDN_MODPROBE variable? I mean, why not simply > use something like this: > > if [ -f /etc/init.d/misdn-init ] > then > echo "Starting mISDN" > ... > > > Just a thought. > > Niksa Baldun > > > > > 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. >> >> 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.... >> >> >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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.... |
From: Niksa B. <nik...@lu...> - 2007-05-21 16:51:46
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hello,<br> <br> what is the purpose of ISDN_MODPROBE variable? I mean, why not simply use something like this:<br> <br> if [ -f /etc/init.d/misdn-init ]<br> then<br> echo "Starting mISDN"<br> ...<br> <br> <br> Just a thought.<br> <br> <pre class="moz-signature" cols="72">Niksa Baldun </pre> <br> <br> Ingmar Schraub wrote: <blockquote cite="mid...@es..." type="cite"> <pre wrap="">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: </pre> <blockquote type="cite"> <pre wrap="">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 : </pre> <blockquote type="cite"> <pre wrap="">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: </pre> <blockquote type="cite"> <pre wrap="">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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap=""> ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap="">-- *Jonathan SEMCZYK * <a class="moz-txt-link-abbreviated" href="mailto:jse...@ac...">jse...@ac...</a> <a class="moz-txt-link-rfc2396E" href="mailto:jse...@ac..."><mailto:jse...@ac...></a> 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 <a class="moz-txt-link-freetext" href="http://www.acipia.fr">http://www.acipia.fr</a> <a class="moz-txt-link-rfc2396E" href="http://www.acipia.fr/"><http://www.acipia.fr/></a> ------------------------------------------------------------------------ ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> ------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a> _______________________________________________ Astlinux-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/astlinux-users">https://lists.sourceforge.net/lists/listinfo/astlinux-users</a> Donations to support AstLinux are graciously accepted via PayPal to <a class="moz-txt-link-abbreviated" href="mailto:pa...@kr...">pa...@kr...</a>. </pre> </blockquote> </body> </html> |
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 |
From: Ingmar S. <is...@es...> - 2007-05-21 16:35:31
|
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.... |
From: Darrick H. <dha...@dj...> - 2007-05-21 16:23:44
|
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 ? Yes, you need to setup a key disk to have persistent settings between reboots. -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com |
From: Jonathan S. <jse...@ac...> - 2007-05-21 16:21:13
|
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/> |
From: Ingmar S. <is...@es...> - 2007-05-21 16:05:02
|
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.... |
From: Jonathan S. <jse...@ac...> - 2007-05-21 14:57:20
|
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. |
From: Tom L. <the...@gm...> - 2007-05-21 13:33:55
|
Multiple / characters in the value field aren't a problem. And they do insert well into the tree and key fields. However, pulling them out for display and editing are still a worry. On 5/21/07, Michael Knill <mic...@ip...> wrote: > Thanks Tom very much. > Unfortunately I have some values with multiple '/' characters so I only > catch the first one with this change. Not that experienced with regular > expressions Im afraid. > > I actually use the ASTDB for most of my extensions.conf configuration. > This means that I can make many changes without a reload and also make my > extensions configuration very modular. > The Family / Key format is quite logical as I can group all the > configuration for an extension under a single family eg: 100/channel, > 100/natimer, 100/busytrigger etc. and display with 'database show 100'. > > Probably the only helpful thing other than the multiple '/' is a family > filter for the main list. > > Thanks Tom for the great little script. > Hope bub is going well. > > Regards > Mike > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...]On Behalf Of Tom Lynn > Sent: Monday, 21 May 2007 12:41 PM > To: AstLinux Users Mailing List > Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse > > > As long as you only plan to use the / character in the 'value' field, > changing the preg_match to read: > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@\/]*)/", $value, $temp); > > should fix your problem. I'm still struggling with how to distinguish > the intention of the / if it appears in the tree or key names since > Asterisk uses that same slash to delimit the fields. > > On 4/22/07, Michael Knill <mic...@ip...> wrote: > > Tom or anyone > > > > As I use the DB for a large part of my configuration, this piece of PHP > code > > will come in very handy. I have it all working except that any DB entry > that > > has a / in it does not display any characters after the /. > > > > As I am not a very experienced programmer, could someone let me know how > to > > fix this problem. > > I am sure it is a syntax problem in this line: > > > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, $temp); > > > > Anyones help is very much appreciated. > > > > Regards > > Michael Knill > > > > -----Original Message----- > > From: ast...@ja... > > [mailto:ast...@ja...]On Behalf Of Tom Lynn > > Sent: Tuesday, 14 November 2006 7:00 AM > > To: Discussion of AstLinux - Asterisk on Compact Flash > > Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse > > > > > > Turns out the script was scrubbed off of my e-mail. Here it is for > > anybody that is interested. > > > > <html> > > <head> > > > > <?php > > import_request_variables("GP"); > > > > ?> > > <META http-equiv="Content-Style-Type" content="text/css"> > > <link href="default.css" rel="stylesheet" type="text/css"> > > > > <? > > if ($mode == "put"){ echo '<meta http-equiv="Refresh" Content="2; > > URL='.$self.'?mode=show">';} > > ?> > > > > </head> > > <BODY> > > <?php include "header.php"; ?> > > <? > > // ----------------------------------------------------------------------- > > begin ast db show > > if(!isset($mode)|| $mode == 'show') { > > echo 'Asterisk Database Maintenance<P><a > > href="'.$self.'?mode=form">New Entry</a> - Or edit existing below<P>'; > > > > $man_name = "php"; > > $man_pword = "supersecret"; > > > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > > $timeout); // open a connection to the manager interface > > > > fputs($socket, "Action: Login\r\n"); > // login > > fputs($socket, "UserName: $man_name\r\n"); > // send username > > fputs($socket, "Secret: $man_pword\r\n\r\n"); > // send password > > > > fputs($socket, "Action: Command\r\n"); > // tell it a command is coming > > fputs($socket, "Command: database show\r\n\r\n"); > // ask for the > > contents of the database > > fputs($socket, "Action: Logoff\r\n\r\n"); > // logoff > > > > while (!feof($socket)) { > > $dbentries .= fread($socket, 8192); > // read the entire output > > into $dbentries > > } > > fclose($socket); > // close the socket > > > > $array = preg_split("/\n/",$dbentries, -1, PREG_SPLIT_NO_EMPTY); > // > > split $dbentries on newline characters and store in $array > > for ($i = 1; $i < 7; $i++) { > > array_shift($array); > // get rid of 7 lines of useless garbage > > (need a test for this) > > } > > > > $bgcolor='white'; > // set a background color for the table > > $color_state=true; > // use it when $color_state = true > > ?> > > <table border="0" cellspacing="2"> > > <tr bgcolor="#EEEEEE"> > > <td>Family</td> > > <td>Key</td> > > <td>Value</td> > > </tr> > > <? > > foreach($array as $value) { > > if (strncmp($value, '--END COMMAND', 13) == 0) > { // look for the > > end of the output > > break; > // stop showing records at this point > > } > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, > > $temp); // isolate Family, Key and Value into $temp[] > > array_shift($temp); > // shift off the matched portion > > $querystring = > > > 'mode=form&family='.urlencode($temp[0]).'&key='.urlencode($temp[1]).'&value= > > '.urlencode($temp[2]); > > // build some of the URI for this value > > ?> > > <tr bgcolor=<? echo("$bgcolor");?>> > > <td><? echo '<a > > > href="'.$self.'?'.htmlspecialchars($querystring).'">'.$temp[0].'</a>';?></td > > > > > <td><? echo($temp[1]); ?></td> > > <td><? echo($temp[2]); ?></td> > > </tr> > > <? > > $color_state = !$color_state; > // flip the color state > > if ($color_state) { > > $bgcolor = 'white'; > // if true use lightblue; > > } else { > > $bgcolor = '#EEEEEE'; > // else use wheat > > } > > } > > } > //------------------------------------------------------------------------ > > end ast db show > > > > > // ------------------------------------------------------------------------- > > begin ast db form > > > > if ($mode == "form") { > > ?> > > > > <P><P><P></P> > > <FORM ACTION="<? echo "$self"; ?>" METHOD="POST"> > > <table border="0" width="60%"> > > <tr> > > <td width="20%" valign="top"><b>Family</b></td> > > <td width="80%" valign="top"><INPUT TYPE="text" > NAME="family" > > value="<? echo htmlspecialchars(stripslashes($family));?>" > > SIZE=40><br><br> > > </td> > > </tr> > > <tr> > > <td width="20%" valign="top"><b>Key</b></td> > > <td width="80%" valign="top"><INPUT TYPE="text" NAME="key" > > value="<? echo htmlspecialchars(stripslashes($key));?>" > > SIZE=40><br><br> > > </td> > > </tr> > > <tr> > > <td width="20%" valign="top"><b>Value</b></td> > > <td width="80%" valign="top"><INPUT TYPE="text" > NAME="value" > > value="<? echo htmlspecialchars(stripslashes($value));?>" > > SIZE=40><br><br> > > </td> > > </tr> > > <tr> > > <td width="30%"></td> > > <td width="80%"><INPUT TYPE="submit" name="verb" > > VALUE="Submit"></td> > > </tr> > > <tr> > > <td width="30%"></td> > > <td width="80%"><INPUT TYPE="submit" name="verb" > VALUE="DELETE"> > > <input type="hidden" name="mode" value="put"> > > </tr> > > </table> > > </FORM> > > > > <? > > } > > > // ------------------------------------------------------------------------- > > end ast db form > > > > > // ------------------------------------------------------------------------- > > -- > > begin ast db put > > > > if ($mode == "put") { > > if ($verb == "Submit") { > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > $timeout); > > fputs($socket, "Action: Login\r\n"); > > fputs($socket, "UserName: php\r\n"); > > fputs($socket, "Secret: supersecret\r\n\r\n"); > > > > fputs($socket, "Action: Command\r\n"); > > fputs($socket, "Command: database put $family $key > $value\r\n\r\n"); > > fputs($socket, "Action: Logoff\r\n\r\n"); > > > > while (!feof($socket)) { > > $response .= fread($socket, 8192); > // read the entire output > > into $response > > } > > fclose($socket); > // close the socket > > if (strpos($response, 'Updated database successfully')) { > > print("Your data has been INSERTED.\r\n"); > > } else print("INSERT Error...."); > > } > > if ($verb == "DELETE") { > > > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > $timeout); > > fputs($socket, "Action: Login\r\n"); > > fputs($socket, "UserName: php\r\n"); > > fputs($socket, "Secret: supersecret\r\n\r\n"); > > > > fputs($socket, "Action: Command\r\n"); > > fputs($socket, "Command: database del $family > $key\r\n\r\n"); > > fputs($socket, "Action: Logoff\r\n\r\n"); > > > > while (!feof($socket)) { > > $response .= fread($socket, 8192); > // read the entire output > > into $response > > } > > fclose($socket); > // close the socket > > if (strpos($response, 'Database entry removed')) { > > print("Your data has been DELETED.\r\n"); > > } else print("Delete Error...."); > > } > > } > > > // ------------------------------------------------------------------------ > > end ast db put > > ?> > > <?php include "footer.php"; ?> > > </body> > > </html> > > _______________________________________________ > > Astlinux-users mailing list > > Ast...@li... > > http://lists.kriscompanies.com/mailman/listinfo/astlinux-users > > > > Donations to support AstLinux are graciously accepted via PayPal to > > pa...@kr.... > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.430 / Virus Database: 268.14.5/533 - Release Date: 13/11/2006 > > 8:56 PM > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 19/04/2007 > > 5:56 PM > > > > ------------------------------------------------------------------------- > > 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.... > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 > 7:54 AM > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 > 7:54 AM > > ------------------------------------------------------------------------- > 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.... > |
From: Michael K. <mic...@ip...> - 2007-05-21 09:19:30
|
Thanks Tom very much. Unfortunately I have some values with multiple '/' characters so I only catch the first one with this change. Not that experienced with regular expressions Im afraid. I actually use the ASTDB for most of my extensions.conf configuration. This means that I can make many changes without a reload and also make my extensions configuration very modular. The Family / Key format is quite logical as I can group all the configuration for an extension under a single family eg: 100/channel, 100/natimer, 100/busytrigger etc. and display with 'database show 100'. Probably the only helpful thing other than the multiple '/' is a family filter for the main list. Thanks Tom for the great little script. Hope bub is going well. Regards Mike -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Tom Lynn Sent: Monday, 21 May 2007 12:41 PM To: AstLinux Users Mailing List Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse As long as you only plan to use the / character in the 'value' field, changing the preg_match to read: preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@\/]*)/", $value, $temp); should fix your problem. I'm still struggling with how to distinguish the intention of the / if it appears in the tree or key names since Asterisk uses that same slash to delimit the fields. On 4/22/07, Michael Knill <mic...@ip...> wrote: > Tom or anyone > > As I use the DB for a large part of my configuration, this piece of PHP code > will come in very handy. I have it all working except that any DB entry that > has a / in it does not display any characters after the /. > > As I am not a very experienced programmer, could someone let me know how to > fix this problem. > I am sure it is a syntax problem in this line: > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, $temp); > > Anyones help is very much appreciated. > > Regards > Michael Knill > > -----Original Message----- > From: ast...@ja... > [mailto:ast...@ja...]On Behalf Of Tom Lynn > Sent: Tuesday, 14 November 2006 7:00 AM > To: Discussion of AstLinux - Asterisk on Compact Flash > Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse > > > Turns out the script was scrubbed off of my e-mail. Here it is for > anybody that is interested. > > <html> > <head> > > <?php > import_request_variables("GP"); > > ?> > <META http-equiv="Content-Style-Type" content="text/css"> > <link href="default.css" rel="stylesheet" type="text/css"> > > <? > if ($mode == "put"){ echo '<meta http-equiv="Refresh" Content="2; > URL='.$self.'?mode=show">';} > ?> > > </head> > <BODY> > <?php include "header.php"; ?> > <? > // ----------------------------------------------------------------------- > begin ast db show > if(!isset($mode)|| $mode == 'show') { > echo 'Asterisk Database Maintenance<P><a > href="'.$self.'?mode=form">New Entry</a> - Or edit existing below<P>'; > > $man_name = "php"; > $man_pword = "supersecret"; > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > $timeout); // open a connection to the manager interface > > fputs($socket, "Action: Login\r\n"); // login > fputs($socket, "UserName: $man_name\r\n"); // send username > fputs($socket, "Secret: $man_pword\r\n\r\n"); // send password > > fputs($socket, "Action: Command\r\n"); // tell it a command is coming > fputs($socket, "Command: database show\r\n\r\n"); // ask for the > contents of the database > fputs($socket, "Action: Logoff\r\n\r\n"); // logoff > > while (!feof($socket)) { > $dbentries .= fread($socket, 8192); // read the entire output > into $dbentries > } > fclose($socket); // close the socket > > $array = preg_split("/\n/",$dbentries, -1, PREG_SPLIT_NO_EMPTY); // > split $dbentries on newline characters and store in $array > for ($i = 1; $i < 7; $i++) { > array_shift($array); // get rid of 7 lines of useless garbage > (need a test for this) > } > > $bgcolor='white'; // set a background color for the table > $color_state=true; // use it when $color_state = true > ?> > <table border="0" cellspacing="2"> > <tr bgcolor="#EEEEEE"> > <td>Family</td> > <td>Key</td> > <td>Value</td> > </tr> > <? > foreach($array as $value) { > if (strncmp($value, '--END COMMAND', 13) == 0) { // look for the > end of the output > break; // stop showing records at this point > } > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, > $temp); // isolate Family, Key and Value into $temp[] > array_shift($temp); // shift off the matched portion > $querystring = > 'mode=form&family='.urlencode($temp[0]).'&key='.urlencode($temp[1]).'&value= > '.urlencode($temp[2]); > // build some of the URI for this value > ?> > <tr bgcolor=<? echo("$bgcolor");?>> > <td><? echo '<a > href="'.$self.'?'.htmlspecialchars($querystring).'">'.$temp[0].'</a>';?></td > > > <td><? echo($temp[1]); ?></td> > <td><? echo($temp[2]); ?></td> > </tr> > <? > $color_state = !$color_state; // flip the color state > if ($color_state) { > $bgcolor = 'white'; // if true use lightblue; > } else { > $bgcolor = '#EEEEEE'; // else use wheat > } > } > } //------------------------------------------------------------------------ > end ast db show > > // ------------------------------------------------------------------------- > begin ast db form > > if ($mode == "form") { > ?> > > <P><P><P></P> > <FORM ACTION="<? echo "$self"; ?>" METHOD="POST"> > <table border="0" width="60%"> > <tr> > <td width="20%" valign="top"><b>Family</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="family" > value="<? echo htmlspecialchars(stripslashes($family));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Key</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="key" > value="<? echo htmlspecialchars(stripslashes($key));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Value</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="value" > value="<? echo htmlspecialchars(stripslashes($value));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" > VALUE="Submit"></td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" VALUE="DELETE"> > <input type="hidden" name="mode" value="put"> > </tr> > </table> > </FORM> > > <? > } > // ------------------------------------------------------------------------- > end ast db form > > // ------------------------------------------------------------------------- > -- > begin ast db put > > if ($mode == "put") { > if ($verb == "Submit") { > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database put $family $key $value\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Updated database successfully')) { > print("Your data has been INSERTED.\r\n"); > } else print("INSERT Error...."); > } > if ($verb == "DELETE") { > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database del $family $key\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Database entry removed')) { > print("Your data has been DELETED.\r\n"); > } else print("Delete Error...."); > } > } > // ------------------------------------------------------------------------ > end ast db put > ?> > <?php include "footer.php"; ?> > </body> > </html> > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > http://lists.kriscompanies.com/mailman/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pa...@kr.... > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.430 / Virus Database: 268.14.5/533 - Release Date: 13/11/2006 > 8:56 PM > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 19/04/2007 > 5:56 PM > > ------------------------------------------------------------------------- > 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.... No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 7:54 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 7:54 AM |
From: <ast...@ti...> - 2007-05-21 07:39:46
|
Hi everybody, thank you for your quick answers. @Bryce: I tried to modprobe the r8169 and the driver came up. But when I did ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up the machine has frozen. @Darrick: I gave compiling the kernel 2.6.20 a try but as you can already imagine there was a conflict with one of the patches of astlinux. But I didn't find the r1000 driver in that kernel anyway. So for me the only possible solution seems to be to add my own package to the tags/0.4.5. Given that I'm not the big linux expert for crosscompiling I would appreciate if you could name me an Astlinux standard package which I can take as template for (Make) (or (Make1)) and install. Thanks a lot in advance. Best regards, Florian ----Messaggio originale---- Da: ast...@ti... Data: 14/05/2007 16.34 A: <ast...@li...> Ogg: Compilation of Realtek r1000 driver in Astlinux Hi folks, recently I bought a Kino-Luke system with integrated Realtek RTL8169 (1gbit NIC) and unfortunately the neccessary r1000 driver is not yet in Astlinux. The driver itself is provided by Realtek: ftp://210.51.181.211/cn/nic/r1000_v1.05.tgz I already tried to add it as new package (in tags/0.4.5) - I customized the necessary variables, of course - but I didn't succeed. So if someone of you has any advice for me I'd be quite grateful. Best regards Florian PS: Thank you for the fine work you're doing here !! Naviga e telefona senza limiti con Tiscali Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom http://abbonati.tiscali.it/adsl/ Naviga e telefona senza limiti con Tiscali Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom http://abbonati.tiscali.it/adsl/ |
From: Tom L. <the...@gm...> - 2007-05-21 02:40:59
|
As long as you only plan to use the / character in the 'value' field, changing the preg_match to read: preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@\/]*)/", $value, $temp); should fix your problem. I'm still struggling with how to distinguish the intention of the / if it appears in the tree or key names since Asterisk uses that same slash to delimit the fields. On 4/22/07, Michael Knill <mic...@ip...> wrote: > Tom or anyone > > As I use the DB for a large part of my configuration, this piece of PHP code > will come in very handy. I have it all working except that any DB entry that > has a / in it does not display any characters after the /. > > As I am not a very experienced programmer, could someone let me know how to > fix this problem. > I am sure it is a syntax problem in this line: > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, $temp); > > Anyones help is very much appreciated. > > Regards > Michael Knill > > -----Original Message----- > From: ast...@ja... > [mailto:ast...@ja...]On Behalf Of Tom Lynn > Sent: Tuesday, 14 November 2006 7:00 AM > To: Discussion of AstLinux - Asterisk on Compact Flash > Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse > > > Turns out the script was scrubbed off of my e-mail. Here it is for > anybody that is interested. > > <html> > <head> > > <?php > import_request_variables("GP"); > > ?> > <META http-equiv="Content-Style-Type" content="text/css"> > <link href="default.css" rel="stylesheet" type="text/css"> > > <? > if ($mode == "put"){ echo '<meta http-equiv="Refresh" Content="2; > URL='.$self.'?mode=show">';} > ?> > > </head> > <BODY> > <?php include "header.php"; ?> > <? > // ----------------------------------------------------------------------- > begin ast db show > if(!isset($mode)|| $mode == 'show') { > echo 'Asterisk Database Maintenance<P><a > href="'.$self.'?mode=form">New Entry</a> - Or edit existing below<P>'; > > $man_name = "php"; > $man_pword = "supersecret"; > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > $timeout); // open a connection to the manager interface > > fputs($socket, "Action: Login\r\n"); // login > fputs($socket, "UserName: $man_name\r\n"); // send username > fputs($socket, "Secret: $man_pword\r\n\r\n"); // send password > > fputs($socket, "Action: Command\r\n"); // tell it a command is coming > fputs($socket, "Command: database show\r\n\r\n"); // ask for the > contents of the database > fputs($socket, "Action: Logoff\r\n\r\n"); // logoff > > while (!feof($socket)) { > $dbentries .= fread($socket, 8192); // read the entire output > into $dbentries > } > fclose($socket); // close the socket > > $array = preg_split("/\n/",$dbentries, -1, PREG_SPLIT_NO_EMPTY); // > split $dbentries on newline characters and store in $array > for ($i = 1; $i < 7; $i++) { > array_shift($array); // get rid of 7 lines of useless garbage > (need a test for this) > } > > $bgcolor='white'; // set a background color for the table > $color_state=true; // use it when $color_state = true > ?> > <table border="0" cellspacing="2"> > <tr bgcolor="#EEEEEE"> > <td>Family</td> > <td>Key</td> > <td>Value</td> > </tr> > <? > foreach($array as $value) { > if (strncmp($value, '--END COMMAND', 13) == 0) { // look for the > end of the output > break; // stop showing records at this point > } > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, > $temp); // isolate Family, Key and Value into $temp[] > array_shift($temp); // shift off the matched portion > $querystring = > 'mode=form&family='.urlencode($temp[0]).'&key='.urlencode($temp[1]).'&value= > '.urlencode($temp[2]); > // build some of the URI for this value > ?> > <tr bgcolor=<? echo("$bgcolor");?>> > <td><? echo '<a > href="'.$self.'?'.htmlspecialchars($querystring).'">'.$temp[0].'</a>';?></td > > > <td><? echo($temp[1]); ?></td> > <td><? echo($temp[2]); ?></td> > </tr> > <? > $color_state = !$color_state; // flip the color state > if ($color_state) { > $bgcolor = 'white'; // if true use lightblue; > } else { > $bgcolor = '#EEEEEE'; // else use wheat > } > } > } //------------------------------------------------------------------------ > end ast db show > > // ------------------------------------------------------------------------- > begin ast db form > > if ($mode == "form") { > ?> > > <P><P><P></P> > <FORM ACTION="<? echo "$self"; ?>" METHOD="POST"> > <table border="0" width="60%"> > <tr> > <td width="20%" valign="top"><b>Family</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="family" > value="<? echo htmlspecialchars(stripslashes($family));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Key</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="key" > value="<? echo htmlspecialchars(stripslashes($key));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Value</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="value" > value="<? echo htmlspecialchars(stripslashes($value));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" > VALUE="Submit"></td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" VALUE="DELETE"> > <input type="hidden" name="mode" value="put"> > </tr> > </table> > </FORM> > > <? > } > // ------------------------------------------------------------------------- > end ast db form > > // ------------------------------------------------------------------------- > -- > begin ast db put > > if ($mode == "put") { > if ($verb == "Submit") { > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database put $family $key $value\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Updated database successfully')) { > print("Your data has been INSERTED.\r\n"); > } else print("INSERT Error...."); > } > if ($verb == "DELETE") { > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database del $family $key\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Database entry removed')) { > print("Your data has been DELETED.\r\n"); > } else print("Delete Error...."); > } > } > // ------------------------------------------------------------------------ > end ast db put > ?> > <?php include "footer.php"; ?> > </body> > </html> > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > http://lists.kriscompanies.com/mailman/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pa...@kr.... > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.430 / Virus Database: 268.14.5/533 - Release Date: 13/11/2006 > 8:56 PM > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 19/04/2007 > 5:56 PM > > ------------------------------------------------------------------------- > 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.... > |
From: Tom L. <the...@gm...> - 2007-05-20 23:24:11
|
Michael, I'll look into this when I get some time. I've got a newborn at home. On 4/22/07, Michael Knill <mic...@ip...> wrote: > Tom or anyone > > As I use the DB for a large part of my configuration, this piece of PHP code > will come in very handy. I have it all working except that any DB entry that > has a / in it does not display any characters after the /. > > As I am not a very experienced programmer, could someone let me know how to > fix this problem. > I am sure it is a syntax problem in this line: > > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, $temp); > > Anyones help is very much appreciated. > > Regards > Michael Knill > > -----Original Message----- > From: ast...@ja... > [mailto:ast...@ja...]On Behalf Of Tom Lynn > Sent: Tuesday, 14 November 2006 7:00 AM > To: Discussion of AstLinux - Asterisk on Compact Flash > Subject: Re: [Astlinux-users] PHP page for maintaining asterisk databse > > > Turns out the script was scrubbed off of my e-mail. Here it is for > anybody that is interested. > > <html> > <head> > > <?php > import_request_variables("GP"); > > ?> > <META http-equiv="Content-Style-Type" content="text/css"> > <link href="default.css" rel="stylesheet" type="text/css"> > > <? > if ($mode == "put"){ echo '<meta http-equiv="Refresh" Content="2; > URL='.$self.'?mode=show">';} > ?> > > </head> > <BODY> > <?php include "header.php"; ?> > <? > // ----------------------------------------------------------------------- > begin ast db show > if(!isset($mode)|| $mode == 'show') { > echo 'Asterisk Database Maintenance<P><a > href="'.$self.'?mode=form">New Entry</a> - Or edit existing below<P>'; > > $man_name = "php"; > $man_pword = "supersecret"; > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, > $timeout); // open a connection to the manager interface > > fputs($socket, "Action: Login\r\n"); // login > fputs($socket, "UserName: $man_name\r\n"); // send username > fputs($socket, "Secret: $man_pword\r\n\r\n"); // send password > > fputs($socket, "Action: Command\r\n"); // tell it a command is coming > fputs($socket, "Command: database show\r\n\r\n"); // ask for the > contents of the database > fputs($socket, "Action: Logoff\r\n\r\n"); // logoff > > while (!feof($socket)) { > $dbentries .= fread($socket, 8192); // read the entire output > into $dbentries > } > fclose($socket); // close the socket > > $array = preg_split("/\n/",$dbentries, -1, PREG_SPLIT_NO_EMPTY); // > split $dbentries on newline characters and store in $array > for ($i = 1; $i < 7; $i++) { > array_shift($array); // get rid of 7 lines of useless garbage > (need a test for this) > } > > $bgcolor='white'; // set a background color for the table > $color_state=true; // use it when $color_state = true > ?> > <table border="0" cellspacing="2"> > <tr bgcolor="#EEEEEE"> > <td>Family</td> > <td>Key</td> > <td>Value</td> > </tr> > <? > foreach($array as $value) { > if (strncmp($value, '--END COMMAND', 13) == 0) { // look for the > end of the output > break; // stop showing records at this point > } > preg_match("/^\/(.*)\/([\w]*)\s*:\s*([\w\.:@]*)/", $value, > $temp); // isolate Family, Key and Value into $temp[] > array_shift($temp); // shift off the matched portion > $querystring = > 'mode=form&family='.urlencode($temp[0]).'&key='.urlencode($temp[1]).'&value= > '.urlencode($temp[2]); > // build some of the URI for this value > ?> > <tr bgcolor=<? echo("$bgcolor");?>> > <td><? echo '<a > href="'.$self.'?'.htmlspecialchars($querystring).'">'.$temp[0].'</a>';?></td > > > <td><? echo($temp[1]); ?></td> > <td><? echo($temp[2]); ?></td> > </tr> > <? > $color_state = !$color_state; // flip the color state > if ($color_state) { > $bgcolor = 'white'; // if true use lightblue; > } else { > $bgcolor = '#EEEEEE'; // else use wheat > } > } > } //------------------------------------------------------------------------ > end ast db show > > // ------------------------------------------------------------------------- > begin ast db form > > if ($mode == "form") { > ?> > > <P><P><P></P> > <FORM ACTION="<? echo "$self"; ?>" METHOD="POST"> > <table border="0" width="60%"> > <tr> > <td width="20%" valign="top"><b>Family</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="family" > value="<? echo htmlspecialchars(stripslashes($family));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Key</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="key" > value="<? echo htmlspecialchars(stripslashes($key));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="20%" valign="top"><b>Value</b></td> > <td width="80%" valign="top"><INPUT TYPE="text" NAME="value" > value="<? echo htmlspecialchars(stripslashes($value));?>" > SIZE=40><br><br> > </td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" > VALUE="Submit"></td> > </tr> > <tr> > <td width="30%"></td> > <td width="80%"><INPUT TYPE="submit" name="verb" VALUE="DELETE"> > <input type="hidden" name="mode" value="put"> > </tr> > </table> > </FORM> > > <? > } > // ------------------------------------------------------------------------- > end ast db form > > // ------------------------------------------------------------------------- > -- > begin ast db put > > if ($mode == "put") { > if ($verb == "Submit") { > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database put $family $key $value\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Updated database successfully')) { > print("Your data has been INSERTED.\r\n"); > } else print("INSERT Error...."); > } > if ($verb == "DELETE") { > > $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, $timeout); > fputs($socket, "Action: Login\r\n"); > fputs($socket, "UserName: php\r\n"); > fputs($socket, "Secret: supersecret\r\n\r\n"); > > fputs($socket, "Action: Command\r\n"); > fputs($socket, "Command: database del $family $key\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > > while (!feof($socket)) { > $response .= fread($socket, 8192); // read the entire output > into $response > } > fclose($socket); // close the socket > if (strpos($response, 'Database entry removed')) { > print("Your data has been DELETED.\r\n"); > } else print("Delete Error...."); > } > } > // ------------------------------------------------------------------------ > end ast db put > ?> > <?php include "footer.php"; ?> > </body> > </html> > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > http://lists.kriscompanies.com/mailman/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pa...@kr.... > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.430 / Virus Database: 268.14.5/533 - Release Date: 13/11/2006 > 8:56 PM > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 19/04/2007 > 5:56 PM > > ------------------------------------------------------------------------- > 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.... > |
From: Kristian K. <kri...@gm...> - 2007-05-18 14:31:33
|
On 5/18/07, Tony Plack <To...@pl...> wrote: > > I believe this is a Asterisk console bug, but thought I would run it through > here first. I can get Asterisk into a tight loop 100% of the time. Here is > what I know... > > First I have verbosity set to 20 in the asterisk.conf file. I believe that > has some bearing on this issue for two reasons. One it doesn't occur if I > turn verbosity off and two, there is no updates to the console occurring > without verbosity. > > Next, I connect to my Astlinux box using putty on a Windows XP machine (yes, > windows is involved in this but it may happen with other clients, just not > tested) and fire up asterisk console with "asterisk -r" > > Next, I put my Windows machine into suspend without shutting down putty. > This leaves the connection in an open state on the Linux box. > > Next, I have a call generated on my Digium TDM401 card via zap. This may > also work with SIP but it is not as consistent. > > At this point, the box stops responding. If I call the Zap Channel line, I > hear the SIT tones and the message starting "This system..." in stutter > format, like the machine is trying to push it out but the box is at 100%. > > The console is not responsive and I cannot troubleshoot it any further. > There is no dump file created or any logging done on the box. I have no way > to verify which asterisk process is exactly to blame. > > Here is my theory, The Zap Channel is trying to write via the console to a > port which was not closed properly, therefore, it goes into a loop trying to > contact that device. > > Like I said, this happens 100% of the time, I just cannot troubleshoot it > further. If I close out the putty session properly, I do not have an issue. > Tony, Wow! That is certainly an Asterisk bug... Have you mentioned anything on asterisk-users or filed a bug on bugs.digium.com? -- Kristian Kielhofner |
From: Aleks C. <ac...@st...> - 2007-05-18 14:00:39
|
Awsome bug, but yea, that's an Asterisk issue. Aleks On 5/18/07, Tony Plack <To...@pl...> wrote: > > I believe this is a Asterisk console bug, but thought I would run it > through here first. I can get Asterisk into a tight loop 100% of the time. > Here is what I know... > > First I have verbosity set to 20 in the asterisk.conf file. I believe > that has some bearing on this issue for two reasons. One it doesn't occur > if I turn verbosity off and two, there is no updates to the console > occurring without verbosity. > > Next, I connect to my Astlinux box using putty on a Windows XP machine > (yes, windows is involved in this but it may happen with other clients, just > not tested) and fire up asterisk console with "asterisk -r" > > Next, I put my Windows machine into suspend without shutting down putty. > This leaves the connection in an open state on the Linux box. > > Next, I have a call generated on my Digium TDM401 card via zap. This may > also work with SIP but it is not as consistent. > > At this point, the box stops responding. If I call the Zap Channel line, > I hear the SIT tones and the message starting "This system..." in stutter > format, like the machine is trying to push it out but the box is at 100%. > > The console is not responsive and I cannot troubleshoot it any further. > There is no dump file created or any logging done on the box. I have no > way to verify which asterisk process is exactly to blame. > > Here is my theory, The Zap Channel is trying to write via the console to a > port which was not closed properly, therefore, it goes into a loop trying to > contact that device. > > Like I said, this happens 100% of the time, I just cannot troubleshoot it > further. If I close out the putty session properly, I do not have an issue. > > > > ------------------------------------------------------------------------- > 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.... > -- Aleks Clark Star2Star Communications, LLC. 1605 Main Street Sarasota, Fl. 34236 941-234-0001 x118 ac...@st... www.star2star.com |
From: Tony P. <To...@pl...> - 2007-05-18 13:45:01
|
<html><head><meta name=3D"Generator" content=3D"PSI HTML/CSS Generator"/> <style type=3D"text/css"><!-- body{font-family:'Tahoma';font-size:10pt;font-color:'#000000';} LI{display:list-item;margin:0.00in;} p{display:block;margin:0.00in;} body{} --></style> </head><BODY ><div><SPAN style=3D"font-family:'Arial';font-size:10pt;">I= believe this is a Asterisk console bug, but thought I would run it through= here first.  I can get Asterisk into a tight loop 100% of the time.=  Here is what I know...</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">First I have= verbosity set to 20 in the asterisk.conf file.  I believe that has= some bearing on this issue for two reasons.  One it doesn't occur if I= turn verbosity off and two, there is no updates to the console occurring= without verbosity.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Next, I connect to my= Astlinux box using putty on a Windows XP machine (yes, windows is involved= in this but it may happen with other clients, just not tested) and fire up= asterisk console with "asterisk -r"</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Next, I put my= Windows machine into suspend without shutting down putty.  This leaves= the connection in an open state on the Linux box.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Next, I have a call= generated on my Digium TDM401 card via zap.  This may also work with= SIP but it is not as consistent.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">At this point, the= box stops responding.  If I call the Zap Channel line, I hear the SIT= tones and the message starting "This system..." in stutter format, like the= machine is trying to push it out but the box is at 100%.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">The console is not= responsive and I cannot troubleshoot it any further.  There is no dump= file created or any logging done on the box.  I have no way to verify= which asterisk process is exactly to blame.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Here is my theory,= The Zap Channel is trying to write via the console to a port which was not= closed properly, therefore, it goes into a loop trying to contact that= device.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Like I said, this= happens 100% of the time, I just cannot troubleshoot it further.  If I= close out the putty session properly, I do not have an issue.</SPAN></div> <div> </div> <div> </div> </body></html> |
From: Michael K. <mic...@ip...> - 2007-05-18 05:15:38
|
Kevin Not quite sure you are correct here. 802.1p is an extension of 802.1Q which requires the tagging of ethernet packets. 802.1D specifies the basic ethernet Spanning Tree Protocol. Mike -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Kevin Kiely Sent: Friday, 18 May 2007 1:38 PM To: 'AstLinux Users Mailing List' Subject: Re: [Astlinux-users] VLAN's and 802.1p priority Thought I would jump in here on the 802.1P. 802.1P is priority queuing at the MAC layer. IEEE standard 802.1p is a part of the IEEE standard 802.1D. 802.1Q is the IEEE standard for vlans and is part of the IEEE standard 802.1D. There are many switches with 802.1P without 802.1Q VLAN’s. Kevin Kiely ---------------------------------------------------------------------------- -- From: Lonnie Abelbeck [mailto:li...@lo...] Sent: Thursday, May 17, 2007 11:05 PM To: AstLinux Users Mailing List Subject: Re: [Astlinux-users] VLAN's and 802.1p priority On May 17, 2007, at 9:51 PM, Kristian Kielhofner wrote: On 5/17/07, Lonnie Abelbeck <li...@lo...> wrote: Or how about allow the VLAN definition have an optional trailing :N where (0 <= N <= 7) VLANS="eth0.20:5" I assume "0" is the current AstLinux defined priority? In my case, I have Layer 2 switches, and only 802.1p priority tags are used. (HP Procurve 1700 and 1800 series) Is this the the current best way of handling priorities? Lonnie Lonnie, I was hoping that I could eventually figure out a way to set the 802.1p value for non-vlan interfaces (eth0, eth1, eth2) as well. For VLANs only, I like your way more! -- Kristian Kristian, You know immensely more about this stuff than I do, but it is my understanding that 802.1p requires 802.1Q (VLAN) tagging. http://en.wikipedia.org/wiki/IEEE_802.1Q Lonnie No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 5/16/2007 6:05 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16/05/2007 6:05 PM |
From: Lonnie A. <li...@lo...> - 2007-05-18 04:47:27
|
On May 17, 2007, at 11:07 PM, Kevin Kiely wrote: > Yes, you are correct. I had the need for a cheap layer2 switch > used for > testing that was fanless with 10/100/1000 speeds and quiet (no > fans) as the > fans are generally quite loud especially in managed switches. Also > my use > was for a desktop environment and the time there wasn't much > selection. > Here is one that fits the bill if you need 802.1P which can be very > important for QOS. > > http://www.netgear.com/Products/Switches/DesktopSwitches/GS116.aspx > > > -----Original Message----- > From: Kristian Kielhofner [mailto:kri...@gm...] > Sent: Thursday, May 17, 2007 11:51 PM > To: AstLinux Users Mailing List > Subject: Re: [Astlinux-users] VLAN's and 802.1p priority > > On 5/17/07, Kevin Kiely <Ast...@gt...> wrote: >> >> >> >> >> Thought I would jump in here on the 802.1P. >> >> >> >> 802.1P is priority queuing at the MAC layer. IEEE standard 802.1p >> is a > part >> of the IEEE standard 802.1D. 802.1Q is the IEEE standard for vlans >> and is >> part of the IEEE standard 802.1D. There are many switches with 802.1P >> without 802.1Q VLAN's. >> >> >> >> Kevin Kiely >> > > Kevin, > > Thanks for the point to 802.1D! > > However, most devices that I have encountered in the past several > years that support 802.1p also support 802.1Q. Phones, switches, > routers, etc. > > > -- > Kristian Kielhofner Guys, According to the HP Procurve tech folks, the Procurve 1700 and 1800 series support 802.1p with 802.1Q tagging, but does not support 801.1p using the upper IPv4 ToS bits. Could this be any more confusing? Lonnie |
From: Kristian K. <kri...@gm...> - 2007-05-18 04:23:30
|
On 5/18/07, Kevin Kiely <Ast...@gt...> wrote: > Yes, you are correct. I had the need for a cheap layer2 switch used for > testing that was fanless with 10/100/1000 speeds and quiet (no fans) as the > fans are generally quite loud especially in managed switches. Also my use > was for a desktop environment and the time there wasn't much selection. > Here is one that fits the bill if you need 802.1P which can be very > important for QOS. > > http://www.netgear.com/Products/Switches/DesktopSwitches/GS116.aspx > Kevin, Haha! I have the eight port version of that on my desk. I didn't know that it supports 802.1p (or as they say "honors")! -- Kristian Kielhofner |
From: Kevin K. <Ast...@gt...> - 2007-05-18 04:07:19
|
Yes, you are correct. I had the need for a cheap layer2 switch used for testing that was fanless with 10/100/1000 speeds and quiet (no fans) as the fans are generally quite loud especially in managed switches. Also my use was for a desktop environment and the time there wasn't much selection. Here is one that fits the bill if you need 802.1P which can be very important for QOS. http://www.netgear.com/Products/Switches/DesktopSwitches/GS116.aspx -----Original Message----- From: Kristian Kielhofner [mailto:kri...@gm...] Sent: Thursday, May 17, 2007 11:51 PM To: AstLinux Users Mailing List Subject: Re: [Astlinux-users] VLAN's and 802.1p priority On 5/17/07, Kevin Kiely <Ast...@gt...> wrote: > > > > > Thought I would jump in here on the 802.1P. > > > > 802.1P is priority queuing at the MAC layer. IEEE standard 802.1p is a part > of the IEEE standard 802.1D. 802.1Q is the IEEE standard for vlans and is > part of the IEEE standard 802.1D. There are many switches with 802.1P > without 802.1Q VLAN's. > > > > Kevin Kiely > Kevin, Thanks for the point to 802.1D! However, most devices that I have encountered in the past several years that support 802.1p also support 802.1Q. Phones, switches, routers, etc. -- Kristian Kielhofner ------------------------------------------------------------------------- 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.... No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 5/16/2007 6:05 PM |