Advertisement
load-net

pjsiptrunk_с регистрацией

Mar 14th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1.  
  2. ;;делается на сервере с ip 10.20.7.103
  3.  
  4. ;;;;;;pjsip.aor.conf
  5. [priem]
  6. type=aor
  7. qualify_frequency=60
  8. max_contacts=1
  9.  
  10. ;;;;;pjsip.auth.conf
  11. [priem]
  12. type=auth
  13. auth_type=userpass
  14. password=password123
  15. username=priem
  16.  
  17. ;;;;;;pjsip.endpoint.conf
  18. [priem]
  19. type=endpoint
  20. transport=transport-udp-nat
  21. context=from-internal
  22. disallow=all
  23. allow=ulaw,alaw,gsm,g726,g722
  24. aors=priem
  25. language=ru
  26. outbound_auth=priem
  27. auth=priem
  28. from_domain=10.20.7.103
  29. rtp_symmetric=yes
  30. dtmf_mode=auto
  31.  
  32.  
  33. ;;; Делали на 103
  34.  
  35.  
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  38. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  39. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  40. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  41.  
  42.  
  43. ;;;делается на сервере с ip 10.20.7.117
  44.  
  45. ;;;;;pjsip.aor.conf
  46. [dacha]
  47. type=aor
  48. qualify_frequency=3600
  49. contact=sip:10.20.7.103
  50.  
  51. ;;;;;;pjsip.auth.conf
  52. [dacha]
  53. type=auth
  54. auth_type=userpass
  55. password=password123
  56. username=priem
  57.  
  58. ;;;;;pjsip.endpoint.con
  59. [dacha]
  60. type=endpoint
  61. transport=transport-udp-nat
  62. context=from-internal
  63. disallow=all
  64. allow=ulaw,alaw
  65. aors=dacha
  66. send_connected_line=false
  67. language=ru
  68. outbound_auth=dacha
  69. from_domain=10.20.7.103
  70. from_user=priem
  71. contact_user=priem
  72. user_eq_phone=no
  73. rtp_symmetric=yes
  74. dtmf_mode=auto
  75.  
  76.  
  77. ;;;;;pjsip.identify.conf
  78. [dacha]
  79. type=identify
  80. endpoint=dacha
  81. match=10.20.7.103
  82.  
  83. ;;;;;;pjsip.registration.conf
  84. [dacha]
  85. type=registration
  86. transport=transport-udp-nat
  87. outbound_auth=dacha
  88. retry_interval=60
  89. fatal_retry_interval=30
  90. forbidden_retry_interval=30
  91. max_retries=10000
  92. expiration=60
  93. line=yes
  94. endpoint=dacha
  95. auth_rejection_permanent=no
  96. contact_user=priem
  97. server_uri=sip:10.20.7.103
  98. client_uri=sip:[email protected]
  99.  
  100.  
  101.  
  102.  
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement