pjsip_wizard.conf.sample 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. ; PJSIP Wizard Configuration Samples and Quick Reference
  2. ;
  3. ; This file has several very basic configuration examples, to serve as a quick
  4. ; reference to jog your memory when you need to write up a new configuration.
  5. ; It is not intended to teach PJSIP configuration or serve as an exhaustive
  6. ; reference of options and potential scenarios.
  7. ;
  8. ; This file has two main sections.
  9. ; First, manually written examples to serve as a handy reference.
  10. ; Second, a list of all possible PJSIP config options by section. This is
  11. ; pulled from the XML config help. It only shows the synopsis for every item.
  12. ; If you want to see more detail please check the documentation sources
  13. ; mentioned at the top of this file.
  14. ; ============================================================================
  15. ; NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  16. ;
  17. ; This file does not maintain the complete option documentation.
  18. ; ============================================================================
  19. ; Documentation
  20. ;
  21. ; The official documentation is at http://wiki.asterisk.org
  22. ; You can read the XML configuration help via Asterisk command line with
  23. ; "config show help res_pjsip_config_wizard", then you can drill down through
  24. ; the various sections and their options.
  25. ;
  26. ;============EXAMPLE WIZARD CONFIGURATION FOR A PHONE=======================
  27. ; This config would create an endpoint, aor with dynamic contact, inbound
  28. ; auth, a phoneprov object and a dialplan hint for extension 1000.
  29. ;[myphone]
  30. ;type = wizard
  31. ;accepts_auth = yes
  32. ;accepts_registrations = yes
  33. ;has_phoneprov = yes
  34. ;transport = ipv4
  35. ;has_hint = yes
  36. ;hint_exten = 1000
  37. ;inbound_auth/username = testname
  38. ;inbound_auth/password = test password
  39. ;endpoint/allow = ulaw
  40. ;endpoint/context = default
  41. ;phoneprov/MAC = 001122aa4455
  42. ;phoneprov/PROFILE = profile1
  43. ;============EXAMPLE WIZARD CONFIGURATION FOR AN ITSP TRUNK=================
  44. ; This ITSP has 2 servers available and requires registration.
  45. ; This config would create an endpoint, an aor with 2 static contacts, an
  46. ; outbound auth, an identify with 2 matches, and 2 registrations.
  47. ;[mytrunk]
  48. ;type = wizard
  49. ;sends_auth = yes
  50. ;sends_registrations = yes
  51. ;transport = ipv4
  52. ;remote_hosts = sip1.myitsp.com:5060,sip2.myitsp.com:5060
  53. ;outbound_auth/username = testname
  54. ;outbound_auth/password = test password
  55. ;endpoint/allow = ulaw
  56. ;endpoint/context = default
  57. ;========================WIZARD SECTION OPTIONS===============================
  58. ;[wizard]
  59. ; SYNOPSIS: Provides configuration wizard for common scenarios.
  60. ;sends_auth= ; Will create an outbound auth object for the endpoint and
  61. ; registration.
  62. ; If yes, outbound/username must be specified.
  63. ; (default = "no")
  64. ;accepts_auth= ; Will create an inbound auth object for the endpoint.
  65. ; If yes, inbound/username must be specified.
  66. ; (default = "no")
  67. ;sends_registrations= ; Will create an outbound registration object and an
  68. ; identify match for each host in remote_hosts (which
  69. ; must be specified).
  70. ; sends_auth must also be specified.
  71. ; (default: "no")
  72. ;sends_line_with_registrations= ; Setting this to true will cause the wizard to
  73. ; skip the creation of an identify object to match
  74. ; incoming requests to the endpoint and instead add the
  75. ; line and endpoint parameters to the outbound
  76. ; registration object.
  77. ; (default: "no")
  78. ;accepts_registrations= ; Will create an aor with dynamic contacts which will
  79. ; accept registrations.
  80. ; accepts_auth must also be specified.
  81. ; (default: "no")
  82. ;remote_hosts= ; A comma separated list of remote hosts in the form of
  83. ; <ipaddress | hostname>[:port] [,<ipaddress | hostname>[:port] ] ...
  84. ; If specified, a static contact for each host will be created
  85. ; in the aor. If accepts_registrations is no, an identify
  86. ; object is also created with a match line for each remote host.
  87. ; If an aor/contact or match/identify is explicitly supplied,
  88. ; remote_hosts will not be used to automatically create contacts
  89. ; or matches respectively.
  90. ; (default: "")
  91. ;outbound_proxy= ; Setting this is a shortcut for setting
  92. ; endpoint/outbound_proxy
  93. ; aor/outbound_proxy
  94. ; registration/outbound_proxy
  95. ;transport= ; The transport to use for the endpoint and registrations
  96. ; (default: the pjsip default)
  97. ;server_uri_pattern= ; The pattern used to construct the registration
  98. ; server_uri. The replaceable parameter ${REMOTE_HOST} isa
  99. ; available for use.
  100. ; (default: "sip:${REMOTE_HOST}")
  101. ;client_uri_pattern= ; The pattern used to construct the registration client_uri.
  102. ; The replaceable parameters ${REMOTE_HOST} and ${USERNAME}
  103. ; are available for use.
  104. ; (default: "sip:${USERNAME}@${REMOTE_HOST}")
  105. ;contact_pattern= ; The pattern used to construct the aor contact.
  106. ; The replaceable parameter ${REMOTE_HOST} is available
  107. ; for use.
  108. ; (default: "sip:${REMOTE_HOST}")
  109. ;has_phoneprov= ; Will create a phoneprov object.
  110. ; If yes, phoneprov/MAC must be specified.
  111. ; (default: "no")
  112. ;has_hint= ; Create hint and optionally a default application.
  113. ; (default: "no")
  114. ;hint_context ; Any hints created for this wizard will be placed in this
  115. ; context.
  116. ; (default: endpoint/context)
  117. ;hint_exten ; If specified, a PJSIP/<wizard_id> hint will be created
  118. ; for this extension in 'hint_context'.
  119. ; context.
  120. ; (default: none)
  121. ;hint_application ; If specified, an extension will be placed in 'hint_context'
  122. ; at priority 1 that calls this application. Could be any
  123. ; valid dialplan expression like
  124. ; "Gosub(stdexten,${EXTEN},1(${HINT}))"
  125. ; (default: "Dial(${HINT})")
  126. ;endpoint/<param> ; Any parameters to be passed directly to and validated
  127. ;aor/<param> ; by their respective objects.
  128. ;inbound_auth/<param>
  129. ;outbound_auth/<param>
  130. ;identify/<param>
  131. ;registration/<param>
  132. ;phoneprov/<param>
  133. ;type= ; Must be of type wizard (default: "")