ignore dial caracters

Rene Fertig (rene.fertig@wtal.de)
Wed, 5 Jan 2000 23:16:55 +0100


Hi Roland.

R.Slagter wrote on Wed, 5 Jan 2000 13:00:31 +0100:
> For sending a fax i want to look only for numeric number
> but no :   space, - , / ( ) [ ] *
> where i put this in
> i know the - is ignored but the space caracter is in mgetty 2 faxes
> where can I change that ??

You can change the behaviour of faxspool:

First find the following line in faxspool:
  if expr "$phone" : "[-0-9TtPpW,;]*$" >/dev/null ; then : 
and change it to:
  if expr "$phone" : "[^a-oq-su-zA-O-Q-SU-Z]*$" >/dev/null ; then : 

After this line insert the following line:
  phone=`echo "$phone" | sed 's/[()/\-\[ ]//g'`

In that way all numbers and signs and the characters tpw are allowed to
appear in the phonenumber. The signs ()/-[ will be removed from the
phonenumber (but not the ], I don't know why sed didn't escape this character
by a backslash. If you want not to use comma or semicolon for special modem
purpose, you can use sed 's/[[:punct:] ]//g' which remove all
punctuation-characters). 
When you want to use spaces or () in your phonenumer, you need to put " or '
around your phonenumber!


Ciao, Rene

-- 
----------------------------------------------------------------------
  mailto:rene.fertig@wtal.de         http://home.telebel.de/referti/
======================================================================
>>>>>>>>>>>>  PGP-Key auf Anfrage +++ PGP-Key on request  <<<<<<<<<<<<