Advertisement
load-net

pjsip без авторизации

Apr 19th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. [system]
  2. type = system
  3. timer_t1 = 200
  4. timer_t2 = 1500
  5.  
  6. [global]
  7. ttype = global
  8. disable_multi_domain = yes
  9. ;debug = yes
  10. taskprocessor_overload_trigger = global
  11. unidentified_request_count=5
  12. unidentified_request_period=5
  13. unidentified_request_prune_interval=30
  14. endpoint_identifier_order=username,ip,anonymous
  15. canreinvite=no
  16. insecure=port,invite
  17. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  18. [transport-udp-nat]
  19. type=transport
  20. protocol=udp
  21. bind=0.0.0.0
  22. local_net=10.20.7.0/24
  23.  
  24. ;;;;;;;;kamailio;;;;;;;;;;;
  25.  
  26. [kamailio]
  27. type=endpoint
  28. transport=transport-udp-nat
  29. context=from_kamailio
  30. disallow=all
  31. allow=alaw
  32. allow=g722
  33. allow=ulaw
  34. aors=kamailio
  35. direct_media=no
  36. rtp_symmetric=no
  37. force_rport=no
  38. rewrite_contact=no
  39.  
  40. [kamailio]
  41. type =identify
  42. endpoint=kamailio
  43. match=10.20.7.122 ;(удален частный IP-адрес kamailio)
  44.  
  45. [kamailio]
  46. type=aor
  47. contact=sip:10.20.7.122:5060 ;(удален частный IP-адрес kamailio)
  48.  
  49. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  50. [endpoint-template](!)
  51. type = endpoint
  52. transport = transport-udp-nat
  53. context = from-internal
  54. dtmf_mode = rfc4733
  55. disallow = all
  56. allow = ulaw
  57. allow = alaw
  58.  
  59. [auth-template-userpass](!)
  60. type = auth
  61. auth_type = userpass;
  62.  
  63. [aor-template-single-reg](!)
  64. type = aor
  65. max_contacts = 1
  66.  
  67. ;;;;;;;;;;;users;;;;;;;;;;;;;;;;;;;;;
  68. [108](endpoint-template)
  69. auth = auth108
  70. aors = 108
  71. callerid = man 108;
  72.  
  73. [auth108](auth-template-userpass)
  74. username = 108
  75. password = 1JKHKJjj23
  76.  
  77. [108](aor-template-single-reg)
  78.  
  79. ;;;;;;;;;;;;;;;;109;;;;;;;;;;;;;;;;;;;;;
  80. [109](endpoint-template)
  81. auth = auth109
  82. aors = 109
  83. callerid = man 109;
  84.  
  85. [auth109](auth-template-userpass)
  86. username = 109
  87. password = 123dsvHGuill
  88.  
  89. [109](aor-template-single-reg)
  90.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement