Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: cDvbApi Open
Hello!
Am Sonntag, 10. März 2002 19:21 schrieb Roland Praml:
> > Hello!
> >
> > Last night I wrote a little script which sends a SVDRP-MESG when an ISDN
>
> call
>
> > comes in (svdrpsend.pl -d liquid "MESG Incoming call from $2 to $3") but
>
> I'm
>
> Hi,
> (a little bit OT)
> how did you do that?
> I've written a similar script:
>
> tail -f /var/log/messages | ./callscript.pl
>
> the callscript filters the input of messages and calls svdrpsend.
> but after 2-3 days it won't work and I have to kill the tail process
> and start it again and I know not why or where it hangs.
No this is not a good idea, but there is another solution:
- read man callerid
- read man isdnlog
_One_ entry in my callerid.conf looks like this:
[MSN]
NUMBER = 3134936
ALIAS = Flood Central
ZONE = 1
START = {
[FLAG]
FLAGS = IRU
PROGRAM = /usr/bin/isdnscript \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9 \$10
\$11 \$12 \$13 \$14 \$15 \$16 \$17 \$18 \$19 \$20
USER = root
GROUP = root
}
isdnlog must be started with -S or the configuration directive "start" must
be set to "yes".
My /usr/bin/isdnscript looks like this:
#!/bin/bash
if [ $3 = "+49303134936" ]; then
/usr/bin/svdrpsend.pl -d liquid "MESG Incoming call from $2 to Mobile1"
&
echo -e "Call notification\n\n\n-- \nhttp://www.flood-net.de/" | mail -s
"Call from $2 to Flood Central" roedl@flood-net.de
fi
Andi
--
Web: http://www.flood-net.de/
Mail: flood@flood-net.de
Phone: +49-(0)-30-680577-44
Linux opens doors, not windows!
http://www.bundestux.de/ http://counter.li.org/
Home |
Main Index |
Thread Index