Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pjsip.conf:
  2. [simpletrans]
  3. type=transport
  4. protocol=udp
  5. bind=0.0.0.0
  6. local_net = 172.31.17.106/20 #Internal IP of Server
  7. external_media_address = 54.214.106.62 #External Address of Server
  8. external_signaling_address = 54.214.106.62
  9.  
  10. pjsip_wizard.conf:
  11. [my-itsp]
  12. type = wizard
  13. transport = simpletrans
  14. sends_auth = yes
  15. sends_registrations = yes
  16. remote_hosts = itsp.host
  17. endpoint/allow = ulaw
  18. outbound_auth/username = username
  19. outbound_auth/password = password
  20. endpoint/context = default
  21. endpoint/direct_media = no
  22. aor/qualify_frequency = 15
  23. hint_context = Hints
  24. hint_application = Dial(${HINT})
  25.  
  26.  
  27. [user_defaults](!)
  28. type = wizard
  29. transport = simpletrans
  30. accepts_registrations = yes
  31. sends_registrations = no
  32. accepts_auth = yes
  33. sends_auth = no
  34. has_hint = yes
  35. hint_context = internal
  36. hint_application = Dial(${HINT})
  37. endpoint/context = internal
  38. endpoint/allow_subscribe = yes
  39. endpoint/allow = !all,ulaw,gsm,g722
  40. endpoint/direct_media = no
  41. endpoint/force_rport = yes
  42. endpoint/disable_direct_media_on_nat = yes
  43. endpoint/direct_media_method = invite
  44. endpoint/ice_support = yes
  45. endpoint/moh_suggest = default
  46. endpoint/send_rpid = yes
  47. endpoint/rewrite_contact = yes
  48. endpoint/rtp_symmetric = yes
  49. endpoint/send_pai = yes
  50. endpoint/allow_transfer = yes
  51. endpoint/trust_id_inbound = yes
  52. endpoint/device_state_busy_at = 1
  53. endpoint/trust_id_outbound = yes
  54. endpoint/send_diversion = yes
  55. aor/qualify_frequency = 30
  56. aor/authenticate_qualify = no
  57. aor/max_contacts = 1
  58. aor/remove_existing = yes
  59. aor/minimum_expiration = 30
  60. aor/support_path = yes
  61. phoneprov/PROFILE = profile1
  62.  
  63.  
  64. [1000](user_defaults)
  65. hint_exten = 1000
  66. inbound_auth/username = bob
  67. inbound_auth/password = password
  68.  
  69. Console output for call:
  70. == Setting global variable 'SIPDOMAIN' to '54.214.106.62'
  71. -- Executing [9@internal:1] Answer("PJSIP/1000-00000001", "") in new stack
  72. > 0x7fc4102fadd0 -- Strict RTP learning after remote address set to: 192.168.254.148:40024
  73. -- Executing [9@internal:2] Echo("PJSIP/1000-00000001", "") in new stack
  74. == Spawn extension (internal, 9, 2) exited non-zero on 'PJSIP/1000-00000001'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement