README 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. SQlite Module
  2. Timo Teräs
  3. Edited by
  4. Timo Teräs
  5. Copyright © 2011 Timo Teräs
  6. __________________________________________________________________
  7. Table of Contents
  8. 1. Admin Guide
  9. 1. Overview
  10. 2. Dependencies
  11. 2.1. Kamailio Modules
  12. 2.2. External Libraries or Applications
  13. 3. Parameters
  14. 4. Functions
  15. 5. Usage
  16. List of Examples
  17. 1.1. loading the module usage
  18. 1.2. db_url module parameter usage
  19. 1.3. DBURL define usage
  20. Chapter 1. Admin Guide
  21. Table of Contents
  22. 1. Overview
  23. 2. Dependencies
  24. 2.1. Kamailio Modules
  25. 2.2. External Libraries or Applications
  26. 3. Parameters
  27. 4. Functions
  28. 5. Usage
  29. 1. Overview
  30. The module is an implementation of the internal DB API v1 connector for
  31. SQlite 3 file.
  32. 2. Dependencies
  33. 2.1. Kamailio Modules
  34. 2.2. External Libraries or Applications
  35. 2.1. Kamailio Modules
  36. The following modules must be loaded before this module:
  37. * No dependencies on other Kamailio modules.
  38. 2.2. External Libraries or Applications
  39. The following libraries or applications must be installed before
  40. running Kamailio with this module loaded:
  41. * SQlite 3 library - e.g., libsqlite3-0
  42. * SQlite 3 devel library - to compile the module e.g. libsqlite3-dev
  43. * SQlite 3 utilities - for kamdbctl e.g. sqlite3
  44. 3. Parameters
  45. NONE
  46. 4. Functions
  47. NONE
  48. 5. Usage
  49. To use the module, first you have to load it in the Kamailio
  50. configuration file.
  51. Example 1.1. loading the module usage
  52. ...
  53. loadmodule "db_sqlite.so"
  54. ...
  55. Then set the db_url (or similar) parameter of modules that have to use
  56. the SQLite database to driver part 'sqlite://', followed by the path to
  57. database file. For example:
  58. Example 1.2. db_url module parameter usage
  59. ...
  60. modparam("auth_db", "db_url", "sqlite:///etc/kamailio/kamailio.db")
  61. ...
  62. In the default config file, defined token DBURL can be updated like:
  63. Example 1.3. DBURL define usage
  64. ...
  65. #!define DBURL "sqlite:///etc/kamailio/kamailio.db"
  66. ...