Advertisement
tuxmartin

Asterisk video call

Nov 12th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. I have allowed TCP and UDP ports 5060, 10000-11000.
  2.  
  3. root@voip:/etc/asterisk# lsb_release -a
  4. No LSB modules are available.
  5. Distributor ID: Debian
  6. Description: Debian GNU/Linux testing (stretch)
  7. Release: testing
  8. Codename: stretch
  9. root@voip:/etc/asterisk# uname -a
  10. Linux voip 4.2.0-1-amd64 #1 SMP Debian 4.2.5-1 (2015-10-27) x86_64 GNU/Linux
  11. root@voip:/etc/asterisk# asterisk -V
  12. Asterisk 13.6.0
  13. root@voip:/etc/asterisk#
  14.  
  15. # ----------------------------------
  16. # /etc/asterisk/extensions.conf
  17. ...
  18.  
  19. [pokus]
  20. exten => 100,1,Dial(SIP/100,20)
  21. exten => 100,2,Hangup
  22.  
  23. exten => 101,1,Dial(SIP/101,20)
  24. exten => 101,2,Hangup
  25.  
  26. exten => 102,1,Dial(SIP/102,20)
  27. exten => 102,2,Hangup
  28.  
  29. allow=h263
  30. allow=h263p
  31. allow=h264
  32. allow=h261
  33.  
  34. # ----------------------------------
  35. #/etc/asterisk/rtp.conf
  36. ...
  37. [general]
  38. rtpstart=10000
  39. rtpend=11000
  40. stunaddr=stun.ekiga.net:3478
  41.  
  42.  
  43.  
  44. # ----------------------------------
  45. # /etc/asterisk/sip.conf
  46. ...
  47. [general]
  48. ;preferred_codec_only=yes
  49. ;disallow=all
  50. ;allow=ulaw
  51. ;allow=ilbc
  52. videosupport=yes
  53.  
  54. externhost=example.net
  55. externip=1.2.3.4
  56.  
  57. [100]
  58. type=friend
  59. auth=md5
  60. username=100
  61. secret=dshfdhoadfnhfodjnsdoh
  62. callerid=(Test user<100>)
  63. host=dynamic
  64. nat=yes
  65. context=pokus
  66. videosupport=yes
  67. disallow=all
  68. allow=ulaw
  69. allow=h263
  70. allow=gsm
  71.  
  72. [101]
  73. type=friend
  74. auth=md5
  75. username=101
  76. secret=dshfdhoadfnhfodjnsdoh
  77. callerid=(Test user<101>)
  78. host=dynamic
  79. nat=yes
  80. context=pokus
  81. videosupport=yes
  82. disallow=all
  83. allow=ulaw
  84. allow=h263
  85. allow=gsm
  86.  
  87. [102]
  88. type=friend
  89. auth=md5
  90. username=102
  91. secret=dshfdhoadfnhfodjnsdoh
  92. callerid=(Test user<102>)
  93. host=dynamic
  94. nat=yes
  95. context=pokus
  96. videosupport=yes
  97. disallow=all
  98. allow=ulaw
  99. allow=h263
  100. allow=gsm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement