Re: [Astlinux-users] Windows img burning software

2008-10-04 Thread Tom Chadwin
 You need the ISO (the cdrom image file), not the .img which is a block device 
 image.

Apologies - I thought that was only for running it from CD, rather than 
installing to a hard drive. Thanks for putting me right.

Tom




Tom Chadwin , ICT  Web Development Officer
Telephone: 01434 611530
Web : www.northumberlandnationalpark.org.uk
IMPORTANT NOTICE - Disclaimer - September 25, 2008 - REF Email-200809-00297063. 
This communication is from Northumberland National Park Authority (NNPA).The 
Authority's head office and principal place of business is Eastburn, South 
Park, Hexham, Northumberland, NE46 1BS, United Kingdom. This communication and 
any attachments contain information which is confidential and may also be 
privileged. It is for the exclusive use 'AstLinux Users Mailing List'.If you 
are not the intended recipient(s) please note that any form of disclosure, 
distribution, copying or use of this communication or the information in it or 
in any attachments is strictly prohibited and may be unlawful. If you have 
received this communication in error, please delete the email and destroy any 
copies of it. Any views or opinions presented are solely those of the author 
and do not necessarily represent those of NNPA.Contractors or potential 
contractors are reminded that a formal Order or Contract is needed for NNPA to 
be bound by any offer or acceptance of terms for the supply of goods or 
services Although this email and any attachments are believed to be free of any 
virus or other defects which might affect any computer or IT system into which 
they are received, no responsibility is accepted by the NNPA for any loss or 
damage arising in any way from the receipt or use thereof. Computer systems of 
this Authority may be monitored and communications carried out on them 
recorded, to secure the effective operation of the system and for other lawful 
purposes.

This email has been processed by SmoothZap - www.smoothwall.net


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


[Astlinux-users] How to build a single package with changes

2008-10-04 Thread David Kerr
How would I compile a single package to test some changes I have made in a
source file?  I want to make a one line change in one of the source files to
SOX. I want to build the executable for this and test it out.  I don't want
to download the source again, nor untar the source from the previously
downloaded source, nor build a new astlinux image, etc. etc.  All I want is
to recompile/link the objects into an executable.

I can change the source in ./build_i586/sox-12.17.9   Now would would I do?

Thanks
David
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Re: [Astlinux-users] Windows img burning software

2008-10-04 Thread Philip Prindeville
Don't forget that it's contrary to the policies of just about every 
archives mailing list that is publicly browseable.

-Philip


Mark Phillips wrote:
 Dude!!!

 Excellent disclaimer. Long winded. Full of bloat and well over the
 accepted 5 lines of text!

 Give my hearty congrats to your IT staff!!

 Mark


 On Thu, 2008-09-25 at 14:39 +0100, Tom Chadwin wrote:
   
 Apologies for such a basic question, but I'm having difficulty burning the 
 0.4.8 .img, since the software I have tells me it is an invalid format, 
 although it support burning from .img.

 Thanks again

 Tom


 Tom Chadwin , ICT  Web Development Officer
 Telephone: 01434 611530
 Web : www.northumberlandnationalpark.org.uk
 IMPORTANT NOTICE - Disclaimer - September 25, 2008 - REF 
 Email-200809-00296972. This communication is from Northumberland National 
 Park Authority (NNPA).The Authority's head office and principal place of 
 business is Eastburn, South Park, Hexham, Northumberland, NE46 1BS, United 
 Kingdom. This communication and any attachments contain information which is 
 confidential and may also be privileged. It is for the exclusive use 
 'AstLinux Users Mailing List'.If you are not the intended recipient(s) 
 please note that any form of disclosure, distribution, copying or use of 
 this communication or the information in it or in any attachments is 
 strictly prohibited and may be unlawful. If you have received this 
 communication in error, please delete the email and destroy any copies of 
 it. Any views or opinions presented are solely those of the author and do 
 not necessarily represent those of NNPA.Contractors or potential contractors 
 are reminded that a formal Order or Contract is needed for NNPA to be bound 
 by any offer or acceptance of terms for the supply of goods or services 
 Although this email and any attachments are believed to be free of any virus 
 or other defects which might affect any computer or IT system into which 
 they are received, no responsibility is accepted by the NNPA for any loss or 
 damage arising in any way from the receipt or use thereof. Computer systems 
 of this Authority may be monitored and communications carried out on them 
 recorded, to secure the effective operation of the system and for other 
 lawful purposes.

 This email has been processed by SmoothZap - www.smoothwall.net
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] Moving to Astlinux 0.6

