dbsep.conf.sample 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Configuration file for dbsep.cgi
  3. #
  4. # The purpose of this file is to provide realtime access to a database,
  5. # possibly through ODBC, without needing to load the ODBC drivers into
  6. # Asterisk, since there are several backend drivers which are rather
  7. # buggy.
  8. #
  9. # We accomplish this separation by using the res_config_curl realtime
  10. # driver to connect to a server running dbsep.cgi (or another, which
  11. # implements the same protocol).
  12. #
  13. # This file contains the information necessary to configure dbsep.cgi.
  14. #
  15. #
  16. # Once installed to a web server, you'll need to preload func_curl.so
  17. # and res_config_curl.so in modules.conf and configure extconfig.conf:
  18. #
  19. # voicemail => curl,http://server/path/to/dbsep.cgi/voicemail
  20. # sippeers => curl,http://server/path/to/dbsep.cgi/sipfriends
  21. # sipusers => curl,http://server/path/to/dbsep.cgi/sipfriends
  22. #
  23. # The Data Source Name, as specified by the Perl DBI module.
  24. # Typically, this will be along the lines of 'DBI:mysql:astdbname[:dbhostname]' or 'DBI:Pg:dbname=astdbname;hostname=dbhostname'
  25. dsn=somedsn
  26. # Connected database user
  27. dbuser=someuser
  28. # And its password
  29. dbpass=password
  30. # For most databases, this is fine. Set to 'no' for Sybase or MS SQL Server.
  31. backslash_is_escape=yes