|
|
|
|
![]() printer-version |
You have ISDN and an ISDN-card in your PC?
Every time when you get a call the caller's telephone number appears on the display of the telephone? What about if Linux warns you who is calling?
When somebody is calling the caller's telephone number is written in the file /var/log/messages if the opposite has ISDN, too. Shouldn't it be possible to use this information and get a message to whom this number belongs? With a script it is possible to use the telephone number to analyze a databank and find out the caller's name. Believe me it is much easier. The isdn4linux's programmers have
already thought at this possibility and you do not need much program knowledge
to get something like that.
My PC shows me the message with a JPEG-picture, which should not be very big to be loaded very fast later. (about 512x246, 6 KB)
You produce a picture like the one above for every caller you want.
It is also possible to scan a photo and use this one instead.
>> mkdir /etc/isdn/jpeg Next isdn4linux has to learn which picture belongs to which telephone number. This happens in the file /etc/isdn/callerid.conf . There should be an entry like [MSN]
Every telephone number gets an alias. ZONE describes to which fare zone the caller belongs to. (You have to enter the telephone number without the area code.) E.g. you have a friend called Thorsten S. who calls you very often. First you create a JPEG-picture for this caller (see above) and save this in /etc/isdn/jpeg/ with the filename callThorstenS.jpg . Next enter his data in the file /etc/isdn/callerid.conf . This should look like:
The new and important thing stands right behind the variable START.
There you write what should happen if this numbers calls.
We use the program xli to show the picture (should come with
every linux distribution). Also you could use xv or other programs. I prefer
xli because it is small and loads the pictures quite fast.
It gets on my nerves that the picture is loaded with a window frame
always.
It does not look like a message it looks more like a picture - may
be because it is one ;-) .
The following configuration belongs to fvwm2: Add an entry into the file ~/.fvwm2rc like: Style "/etc/isdn/jpeg/*" NoTitle, Sticky, StaysOnTop (all in one line!) This entry can be placed everywhere but to keep a better overview put it to the other style entries. This line makes it possible that the loaded pictures do not have a window frame any longer and it is "sticky" that means it appears on every virtual desktop you are moving to and it will be placed over all opened windows (StaysOnTop). Now you have your own telephone pre-warning device.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||