2008-10-04 Thread Daniel Aeberli
wow, that was too easy, just stuck the 0.6.1 CD in my 0.4.7 test rig and 
voila!
and now to configure...

Daniel Aeberli a écrit :
 Hi Darrick,

 I'd like to implement something like opt 1 on a regular PC.

 I will use a liveCD and copy my 0.4.8 production usbkey to a new one 
 and start configuring and testing on a test rig. Ideally I'd like to 
 keep my 0.4.8 setup on the HD (w. usbkey 1) and 0.6.1 on live CD (w. 
 usbkey 2). I want to do this because my production rig is very 
 different from my much older idsn-less test rig. So I expect a few new 
 issues once I switch over to the production rig and could go back and 
 forth with this method.

 How do I need to adapt you procedure?

 Thanks

 Daniel


 P.S. I'm not a linux guru, but use regularly enough to be familiar.



 Darrick Hartman a écrit :
   
 Jaime Blaney wrote:
   
 
 Hi all,

 I would like to know if there is an expected date for 0.6 official 
 release.  I'm currently running Astlinux 0.4.8 and I'm planning to move 
 to the newest version, however, my question is if I need to reflash the 
 CF card with the new image or it will be an automatic method for upgrade 
 like running Astup, for instance.
 
   
 Jaime,

 The official 0.6.1 image files are being verified by a few more people 
 before they get uploaded to the sourceforge site.  There is no direct 
 upgrade path from 0.4.8 to 0.6.1.

 This is the suggested upgrade method:

 Backup your current keydisk to a separate media.  (either a remote 
 server or a thumb drive.

 Transfer the new 0.6.1 image to a cf card.  The new image will write a 
 128MB vfat partition which contains the squashfs images and some 
 configuration files (and a few other things).  It's recommended to use a 
 256mb or larger CF card.  It's hard to find anything new under 1GB these 
 days so that shouldn't be an unreasonable requirement.

 Boot the system with the new image installed.  Your default 
 login/password is still root/astlinux.

 Here's where you have two options:

 1).  Remain with a separate key disk partition or device and add a 
 unionfs partition (in which case you must create 2 partitions using 
 fdisk , reboot, then run genunion and genkd specifying the appropriate 
 partitions for each command).

 2).  Use only a unionfs partition that contains the /mnt/kd structure. 
 (in which case you'd create one partition, reboot then run genunion to 
 create the file system).

 If your key disk is currently on a separate device, you could go with 
 option 1.  If you currently have the keydisk and 0.4.8 image on the same 
 device, I would opt for option 2.

 Note that Asterisk has changed from 1.2x to 1.4x so you'll want to 
 verify which settings changed between 1.2 and 1.4.  Also, there have 
 been many updates/additions to the rc.conf file.

 Darrick
   
 


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Astlinux-users mailing list
 Astlinux-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/astlinux-users

 Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
 PROTECTED]
   


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] Streaming live MP3 for music on hold

2008-10-04 Thread Philip Prindeville
It's not a .sh extension that decides whether a file needs to be exec'd 
with an interpreter or not, it's the presence of the #! at the top of 
the file.

Also, it's not 8000 bits/sec, it's 8KHz and 8-bit samples, so 64KB is 
actually an 8-second buffer.

-Philip


