SHARE
TWEET

Untitled

a guest Jul 24th, 2019 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. iax.conf с сервера new_test:
  2. [general]
  3. bindport=4569
  4. autokill=yes
  5. disallow=all
  6. allow=ulaw
  7. jitterbuffer=yes
  8. maxjitterbuffer=500
  9. delayreject=yes
  10. iaxthreads=15
  11. iaxmaxthreads=50
  12.  
  13. register => new_test@192.168.0.79
  14.  
  15. [old_stable]
  16. type=friend
  17. qualify=yes
  18. host=dynamic
  19. nat=yes
  20. auth=md5
  21. trunk=yes
  22. username=old_stable
  23. secret=old_stable
  24. insecure=invite,port;Стоит от безысходности
  25. context=DLPN_WorkDialPlan
  26. deny=0.0.0.0/0.0.0.0
  27. permit=192.168.1.79/255.255.255.255
  28.  
  29.  
  30. А так пишу в диалплане:
  31. exten => _20XX,1,NoOp()
  32. exten => _20XX,n,Dial(IAX2/new_test:new_test@192.168.1.79/${EXTEN},60,tT)
  33. exten => _20XX,n,Hangup
  34.  
  35.  
  36.  
  37.  
  38.  
  39. Такие настройки на втором сервере old_stable: iax.conf:
  40. [general]
  41. bindport=4569
  42. autokill=yes
  43. disallow=all
  44. allow=ulaw
  45. jitterbuffer=yes
  46. delayreject=yes
  47. iaxthreads=15
  48. iaxmaxthreads=50
  49.  
  50. register => old_stable:old_stable@192.168.0.102
  51.  
  52. [new_test]
  53. type=friend
  54. qualify=yes
  55. host=dynamic
  56. trunk=yes
  57. nat=yes
  58. auth=md5
  59. username=new_test
  60. password=new_test
  61. insecure=invite,port;Стоит от безысходности
  62. context=Dial_outgoing_local
  63. deny=0.0.0.0/0.0.0.0
  64. permit=192.168.0.102/255.255.255.255
  65.  
  66. extensions.conf:
  67. exten => _104X,1,NoOp    
  68. exten => _104X,n,Dial(IAX2/old_stable:old_stable@192.168.0.102/${EXTEN},60,tT)
  69. exten => _104X,n,Hangup
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top