osp.conf.sample 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ;
  2. ; Open Settlement Protocol Sample Configuration File
  3. ;
  4. ; This file contains configuration of OSP server providers that are used by the
  5. ; Asterisk OSP module. The section "general" is reserved for global options.
  6. ; All other sections describe specific OSP Providers. The provider "default"
  7. ; is used when no provider is otherwise specified.
  8. ;
  9. ; The "servicepoint" and "source" parameters must be configured. For most
  10. ; implementations the other parameters in this file can be left unchanged.
  11. ;
  12. [general]
  13. ;
  14. ; Enable cryptographic acceleration hardware.
  15. ;
  16. ;accelerate=no
  17. ;
  18. ; Defines the status of tokens that Asterisk will validate.
  19. ; 0 - signed tokens only
  20. ; 1 - unsigned tokens only
  21. ; 2 - both signed and unsigned
  22. ; The default value is 0, i.e. the Asterisk will only validate signed tokens.
  23. ;
  24. ;tokenformat=0
  25. ;
  26. ;[default]
  27. ;
  28. ; List all service points (OSP servers) for this provider.
  29. ; Use either domain name or IP address. Most OSP servers use port 1080.
  30. ;
  31. ;servicepoint=http://osptestserver.transnexus.com:1080/osp
  32. ;
  33. ; Define the "source" device for requesting OSP authorization.
  34. ; This value is usually the domain name or IP address of the the Asterisk server.
  35. ;
  36. ;source=domain name or [IP address in brackets]
  37. ;
  38. ; Define path and file name of crypto files.
  39. ; The default path for crypto file is /var/lib/asterisk/keys. If no path is
  40. ; defined, crypto files will in /var/lib/asterisk/keys directory.
  41. ;
  42. ; Specify the private key file name.
  43. ; If this parameter is unspecified or not present, the default name will be the
  44. ; osp.conf section name followed by "-privatekey.pem" (for example:
  45. ; default-privatekey.pem)
  46. ;
  47. ;privatekey=pkey.pem
  48. ;
  49. ; Specify the local certificate file.
  50. ; If this parameter is unspecified or not present, the default name will be the
  51. ; osp.conf section name followed by "- localcert.pem " (for example:
  52. ; default-localcert.pem)
  53. ;
  54. ;localcert=localcert.pem
  55. ;
  56. ; Specify one or more Certificate Authority key file names. If none are listed,
  57. ; a single Certificate Authority key file name is added with the default name of
  58. ; the osp.conf section name followed by "-cacert_0.pem " (for example:
  59. ; default-cacert_0.pem)
  60. ;
  61. ;cacert=cacert_0.pem
  62. ;
  63. ; Configure parameters for OSP communication between Asterisk OSP client and OSP
  64. ; servers.
  65. ;
  66. ; maxconnections: Max number of simultaneous connections to the provider OSP
  67. ; server (default=20)
  68. ; retrydelay: Extra delay between retries (default=0)
  69. ; retrylimit: Max number of retries before giving up (default=2)
  70. ; timeout: Timeout for response in milliseconds (default=500)
  71. ;
  72. ;maxconnections=20
  73. ;retrydelay=0
  74. ;retrylimit=2
  75. ;timeout=500
  76. ;
  77. ; Set the authentication policy.
  78. ; 0 - NO - Accept all calls.
  79. ; 1 - YES - Accept calls with valid token or no token. Block calls with
  80. ; invalid token.
  81. ; 2 - EXCLUSIVE - Accept calls with valid token. Block calls with invalid token
  82. ; or no token.
  83. ; Default is 1,
  84. ;
  85. ;authpolicy=1
  86. ;
  87. ; Set the default destination protocol. The OSP module supports SIP, H323, and
  88. ; IAX protocols. The default protocol is set to SIP.
  89. ;
  90. ;defaultprotocol=SIP