David Kerr wrote:
 The stream usually starts pretty much instantly.  I did refine my 
 scripts a little. I now have a script, stream-mp3 that takes the URL 
 as a parameter. I also found that I did not need to specify the bit 
 rate of the input, sox seams to figure that out. So the script now 
 looks like...

 stream-mp3
  #!/bin/bash
  wget -q -O - ${1} | sox -t mp3 - -t ul -r 8000 -c 1 -

 And then in musiconhold.conf:
 [streamwnycfm]
 mode = custom
 format = ulaw
 application = /bin/bash /usr/bin/stream-mp3 
 http://wnycfm.streamguys.com:80/

 For the application line I am not sure whether the /bin/bash is 
 actually required or not. It is possible that if I gave the script 
 file a .sh tail, then it would automatically use bash.

 Now, the biggest problem I have is that after a steam starts, if a 
 call disconnects and then another call comes in later... the stream 
 may no longer be live because sox buffered up a lot of it that 
 asterisk did not read. See:
 http://lists.digium.com/pipermail/asterisk-users/2008-January/204255.html
 A hack was suggested that basically kept the stream live all the time, see
 http://lists.digium.com/pipermail/asterisk-users/2008-January/204258.html
 and 
 http://lists.digium.com/pipermail/asterisk-users/2008-January/204263.html

 I didn't like the hack suggested because keeping the stream live all 
 the time would soak up CPU and network bandwidth. On my ALIX 2C3 the 
 sox MP3 to ulaw decode consumes about 15% to 18% of the CPU (see the 
 linux top command). But one of these posts made me go look and see 
 how much i/o buffering is going on in sox

 I found in ./build_i586/sox-12.17.9/src/stio.c  the following line...
 if (setvbuf (ft-fp, NULL, _IOFBF, sizeof(char)*ST_BUFSIZ))
 This is setting the outbut buffer for sox to 64 KBytes (ST_BUFSIZ is 
 defined in  st_i.h as 8192). For a ulaw stream at 8000 bits per second 
 this works out to approx 65 seconds of buffering, which is petty much 
 what I was experiencing... connecting to the stream got a minute of 
 non-live stream, then a second or two of silence, then a live stream 
 started.  So last night I changed the line in stio.c to...
 if (setvbuf (ft-fp, NULL, _IONBF, sizeof(char)*ST_BUFSIZ))
 yes, just the change to _IONBF turns off output buffering)
 I recompiled (just ran make in the sox-12.19.7 directory) and moved 
 the resulting sox executable to my astlinux system. This shortened the 
 non-live portion, but did not eliminate it.  Possibly there is 
 buffering at the output from wget, but I have not looked into that yet.

 David




 On Thu, Sep 25, 2008 at 9:53 PM, Mark Phillips [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi David,

 How long does this stream take to arrive when you put a caller on
 hold?

 In a similar vain I was thinking about Video on Hold. It occurs to me
 that if there was a video file captured into someone's VM account we'd
 be able to migrate it over the the MOH  and thus callers would
 hear the
 audio part and see the video part.

 This certainly works where a video VM message is left for a non video
 user.

 Mark


 On Mon, 2008-09-22 at 22:29 -0400, David Kerr wrote:
  I thought report success in my attempt to use live streaming MP3
 as a
  music on hold source, in case anyone else is interested. Here is
 what
  I did...
 
  First, create a bash script. For example,
 /home/stream-wnyc-fm.sh with
  the following two lines.
 
  #!/bin/bash
   wget -q -O - http://wnycfm.streamguys.com:80/ | sox -t mp3 -r
 32000 -
  -t ul -r 8000 -c 1 -
 
  Explanation... use wget to pull the raw MP3 stream from a URL, send
  result to stdout. Pipe this into sox indicating source is of
 type mp3,
  sampled at 32kbps from stdin send output of type ulaw sampled at
 8kbps
  with one channel (mono) to stdout.
 
  Now edit your Asterisk musiconhold.conf file and create a new
 context
  (or change your default) to the following...
 
  [streamwnycfm]
mode=custom
format=ulaw
application=/bin/bash /home/stream-wnyc-fm.sh
 
  And there you have it.  I have this working on an ALIX 2C3 board
  running latest 0.6 branch.
 
  David
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___

[Astlinux-users] Problems installing 0.6.1

2008-10-04 Thread Martin Rogers
Hi

I have had a VIA build 1754 of astlinux running for a few months on a
Neoware E140 without any problems.  For clarity, this build requires
runnix and this is all installed OK.

Yesterday I tried to upgrade to the astlinux-0.6.1-via image (from
Darrick's site). In order to upgrade I deleted the existing files from
the os directory on the E140 and copied in the five files contained in
the 0.6.1 tar. When the system boots I now get the following before it
gives up :

verifying astlinux-0.6.1.run...
:No such file or directory
astlinux-0.6.1.run not verified
mount: mounting /dev/loop0 on /mnt/root failed
Error mounting astlinux-0.6.1.run root fs
/bin/sh: can't access tty; job control turned off
/mnt/base/os $


Any suggestion on how to fix this gratefully accepted.

Thanks
Mart

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] Found a bug in the IPsec scripts

2008-10-04 Thread Lonnie Abelbeck
Philip,

from 192.168.10.0/24, generate
ADDR=192.168.10
MASK=255.255.255.0

then, the matching interface will be spit out with the following:

ifconfig -a | \
sed -e :a -e N -e 's/\n  / /' -e ta | \
grep -i inet addr:$ADDR | \
grep -i mask:$MASK | \
awk '{ print $1; }'


sed description, Join lines that begin begin with 10 spaces

:a  # label 'a' to jump back to later on
N   # Append next line to sed's buffer
s/\n  / /   # replace exactly one newline (\n) followed by 10  
spaces with one space
ta  # if the last replace command was succesfull, jump to label 'a'.


Hope this works for you.

Lonnie




On Sep 27, 2008, at 1:54 AM, Philip Prindeville wrote:

 Hmmm  found a minor but really annoying bug in the IPSec code.   
 The
 fix is simple, but difficult to automate in bash.

 Anyone have an easy to figure out which interface corresponds to a
 particular network?

 For instance, if I have the below, then for input 192.168.10.0/24,
 then I want the output to be br1.

 Anyone know of an easy way to do this?  I could do it with perl easily
 enough, but that's not an option here...

 Thanks,

 -Philip


 pbx asturw # ifconfig -a
 br1   Link encap:Ethernet  HWaddr 00:00:24:C9:30:01
  inet addr:192.168.10.1  Bcast:192.168.10.255  Mask: 
 255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:3003724 errors:0 dropped:0 overruns:0 frame:0
  TX packets:3559171 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:657264449 (626.8 MiB)  TX bytes:2817445211 (2.6 GiB)

 eth0  Link encap:Ethernet  HWaddr 00:00:24:C9:30:00
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  Interrupt:11 Base address:0xe100

 eth1  Link encap:Ethernet  HWaddr 00:00:24:C9:30:01
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  Interrupt:5 Base address:0xe200

 eth2  Link encap:Ethernet  HWaddr 00:00:24:C9:30:02
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  Interrupt:9 Base address:0xe300

 eth3  Link encap:Ethernet  HWaddr 00:00:24:C9:30:03
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:3004590 errors:0 dropped:0 overruns:0 frame:0
  TX packets:3559171 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:705856587 (673.1 MiB)  TX bytes:2817445211 (2.6 GiB)
  Interrupt:12 Base address:0xe400

 loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 ppp0  Link encap:Point-to-Point Protocol
  inet addr:63.224.43.230  P-t-P:63.231.10.208  Mask: 
 255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:2844038 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2456032 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3
  RX bytes:2633750422 (2.4 GiB)  TX bytes:587350974 (560.1 MiB)

 w1ad  Link encap:Ethernet  HWaddr 00:77:77:77:82:7B
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:3014870 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2667819 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:2778831161 (2.5 GiB)  TX bytes:673146887 (641.9 MiB)
  Interrupt:10 Memory:d088-d0881fff

 pbx asturw # route -n
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric Ref 
 Use Iface
 63.231.10.208   0.0.0.0 255.255.255.255 UH0   
 00 ppp0
 192.168.10.00.0.0.0 255.255.255.0   U 0   
 00 br1
 224.0.0.0   0.0.0.0 240.0.0.0   U 0   
 00 br1
 0.0.0.0 0.0.0.0 0.0.0.0 U 0   
 00 ppp0




 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's  
 challenge
 Build the coolest Linux based applications with 

[Astlinux-users] testing list mail

2008-10-04 Thread Damien Hull
This is just a test.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


[Astlinux-users] Configuring ASTLinx

2008-10-04 Thread Damien Hull
I downloaded the following images.

1. AstLinux-0.4.8-i586.img
2. cf-0.6-1958-geni586.img
3. Both images boot

I would like to set up a system that people on the net can call and leave a 
message. I would like to do this with out a sip number if possible. People with 
sip phones should be able to reach the system and leave a message. I only want 
one user account or mailbox.

Is this possible?
What image should I use?
Is there documentation for version 0.6?

Thanks!

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] Streaming live MP3 for music on hold

