This file has the format described in isdnformat(5). It must be owned by root, and only root may have write access. Every user can create his private telephone book as ~/.isdn with the same file format.


Like in isdn.conf, this file has an optional [VARIABLES] section. All variable names must be uppercase. Warning: variables in callerid.conf will override variables in isdn.conf, and variables in ~/.isdn will override variables in both files. First all variables are read, then they are substituted, so a variable defined in ~/.isdn can be used in isdn.conf. This might be a security hole. However, if programs are to be run as root, these files (and the program) cannot be writable for non-root users.

Using variables: if a reference to a non existing variable is used, isdnrep and isdnlog will give warning messages, and use the variable name (e.g if $FRED isn't set, isdnlog will use "$FRED"). The dollar sign can be backslashed if a real dollar sign is needed instead of variable substitution (e.g. \$PATH will be "$PATH").


In [NUMBER] sections, you can supply information for the outer world, in [MSN] sections; you can supply information about your msns. The format is the same:


Set the telephone number. This should be your msn or the telephone number with area code (with or without areprefix, countrycode and countryprefix)


Service indicator. Isdnlog knows these service indicators:

1   speech (telephone, fax g3, modem etc.)
2   restricted digital information
3   unrestricted digital information with tones/announcements
4   video
7   unrestricted digital information (hdlc, x.75 etc.)


Supply a name as alias (e.g. ALIAS=Fred's Number)


Only useful with remote numbers: billing zone for connections to this number:

0   internal connection in your s0 bus (no charge)
1   city area
2   region 50
3   region 200
4   far region
5   the same as 1


Isdn network interface. This information is required with the "-hx" / hangup="value" option.


You can define a subsection here. The whole section is ignored unless you gave the "-S" / start=yes option. Each subsection should have the name [FLAG]. It may hold these values:


Combine these flags (with or without the pipe "|" char; with is preferred) to get the combination you want:

Part 1: Incoming and Outgoing


Incoming call


Outgoing call

Part 2: Signals from isdn system


Connect (can be used with interval, see below)






Ring (can be used with interval, see below)


AOCD (advice of charge signal)



Part 3: Modifiers


Start the program again and again every time it terminates.


Start the program only once within a interval. Without this, several instances of a program can run in parallel. (Interval required.)


Kill program at the end of the interval.


Isdnlog will not run programs as root, and will switch to a different user id for security. You must give the name or uid of the user isdnlog has to use here.


Isdnlog will not run programs as group root, and will switch to a different group id for security. You must give the name or gid of the groups isdnlog has to use here.


Restrict this flag to a special time. Pleas read isdntime(5).


With connect (C) or ring (R) flag you can specify an interval, so isdnlog will start the program after every interval. The interval is in seconds and should be at least 2 seconds. If the flags do not include C or R, this option is ignored.


The program you want to start, with the required arguments. You may use the following special tokens:


flags that caused execution, e.g. "IR", "OC". There are always exactly two characters.


Caller number (complete with area code).


Called number (complete with area code).


Time the connection started. Example:

"Wed May 28 23:07:44 1997".

Contains "?" if there is no connection yet (e.g. still at RING phase).


Duration of connection up to now (in seconds).


Time the connection ended. Same format as \$4.


Number of input bytes.


Number of output bytes.


Input bytes per second.


Output bytes per second.


Service indicator.




Caller country code.


Called country code.


Caller area code.


Called area code.


Caller town (derived from area code).


Called town


Caller alias.


Called alias.

Note: within a string you must use \${1} \${2} ...



This file.


Per user telephone book.

RELATED TO callerid.conf…


This manual page was written by Andreas Jellinghaus <[email protected]>, for Debian GNU/Linux and isdn4linux.