fli4l - floppy-isdn4linux                showtelname.txt RELEASE 1.0a
-------------------------------------------------------------------------------
Attention! Only for Fli4L Version 2.1.x! Tested with 2.1.8.

Package Showtelname - Get name of incoming caller from phonebookfile and output to LCD
=============================================================================

OPT_SHOWTELNAME - Displaying callers name via LC-display

    With this package, you are able to display the name related to the incoming caller-id from the
    phonebook-file (/etc/phonebook) on the LCD.

    The Package consists of several files:

     
     check/showtelname.txt                    Check-file
     config/showtelname.txt                   Configuration-file for OPT_SHOWTELNAME
     
     doc/deutsch/opt/showtelname.txt          Text-based documentation german
     doc/english/opt/showtelname.txt          Text-based documentation english

     opt/files/usr/bin/nummer.sh	 	    Program-script
     opt/showtelname.txt                      List of files to be copied to the fli4l-installation                                             Diskette kopiert werden sollen.
     


    The following other Packages are needed: ISDN, OPT_LCD
    Recommended: Imonc for windows 2.0.7c or later

    To enable OPT_SHOWTELNAME, just set the following variable accordingly:

    OPT_SHOWTELNAME='yes'  (default: OPT_SHOWTELNAME='no')

    Next, change isdn.txt, section OPT_TELMOND as follows:
    
    OPT_TELMOND='yes'                       #start telmond
    TELMOND_CMD_N='4'                       #no. of commands to be executed if call-in
    TELMOND_CMD_1='MSN1 * /usr/bin/nummer.sh %p %t'# If MSN1 is being called, display name
    TELMOND_CMD_2='MSN2 * /usr/bin/nummer.sh %p %t'# If MSN2 is being called, display name
    TELMOND_CMD_3='MSN3 * /usr/bin/nummer.sh %p %t'# If MSN3 is being called, display name
    TELMOND_CMD_4='MSN4 * /usr/bin/nummer.sh %p %t'# If MSN4 is being called, display name

    MSN1-MSN4 must be replaced with your own MSN! 

    If caller's id is transmitted when an MSN is called, the script checks, whether there is a
    corresponding name to this number in /etc/phonebook. If yes, this name is copied to the file
    /etc/lcd_text2.txt. With a matched configuration of OPT_LCD (messagetype 41), the name can 
    be displayed. LCD_VAR_TEXT_2 should be set to "no call" by default.
    If the number is not registered in /etc/phonebook, the number is displayed. If no caller-id
    is transmitted, "Nummer unbekannt" is displayed. (You can easily change this to "number unknown"
    in the script. If you do so with a windows-editor, don't forget to "DTOU" the file!)
    The time of the last call ist saved into /etc/lcd_text3.txt. It can be displayed using messagetype
    42.
    Normaly, the phonebook-file is empty. But you can fill the phonebook of imonc
    from Nico Wallmeier very easily. You can synchronize the phonebook-file with the imonc-phonebook 
    (Imonc Config > Calls > Phonebook: ->Router).
    If you do so, the correct names are displayed.
    

    Remark: I'm really no bash-expert. To be honest, this was my first script! Nor am I a
    native english-speaker. If somebody can do better - please do so. The script does, what I 
    expected it to do! At least on my machine ;-)! Any comments welcome! Have fun!
 
	Armin Thinnes

	History:
	release 1.0a	Version for Fli4L 2.1.x
	release 0.1d	Added time of last call (idea: Andreas Bohn) 
	release 0.1c	Added english documentation, revised german doc.
	release 0.1b	script optimized and changed docs. Thx to  Peter(OPT_COP)!
	release 0.1a	First release