2008-10-04 Thread Philip Prindeville
Have a look at mplayer...  It supports plugins, and you can make some 
fairly small barebones binaries.

-Philip


David Kerr wrote:
 I thought I would report the fruits of a weekend of hacking around 
 this. Some of the things I have learned follow...

 Examining streamplayer (the utility that streams from raw TCP and 
 included in asterisk utils) I found that the way it worked was to keep 
 sucking the audio stream from the internet... and applying a test to 
 see if asterisk was ready to read anything from stdout. If not, then 
 it simply threw the data away and went back to read more from the 
 internet. Thus there is always network traffic reading the stream

 I also learned that asterisk launches the application(s) specified in 
 musiconhold.conf during startup. They are not started/stoped based on 
 a call connecting to the music-on-hold. Thus they are always running.

 Based on this insight, I tried to apply the same test to see if 
 anything is ready to read to the two programs that my bash script 
 calls... wget and sox.

 Applying the test to wget before writing to stdout improved things 
 somewhat, but there is still a considerable amount of buffering going 
 on inside/between sox and asterisk.

 Applying the test to sox before writing to stdout improved things a 
 lot... there is still some buffering going on inside asterisk (about 5 
 seconds worth), but there is nothing to do about that. Unfortunately 
 however, sox is still converting the data from mp3 to ulaw even though 
 it is being thrown away... so not only am I consuming network bandwith 
 all the time, sox is also comsuming 15% to 18% of my (ALIX 2C3) cpu.  
 So I got more adventurous and applied the test to determine whether 
 sox should read from stdin based on asterisk being ready to read from 
 stdout. That cured the CPU problem, but still there is a considerable 
 amount of data in sox's internal buffers that were not flushed.  So, I 
 tried yet another approach... have sox always reading from stdin, and 
 apply the test on whether anything is ready to read from stdout BEFORE 
 sox attempts to do any conversions or apply any effects. This got CPU 
 consumption down to about 2.5% of CPU in sox, and not measurable in wget.

 So, there we go... some hacking to sox has got the buffering of old 
 streaming audio down to about 5 seconds, inside of asterisk, at the 
 cost of 2% to 3% of CPU, and a continuous steam over the network.  
 Ideally I'd like to find a way to halt the network traffic if nothing 
 is reading from the stream, but that's for another time.

 Footnote...
 While I messed around with wget, this is really not the right place 
 for me to be messing around. The right answer is to fix streamplayer 
 to read from http (and ftp?) sources and not just raw TCP. But that 
 looked like more work to me (and my current solution doesn't require 
 changes to wget).   Additionally, streamplayer should add the function 
 (option) not just to throw away the data stream if no one is listening 
 to stdout, but to also stop reading from the network.  Finally, for 
 astlinux, this wouldn't completely solve the problem because sox is 
 required to convert from mp3 to ulaw.  It would be nice if astlinux 
 could include the format-mp3 package from asterisk-addons -- that 
 might improve things further.  In the meantime I'll live with a hacked 
 sox.

 There goes another wasted weekend!

 David





 On Fri, Sep 26, 2008 at 4:30 PM, David Kerr [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Humm, good point. Which goes some way to explain why my
 modification to sox only cut the delay to a real live stream to
 about 45 seconds.  There must be other buffering going on,
 possibly between wget and sox, so I have turned my attention there
 for the moment.

 David


 On Fri, Sep 26, 2008 at 1:22 PM, Philip Prindeville
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 It's not a .sh extension that decides whether a file needs to
 be exec'd with an interpreter or not, it's the presence of the
 #! at the top of the file.

 Also, it's not 8000 bits/sec, it's 8KHz and 8-bit samples, so
 64KB is actually an 8-second buffer.

 -Philip


 David Kerr wrote:

 The stream usually starts pretty much instantly.  I did
 refine my scripts a little. I now have a script,
 stream-mp3 that takes the URL as a parameter. I also found
 that I did not need to specify the bit rate of the input,
 sox seams to figure that out. So the script now looks like...

 stream-mp3
  #!/bin/bash
  wget -q -O - ${1} | sox -t mp3 - -t ul -r 8000 -c 1 -

 And then in musiconhold.conf:
 [streamwnycfm]
 mode = custom
 format = ulaw
 application = /bin/bash /usr/bin/stream-mp3
 http://wnycfm.streamguys.com:80/


Re: [Astlinux-users] PPPoE config

2008-10-04 Thread Philip Prindeville
Agreed.  The scripts are a mess, and someone should file a bug and 
(preferably) submit fixes.  David is pretty good about getting new 
releases out.

The scripts are part of rp-pppoe, I believe, and not pppd.  Also, we 
install the pppoe scripts pretty much unmodified (for better or worse).

-Philip


Terry Markovich wrote:
 Yes, it is the standard symlink.  The issue is the redefinition of 
 $CONFIG for the pppoe scripts (/usr/sbin/pppoe-start, etc).

 The default config location for these scripts is /etc/ppp/pppoe.conf 
 (doesn't matter if it is a symlink or not).

 The network init script writes the values out to the correct file, but 
 defines $CONFIG in this same file to /etc/ppp

 Since the network init script puts the config file in the default 
 location, the CONFIG variable is not needed.  Not sure why CF_BASE is in 
 there, as none of the pppoe scripts use it.  It looks like the intention 
 was for CONFIG to be combined with CF_BASE for the full path (and maybe 
 an earlier rp-pppoe package expected this?), but this is not happening.

 Terry

 Philip Prindeville wrote:
   
 Terry Markovich wrote:
 
 I have found an error in the
 /trunk/target/generic/target_skeleton/etc/init.d/network script
 regarding PPPoE.

 The script writes to /tmp/etc/ppp/pppoe.conf

 CONFIG=\/etc/ppp\
 CF_BASE=\pppoe.conf\

 The problem is that $CONFIG is used all over the pppoe-start and
 pppoe-status scripts, so $CONFIG gets reassigned from it's default of
 /etc/ppp/pppoe.conf, pppoe-status fails for a missing config and then
 the pppoe-start times out, although PPPoE is actually running.  No pid
 files get created so it does not even shutdown pppd/pppoe when it fails.

 Removing both of these variables from the network script works for me,
 pid files are created and it does not complain about a timeout.

 Terry Markovich
   
   
 Isn't /etc/ppp a symlink to /tmp/etc/ppp on your system?

 Or is there a separate issue to this?

 I remember looking at the PID issue before, and it struck me that it was 
 caused by inconsistent naming in the filenames.  I.e. what got created 
 and what was checked for weren't the same.

 -Philip
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


[Astlinux-users] How do I configure a static address?

2008-10-04 Thread Damien Hull
Here's what I have.
1. cf-0.6-1958-geni586.img
2. Box with single Nic on DMZ
3. Configured /mnt/kb/rc.conf

Problem
1. System boots and asks for a dhcp address
2. No dhcp server on the DMZ
3. System allows me to login
4. ifconfig shows the configured address

Questions
1. Am I missing something?
2. Should AstLinux live on a DMZ?

Thanks!

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] 0.6.1 upgrade - Unable , to create channel of type 'Zap' (cause 66 - Channel not implemented)

2008-10-04 Thread Martin Rogers
Hi

I have resolved this issue now, and thought I would share it in case
anyone hits this.

After the upgrade all the original files were restored to the keydisk
except for the rc.conf and the zaptel.conf which I created by hand.

When I configured the latter I setup the file as :

fxsks=3
fxsks=4
loadzone=uk
defaultzone=uk

which ztcfg seemed quite happy about. However what I had forgotten was I
have an FXS module in port 1 which I no longer use (I use just sip
extensions).  I added configuration for this module as follows :

fxoks=1
fxsks=3
fxsks=4
loadzone=uk
defaultzone=uk

and PSTN is all up and running again.

The bottom line is that it seems you need zaptel.conf entries for every
module on the card regardless of whether or not you are using it.

regards
Mart

Martin Rogers wrote:
 Hi
 
 I have just upgraded a Wyse Winterm box which was running an old
 Astlinux (Asterisk v1.2) to 0.6.1-via.
 
 The box is connected to two PSTN lines via a TDM400 card and has worked
 fine.
 
 I backed up all the config from my key disk and did a physdiskwrite of
 the new image onto the CF. I then scratched the keydisk and ran keygen.
 Finally I copied over my old config.
 
 All went well except that I have no PSTN access.
 
 ztcfg and zttools report back favorably and I have two leds on the back
 of the card.  My original dialplan is in place and works fine for my
 SIP-SIP calls, but if I try to call out on a PSTN number I get :
 
 dial_exec_full: Unable to create channel of type 'Zap' (cause 66 -
 Channel not implemented) 
 
 I would be grateful for any comments.
 
 Thanks
 Mart
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Astlinux-users mailing list
 Astlinux-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/astlinux-users
 
 Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
 PROTECTED]
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] LDAP Support

