Freesco answering machine?

3rd Party Package Requesting

Postby steve_v » Thu Sep 18, 2003 11:20 pm

Some time ago I used the voice-0.6 software (for rockwell compliant voice modems) to set up a simple answering machine on my linux box.
<http://www.ibiblio.org/pub/Linux/apps/serialcomm/modem/voice-0.6.1.tar.gz>

I would like to do something similar with my Freesco machine, but alas I know little about the internals of the beast (freesco) and lack the compilers/libs to build a binary that will run on it.

This is a very simple program consisting of a modem control program © and various bash scripts to send the relevant commands so cpu overhead should be minimal. The source package (tar.gz) is also only ~34kb :-)

The only problem I can see is that I remember having to shut down the daemon in order to dial out, and restart it after bringing the link down but I am sure this can be worked in somehow.

If anyone with more knowledge of Freesco would like to explore this idea.....
Or perhaps someone could build me a binary so I can have a play & maybe build a package ;-)


Cheers.

Steve.
User avatar
steve_v
Newbie
 
Posts: 4
Joined: Fri May 02, 2003 9:24 pm
Location: Dunedin, New Zealand

Postby steve_v » Thu Sep 18, 2003 11:25 pm

<a href='http://www.ibiblio.org/pub/Linux/apps/serialcomm/modem/voice-0.6.1.tar.gz' target='_blank'>http://www.ibiblio.org/pub/Linux/apps/seri...ce-0.6.1.tar.gz</a>
User avatar
steve_v
Newbie
 
Posts: 4
Joined: Fri May 02, 2003 9:24 pm
Location: Dunedin, New Zealand

Postby dingetje » Fri Sep 19, 2003 9:51 am

You can download a tarball with the compiled binary from:

<a href='http://dingetje.homeip.net/tarballs/voice-0.6.1.tar.gz' target='_blank'>http://dingetje.homeip.net/tarballs/voice-0.6.1.tar.gz</a>

Unpack somewhere with:

tar -zxvf voice-0.6.1.tar.gz

Mind you! This is only dingetje's compilation service in action, I haven't tried to run it or anything!

The bash script may need work, and of course you should have bash package installed, and probably also the utils package.
The Makefile gives clues as to where to install the stuff

Have phun :P
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby El Machete » Sat Sep 20, 2003 1:34 am

No worries mate

I will install it and run it. I will tell you how it goes. So far 99.9% of anything you do is fool proof


cheers
El Machete Main Site<br><a href='http://elmachete.dyndns.org' target='_blank'>http://elmachete.dyndns.org</a><br><br><b><i>Information wants to be free. Use open source</b></i><br><br>Other sites by El Machete:<br><br><a href='http://laoficina.mine.nu/' target='_blank'>El Machete Group Office</a><br>
User avatar
El Machete
Senior Member
 
Posts: 78
Joined: Fri Aug 09, 2002 3:05 am
Location: Alberta Canada

Postby tom » Fri Sep 26, 2003 9:51 pm

ok, I really have to say that this is VERY much appreciated. I've been on a mission lately to use Freesco as an answering machine. I've had nothing but headaches with mgetty+sendfax and vgetty!

I now have Freesco answering my phone calls but first I had to do a few things.

1. Install Tigers bash pkg
2. install Dingetjes utils pkg
3. copy some binaries from zipslack (echo, cp, find, kill, sort, touch)
4. edit 3 scripts ans, vrec, vplay
5. record the voice messages
6. start ans with "bash ans"

The only problem I have is that "bash date" won't work which is used to name the messages ("date".msg) so every message is named ".msg" and so it gets overwritten on the next call.

How can I make "date" work with bash?

I'm very, very determined to make an answering machine package for Freesco and would be greatful if someone could give some advice on this one.

Tom
User avatar
tom
Junior Advanced Member
 
Posts: 115
Joined: Sun Oct 27, 2002 4:39 pm

Postby Lightning » Sat Sep 27, 2003 1:04 am

The problem with "date" is because in FREESCO this is a script that does not respond to swithces. Just edit the scripts to use /bin/date instead and they should work fine.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12081
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby tom » Sat Sep 27, 2003 2:44 pm

hmm, everytime I try "bash date" it says "cannot execute binary file"

I tried finding the script for date but couldn't find it mentioned in /bin/utils

looks like bash says this when trying to execute any binary file. I think I'm getting pretty close, any ideas on this?

Tom

UPDATE

It turns out that the date file located at /bin/date is a binary but won't work with bash. I copied date from zipslack and chmod +x date and everything works perfect now.

My next step is to test the data and fax calls. For fax calls I need a fax program, does anyone have recomendations on what to go with? For data calls I plan to use the full mgetty binary from zipslack so no script is needed to dial in. Will Freesco's dial-in script work will the full binary mgetty? If so I'll just use that as a starting place.

One more question. How do I automatically respawn a process like the entry you would usually put in inittab?

Thank You everyone, this has been fun (not to mention educational) hope to have a full voice, data, fax package soon!

Tom
User avatar
tom
Junior Advanced Member
 
Posts: 115
Joined: Sun Oct 27, 2002 4:39 pm

Postby tom » Sun Sep 28, 2003 4:38 am

ok, I have to say that this is really GREAT!

I have lightnings sound package installed and the modems line out going to the sound cards mic input so I'm able to convert the answering messages to MS WAV file format so I can listen to my messages from a web browser.

I modified the "ans" script to record the begining time of a message and the ending time of it and subtract the difference and determine the lengh of the call then convert it into .WAV format and copy it into my www/ftp folder

here's my modified ans script voice_call funtion

