Guest User

pjsip.conf

a guest
Jun 15th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. ;--
  2. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3. Non mapped elements start
  4. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  5.  
  6. [sipML5]
  7. dtmf_mode = auto ; did not fully map - set to none
  8.  
  9. [zoiper]
  10. dtmf_mode = auto ; did not fully map - set to none
  11.  
  12. [general]
  13. udpenable = yes
  14.  
  15. [siptrunk]
  16. qualify = yes
  17.  
  18. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. Non mapped elements end
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. --;
  22.  
  23.  
  24. [global]
  25. type = global
  26. debug = no
  27.  
  28. [transport-udp]
  29. type = transport
  30. protocol = udp
  31. bind = 0.0.0.0:5060
  32.  
  33. [transport-tls]
  34. type = transport
  35. protocol = tls
  36. bind = 0.0.0.0:8089
  37. cert_file = /etc/asterisk/keys/asterisk.pem
  38. cipher = ALL
  39. ca_list_file = /etc/asterisk/keys/ca.crt
  40. method = tlsv1
  41.  
  42. [bandwidth-trunk](!)
  43. type = endpoint
  44. context = bandwidth-incoming
  45. dtmf_mode = rfc4733
  46. disallow = all
  47. allow = ulaw
  48.  
  49. [twilio-trunk](!)
  50. type = endpoint
  51. context = twilio-incoming
  52. dtmf_mode = rfc4733
  53. disallow = all
  54. allow = ulaw
  55.  
  56. [bandwidth]
  57. type = aor
  58. contact = sip:216.82.224.202
  59.  
  60. [bandwidth](bandwidth-trunk)
  61. ;type = endpoint
  62. ;disallow = all
  63. ;allow = ulaw
  64. aors = bandwidth
  65.  
  66. [bandwidth]
  67. type=identify
  68. endpoint=bandwidth
  69. match=216.82.224.202
  70.  
  71. [twilio0]
  72. type = aor
  73. contact = sip:test-calls.pstn.twilio.com
  74.  
  75. [twilio0](twilio-trunk)
  76. ;type = endpoint
  77. ;disallow = all
  78. ;allow = ulaw
  79. aors = twilio0
  80.  
  81. [twilio0]
  82. type=identify
  83. endpoint=twilio0
  84. match=54.172.60.0
  85. match=54.172.60.1
  86. match=54.172.60.2
  87. match=54.172.60.3
  88.  
  89. [sipML5]
  90. type = aor
  91. max_contacts = 1
  92.  
  93. [sipML5]
  94. type = auth
  95. username = sipML5
  96. password = test123
  97.  
  98. [sipML5]
  99. type = endpoint
  100. context = outgoing
  101. dtmf_mode = none
  102. disallow = all
  103. allow = ulaw
  104. ice_support = yes
  105. direct_media = no
  106. use_avpf = yes
  107. auth = sipML5
  108. outbound_auth = sipML5
  109. media_encryption = dtls
  110. dtls_verify = fingerprint
  111. dtls_cert_file = /etc/asterisk/keys/asterisk.pem
  112. dtls_ca_file = /etc/asterisk/keys/ca.crt
  113. dtls_setup = actpass
  114. aors = sipML5
  115.  
  116. [zoiper]
  117. type = aor
  118. max_contacts = 1
  119.  
  120. [zoiper]
  121. type = auth
  122. username = zoiper
  123. password = test123
  124.  
  125. [zoiper]
  126. type = endpoint
  127. context = outgoing
  128. dtmf_mode = none
  129. disallow = all
  130. allow = ulaw
  131. auth = zoiper
  132. outbound_auth = zoiper
  133. aors = zoiper
Add Comment
Please, Sign In to add comment