2008-10-04 Thread Darrick Hartman
Lonnie,

I would not be opposed to adding openldap support to the wish list.  I'd 
also like to look at a limited IMAP support for voicemail.

Polycom supports a corporate directory too if you purchase their 
productivity pack (around $10/12 per phone).  You also get some nifty 
features such as call recording to a thumb drive (on the 650 or 670 only 
so far), voice quality monitoring (not sure what that actually does).

Darrick

Lonnie Abelbeck wrote:
 Question,
 
 Would it make sense for astLinux to offer an LDAP server?
 
 http://www.openldap.org/
 
 I ask since I own many SPA-942's and a new firmware 6.1.3a  
 incorporates the LDAPv3 Corporate Directory Search
 Menu as in other Cisco Phones to enable the retrieval of directory  
 information based on LDAP.
 
 Limited BLF support is also supported in this firmware 6.1.3a.
 
 I have absolutely no experience with LDAP, so comments are welcomed.
 
 Lonnie
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Astlinux-users mailing list
 Astlinux-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/astlinux-users
 
 Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
 PROTECTED]


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]


Re: [Astlinux-users] LDAP Support

2008-10-04 Thread Michael Keuter
Question,

Would it make sense for astLinux to offer an LDAP server?

http://www.openldap.org/

I ask since I own many SPA-942's and a new firmware 6.1.3a 
incorporates the LDAPv3 Corporate Directory Search
Menu as in other Cisco Phones to enable the retrieval of directory 
information based on LDAP.

Limited BLF support is also supported in this firmware 6.1.3a.

I have absolutely no experience with LDAP, so comments are welcomed.

Lonnie

Hi,

I could use this as well for my Snom 320/360 phones, but I also have 
no experience with LDAP. Good side effect could be, that many emails 
programs could use that as well for email address lookup.

Michael

--
Email: mailto:[EMAIL PROTECTED]


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]