README.diversion 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. The isdn diversion services are a supporting module working together with
  2. the isdn4linux and the HiSax module for passive cards.
  3. Active cards, TAs and cards using a own or other driver than the HiSax
  4. module need to be adapted to the HL<->LL interface described in a separate
  5. document. The diversion services may be used with all cards supported by
  6. the HiSax driver.
  7. The diversion kernel interface and controlling tool divertctrl were written
  8. by Werner Cornelius (werner@isdn4linux.de or werner@titro.de) under the
  9. GNU General Public License.
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2 of the License, or
  13. (at your option) any later version.
  14. This program is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. GNU General Public License for more details.
  18. You should have received a copy of the GNU General Public License
  19. along with this program; if not, write to the Free Software
  20. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. Table of contents
  22. =================
  23. 1. Features of the i4l diversion services
  24. (Or what can the i4l diversion services do for me)
  25. 2. Required hard- and software
  26. 3. Compiling, installing and loading/unloading the module
  27. Tracing calling and diversion information
  28. 4. Tracing calling and diversion information
  29. 5. Format of the divert device ASCII output
  30. 1. Features of the i4l diversion services
  31. (Or what can the i4l diversion services do for me)
  32. The i4l diversion services offers call forwarding and logging normally
  33. only supported by isdn phones. Incoming calls may be diverted
  34. unconditionally (CFU), when not reachable (CFNR) or on busy condition
  35. (CFB).
  36. The diversions may be invoked statically in the providers exchange
  37. as normally done by isdn phones. In this case all incoming calls
  38. with a special (or all) service identifiers are forwarded if the
  39. forwarding reason is met. Activated static services may also be
  40. interrogated (queried).
  41. The i4l diversion services additionally offers a dynamic version of
  42. call forwarding which is not preprogrammed inside the providers exchange
  43. but dynamically activated by i4l.
  44. In this case all incoming calls are checked by rules that may be
  45. compared to the mechanism of ipfwadm or ipchains. If a given rule matches
  46. the checking process is finished and the rule matching will be applied
  47. to the call.
  48. The rules include primary and secondary service identifiers, called
  49. number and subaddress, callers number and subaddress and whether the rule
  50. matches to all filtered calls or only those when all B-channel resources
  51. are exhausted.
  52. Actions that may be invoked by a rule are ignore, proceed, reject,
  53. direct divert or delayed divert of a call.
  54. All incoming calls matching a rule except the ignore rule a reported and
  55. logged as ASCII via the proc filesystem (/proc/net/isdn/divert). If proceed
  56. is selected the call will be held in a proceeding state (without ringing)
  57. for a certain amount of time to let an external program or client decide
  58. how to handle the call.
  59. 2. Required hard- and software
  60. For using the i4l diversion services the isdn line must be of a EURO/DSS1
  61. type. Additionally the i4l services only work together with the HiSax
  62. driver for passive isdn cards. All HiSax supported cards may be used for
  63. the diversion purposes.
  64. The static diversion services require the provider having static services
  65. CFU, CFNR, CFB activated on an MSN-line. The static services may not be
  66. used on a point-to-point connection. Further the static services are only
  67. available in some countries (for example germany). Countries requiring the
  68. keypad protocol for activating static diversions (like the netherlands) are
  69. not supported but may use the tty devices for this purpose.
  70. The dynamic diversion services may be used in all countries if the provider
  71. enables the feature CF (call forwarding). This should work on both MSN- and
  72. point-to-point lines.
  73. To add and delete rules the additional divertctrl program is needed. This
  74. program is part of the isdn4kutils package.
  75. 3. Compiling, installing and loading/unloading the module
  76. Tracing calling and diversion information
  77. To compile the i4l code with diversion support you need to say yes to the
  78. DSS1 diversion services when selecting the i4l options in the kernel
  79. config (menuconfig or config).
  80. After having properly activated a make modules and make modules_install all
  81. required modules will be correctly installed in the needed modules dirs.
  82. As the diversion services are currently not included in the scripts of most
  83. standard distributions you will have to add a "insmod dss1_divert" after
  84. having loaded the global isdn module.
  85. The module can be loaded without any command line parameters.
  86. If the module is actually loaded and active may be checked with a
  87. "cat /proc/modules" or "ls /proc/net/isdn/divert". The divert file is
  88. dynamically created by the diversion module and removed when the module is
  89. unloaded.
  90. 4. Tracing calling and diversion information
  91. You also may put a "cat /proc/net/isdn/divert" in the background with the
  92. output redirected to a file. Then all actions of the module are logged.
  93. The divert file in the proc system may be opened more than once, so in
  94. conjunction with inetd and a small remote client on other machines inside
  95. your network incoming calls and reactions by the module may be shown on
  96. every listening machine.
  97. If a call is reported as proceeding an external program or client may
  98. specify during a certain amount of time (normally 4 to 10 seconds) what
  99. to do with that call.
  100. To unload the module all open files to the device in the proc system must
  101. be closed. Otherwise the module (and isdn.o) may not be unloaded.
  102. 5. Format of the divert device ASCII output
  103. To be done later