pjsip.conf 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. ;================================ TRANSPORTS ==
  2. ; Our primary transport definition for UDP communication behind NAT.
  3. [transport-udp-nat]
  4. type = transport
  5. protocol = udp
  6. bind = 0.0.0.0
  7. ; NAT settings
  8. ;local_net = 10.0.0.0/8
  9. ;external_media_address = 203.0.113.1
  10. ;external_signaling_address = 203.0.113.1
  11. ;================================ CONFIG FOR SIP ITSP ==
  12. ; Registration for Digium Cloud Services Account
  13. [dcs-trunk]
  14. type = registration
  15. transport = transport-udp-nat
  16. outbound_auth = dcs-trunk-auth
  17. server_uri = sip:sip.digiumcloud.net
  18. ;client_uri = sip:myaccountID@sip.digiumcloud.net
  19. retry_interval = 60
  20. [dcs-trunk-auth]
  21. type = auth
  22. auth_type = userpass
  23. ;username = myaccountID
  24. ;password = ASTRONGPASSWORD
  25. ; Endpoint for Digium Cloud Services account
  26. [dcs-endpoint]
  27. type=endpoint
  28. transport = transport-udp-nat
  29. context = DCS-Incoming
  30. allow = !all,g722,ulaw
  31. outbound_auth = dcs-auth
  32. aors = dcs-aor
  33. direct_media = no
  34. from_domain = sip.digiumcloud.net
  35. [dcs-auth]
  36. type = auth
  37. auth_type = userpass
  38. ;username = myaccountID
  39. ;password = ASTRONGPASSWORD
  40. realm = sip.digiumcloud.net
  41. [dcs-aor]
  42. type = aor
  43. contact = sip:sip.digiumcloud.net
  44. [dcs-identify]
  45. type=identify
  46. endpoint = dcs-endpoint
  47. ;match = 8.17.32.12
  48. ;================================ ENDPOINT TEMPLATES ==
  49. ; Our primary endpoint template for internal desk phones.
  50. [endpoint-internal-d70](!)
  51. type = endpoint
  52. transport = transport-udp-nat
  53. context = Long-Distance
  54. allow = !all,g722,ulaw
  55. direct_media = no
  56. trust_id_outbound = yes
  57. device_state_busy_at = 1
  58. dtmf_mode = rfc4733
  59. [auth-userpass](!)
  60. type = auth
  61. auth_type = userpass
  62. [aor-single-reg](!)
  63. type = aor
  64. max_contacts = 1
  65. ;================================ ENDPOINT DEFINITIONS ==
  66. ; Below are the definitions for all staff devices, listed by department.
  67. ;
  68. ; Super Awesome Company uses the MAC address of their devices for the auth
  69. ; username and the extension number for the name of the endpoint, auth and
  70. ; aor objects. If your phones must use the same user ID and auth name then
  71. ; you will need to customize the endpoints accordingly.
  72. ;================================ MANAGEMENT ==
  73. ;Lindsey Freddie
  74. ;President for Life
  75. [1107](endpoint-internal-d70)
  76. auth = 1107
  77. aors = 1107
  78. callerid = Lindsey Freddie <1107>
  79. [1107](auth-userpass)
  80. password = 4webrEtHupHewu4
  81. username = 0019159BF771
  82. [1107](aor-single-reg)
  83. mailboxes = 1107@example
  84. ;================================
  85. ;Temple Morgan
  86. ;Life Assistant to the President for Life
  87. [1111](endpoint-internal-d70)
  88. auth = 1111
  89. aors = 1111
  90. callerid = Temple Morgan <1111>
  91. [1111](auth-userpass)
  92. password = be4eberEkUsUMaF
  93. username = 000FD3012445
  94. [1111](aor-single-reg)
  95. mailboxes = 1111@example
  96. ;================================
  97. ;Terry Jules
  98. ;Director of Sales
  99. [1109](endpoint-internal-d70)
  100. auth = 1109
  101. aors = 1109
  102. callerid = Terry Jules <1109>
  103. [1109](auth-userpass)
  104. password = sPeFaChe7ruxarE
  105. username = 00094558B29E
  106. [1109](aor-single-reg)
  107. mailboxes = 1109@example
  108. ;================================
  109. ;Maria Berny
  110. ;Director of Customer Experience
  111. [1101](endpoint-internal-d70)
  112. auth = 1101
  113. aors = 1101
  114. callerid = Maria Berny <1101>
  115. [1101](auth-userpass)
  116. password = SW2fur7facrarac
  117. username = 3605657CFB45
  118. [1101](aor-single-reg)
  119. mailboxes = 1101@example
  120. ;================================
  121. ;Penelope Bronte
  122. ;Director of Engineering
  123. [1103](endpoint-internal-d70)
  124. auth = 1103
  125. aors = 1103
  126. callerid = Penelope Bronte <1103>
  127. [1103](auth-userpass)
  128. password = zutAnacHe8ewuWr
  129. username = D5F646797302
  130. [1103](aor-single-reg)
  131. mailboxes = 103@example
  132. ;================================
  133. ;Aaron Courtney
  134. ;Accounting and Records
  135. [1106](endpoint-internal-d70)
  136. auth = 1106
  137. aors = 1106
  138. callerid = Aaron Courtney <1106>
  139. [1106](auth-userpass)
  140. password = tecrUBUs3u7uTab
  141. username = EAFB2F4319C4
  142. [1106](aor-single-reg)
  143. mailboxes = 1106@example
  144. ;================================ SALES STAFF ==
  145. ;================================
  146. ;Garnet Claude
  147. ;Sales Associate
  148. [1105](endpoint-internal-d70)
  149. auth = 1105
  150. aors = 1105
  151. callerid = Garnet Claude <1105>
  152. [1105](auth-userpass)
  153. password = Q7rAphatRusteSW
  154. username = 5187E6D311BE
  155. [1105](aor-single-reg)
  156. mailboxes = 1105@example
  157. ;================================
  158. ;Franny Ocean
  159. ;Sales Associate
  160. [1112](endpoint-internal-d70)
  161. auth = 1112
  162. aors = 1112
  163. callerid = Franny Ocean <1112>
  164. [1112](auth-userpass)
  165. password = nefReSTAq8phaph
  166. username = ACC6BC73A990
  167. [1112](aor-single-reg)
  168. mailboxes = 1112@example
  169. ;================================ CUSTOMER SERVICE STAFF =
  170. ;================================
  171. ;Dusty Williams
  172. ;Customer Advocate
  173. [1115](endpoint-internal-d70)
  174. auth = 1115
  175. aors = 1115
  176. callerid = Dusty Williams <1115>
  177. [1115](auth-userpass)
  178. password = cEBraN2trezaqEt
  179. username = 2C61DA1AA74B
  180. [1115](aor-single-reg)
  181. mailboxes = 1115@example
  182. ;================================
  183. ;Tommie Briar
  184. ;Customer Advocate
  185. [1102](endpoint-internal-d70)
  186. auth = 1102
  187. aors = 1102
  188. callerid = Tommie Briar <1102>
  189. [1102](auth-userpass)
  190. password = 6EBu8egespUwuth
  191. username = 558EF2645DC7
  192. [1102](aor-single-reg)
  193. mailboxes = 1102@example
  194. ;================================ ENGINEERING STAFF ==
  195. ;================================
  196. ;Hollis Justy
  197. ;Software Engineer
  198. [1110](endpoint-internal-d70)
  199. auth = 1110
  200. aors = 1110
  201. callerid = Hollis Justy <1110>
  202. [1110](auth-userpass)
  203. password = vust6spuFereThA
  204. username = D3D55712AED0
  205. [1110](aor-single-reg)
  206. mailboxes = 1110@example
  207. ;================================
  208. ;Richard Casey
  209. ;Software Engineer
  210. [1104](endpoint-internal-d70)
  211. auth = 1104
  212. aors = 1104
  213. callerid = Richard Casey <1104>
  214. [1104](auth-userpass)
  215. password = fU8puzuzEpRuSTa
  216. username = 13B29A457ED5
  217. [1104](aor-single-reg)
  218. mailboxes = 1104@example
  219. ;================================
  220. ;Sal Smith
  221. ;Software Engineer
  222. [1114](endpoint-internal-d70)
  223. auth = 1114
  224. aors = 1114
  225. callerid = Sal Smith <1114>
  226. [1114](auth-userpass)
  227. password = XapR4munEcadrub
  228. username = C369192006EA
  229. [1114](aor-single-reg)
  230. mailboxes = 1114@example
  231. ;================================
  232. ;Laverne Roberts
  233. ;Software Engineer
  234. [1113](endpoint-internal-d70)
  235. auth = 1113
  236. aors = 1113
  237. callerid = Laverne Roberts <1113>
  238. [1113](auth-userpass)
  239. password = mu8aPr4daJAQaDE
  240. username = B07FF579AAC8
  241. [1113](aor-single-reg)
  242. mailboxes = 1113@example
  243. ;================================
  244. ;Colby Hildred
  245. ;IT Systems
  246. [1108](endpoint-internal-d70)
  247. auth = 1108
  248. aors = 1108
  249. callerid = Colby Hildred <1108>
  250. [1108](auth-userpass)
  251. password = KAthufrudE6uyAs
  252. username = DB589C0875AB
  253. [1108](aor-single-reg)
  254. mailboxes = 1108@example