Code: Select all
voice_call()
   {
   local FNAME
   local N
local BTIME
local ATIME
BTIME=$($DATE +%d%m%y%H%M%S)
local ELAPSED
   FNAME=${VOICEDIR}/${1}.${EXT}
   record_message $FNAME "bqd#sthc2e3"
   N=$?  
FTIME=$($DATE +%d%m%y%H%M%S)
ELAPSED=$(($FTIME - $BTIME))
echo "message length is $ELAPSED"
echo $ELAPSED > /tmp/elapsed
echo $FNAME > /tmp/myfile

   # Discard message if too short.
   if [ $($WC --bytes < $FNAME) -lt $SHORTMSG ]; then
      log "Short message discarded"
      $RM -f $FNAME
   fi
   case $N in
      5|6|7)
         # Silence, off-hook or on-hook detected.
         log "Message discarded"
         $RM -f $FNAME
        ;;
      8|9)
         log "After voice receiving a Fax"
         fax_call $1
        ;;
      10|11)
         log "After voice receiving a Data call"
         data_call
        ;;
   esac
 $VMCP -c"AT_H" -wOK
MYFILE=~cat /tmp/myfile~
MYTIME=~cat /tmp/elapsed~
vplay $MYFILE | brec -w -t $ELAPSED /mnt/bootdev/router/pkg/home/ftp/$MYTIME.wav
   }

User avatar
tom
Junior Advanced Member
 
Posts: 115
Joined: Sun Oct 27, 2002 4:39 pm

Postby Lightning » Sun Sep 28, 2003 3:34 pm

Hmmmm sounds pretty cool. When can we expect a package of this ?
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12081
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby tom » Mon Sep 29, 2003 1:59 am

Hmmmm sounds pretty cool. When can we expect a package of this ?


VERY soon. I think the majority of it's done. I've started editing the install/rc scripts used in your "package template" tarball but there's still a few things that need to be addressed first.

This program is capable of deciphering between voice, data and fax calls so I want to take advantage of this.

The voice call part is finished and working very well.

I'm having trouble compiling efax. I would be very gratefull if someone could help me out with this. Here's a link to the code <a href='http://www.ibiblio.org/pub/Linux/apps/serialcomm/fax/' target='_blank'>http://www.ibiblio.org/pub/Linux/apps/serialcomm/fax/</a>

Since this package will use several binaries from Tigers bash package and Dingetjes utils package plus 6 others, I'm thinking of just including them in the package because their locations have to be defined in the "ans" script and it will save alot of searching and editing for the user (is this a good idea?)

Since this is going to be a hard drive only install, I want to include the mgetty binary so no scripts are needed on the client side for dial-in data calls. The modem cannot be setup for dial-in with Freesco so we won't even be using rc_ras. Can anyone give me some pointers on what command line to use for full dial-in (internet) access?

After the main program "ans" answers a call, it terminates. Usually you would put a "respawn" entry in inittab to restart it. The only solution that I've found is to have cron run a script every 5-10 seconds and see if it's running and restart it if it's not. Is this the best way?

I've been recording my voice messages with the modem and then converting them to WAV format and putting them in my ftp folder. I've found that internet explorer won't open and play them if it's using ftp. I want to put the messages in /www/answer and make a cgi script that gathers the contents of this folder and creates a webpage with links to the wav files (so when you click on them, they play). I'm not very good with cgi/web programming, could someone help me out with this part?
User avatar
tom
Junior Advanced Member
 
Posts: 115
Joined: Sun Oct 27, 2002 4:39 pm

Postby PHBC50 » Tue Sep 30, 2003 6:54 pm

Hello,
Just a thought...I think there is a package for efax for FREESCO 027 that can be ported without too much dificulties for Ver 03x , I have not been able to test it but I modified the script and it seems like it's working. Well you can find it at <a href='http://afpercu.hopto.org/efax.tar' target='_blank'>efax tarball</a> for reference it came from :<a href='http://www.freescosoft.com/home/FREESCO/packages/v0.2.7/efax.htm' target='_blank'>efax package at freescosoft</a>
Place it in /usr/local/ and extract it. To see if it works use
Code: Select all
/usr/local/efax/rc_faxd start

Hope this helps...

ps: of course the starting has to be modified to make it work with FREESCO03x.
The only way of discovering the limits of the possible is to venture a little way past them into the impossible. (Arthur C Clarke)
User avatar
PHBC50
Junior Advanced Member
 
Posts: 139
Joined: Thu Nov 21, 2002 8:59 pm
Location: France

Postby Howler » Tue Sep 30, 2003 7:05 pm

Is this request/announcing/support/or general ???

This thread is growing TOO much for something that is to be a request and is covering a few different things.

Howler
The first, the original and still the main FREESCOsoft site http://www.freescosoft.com/
The best place for FREESCO packages and related files.
Created and maintained by me (Howler), and mirrored by many (well, ok mirrored by some).
User avatar
Howler
Advanced Member
 
Posts: 227
Joined: Wed Nov 14, 2001 12:24 am
Location: Wisconsin USA

Postby steve_v » Mon Oct 20, 2003 12:47 am

All I can say is WOW! you guys are awesome.

I did not expect so much intrest in this idea.
I got this working but a package would be brilliant.

Cheers.

Steve.

Feel free to move this thread wherever it belongs howler.

:-)
User avatar
steve_v
Newbie
 
Posts: 4
Joined: Fri May 02, 2003 9:24 pm
Location: Dunedin, New Zealand

Postby koni » Sun Oct 07, 2007 9:37 pm

Hello,

Did anybody make the package of efax? Can anybody help please? I understand you can run 027 version on 03x, and how does one download it from 027 to 037?

Thanks

Koni
User avatar
koni
Senior Member
 
Posts: 79
Joined: Mon Dec 06, 2004 9:25 am


Return to 3rd Party Package Requesting

Who is online

Users browsing this forum: No registered users and 9 guests

cron