homzode

Asterisk VozIp

Oct 14th, 2023 (edited)
1,911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.94 KB | None | 0 0
  1. /** roceso instalacion de Asterisk en Ubuntu
  2. /** Actualizando el systema
  3. apt-get update
  4. /** Instalando dependencias requeridas
  5. apt-get install build-essential
  6. apt-get install git-core
  7. apt-get install pkg-config
  8. apt-get install subversion
  9. apt-get install libjansson-dev
  10. apt-get install sqlite
  11. apt-get install autoconf
  12. apt-get install automake
  13. apt-get install libtool
  14. apt-get install libxml2-dev
  15. apt-get install libncurses5-dev
  16. apt-get install unixodbc
  17. apt-get install unixodbc-dev
  18. apt-get install libasound2-dev
  19. apt-get install libogg-dev
  20. apt-get install libvorbis-dev
  21. apt-get install libneon27-dev
  22. apt-get install libsrtp0-dev
  23. apt-get install libspandsp-dev
  24. apt-get install uuid uuid-dev
  25. apt-get install sqlite3
  26. apt-get install libsqlite3-dev
  27. apt-get install libgnutls-dev
  28. apt-get install libedit-dev
  29. apt-get install doxygen
  30. /** Reiniciando el sistema
  31. shutdown -r now
  32. /** instalando asterisk 20
  33. wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
  34. tar zxf asterisk-20-current.tar.gz
  35. cd asterisk-20.4.0
  36. /**mp3 modules
  37. contrib/scripts/get_mp3_source.sh
  38. contrib/scripts/install_prereq install
  39. /** Configurando Asterisk
  40. ./configure
  41. /** Si se presenta error en versión de libjansson-dev
  42. ./configure --with-jansson-bundled
  43. /** Opcional si desea retirar o agregar modulos a instalar
  44. make menuselect
  45. /** Compilando módulos 30 minutos en pentium 4 2GB ram
  46. make
  47. make install
  48. make progdocs ***opcional requiere doxygen
  49. make samples
  50. make config
  51. ldconfig
  52. make basic-pbx
  53. /** Arrancando el servidor Asterisk
  54. systemctl start asterisk
  55. /** reiniciar
  56. systemctl restart asterisk
  57. /** Configurar para activación en el arranque del sistema
  58. systemctl enable asterisk
  59. /** Consultar estado
  60. systemctl status asterisk
  61. /** Conectando desde CLI
  62. asterisk -rvv
  63. /** Deteniendo el servidor Asterisk
  64. systemctl stop asterisk
  65. /**Reinica todos los core incluido pjsip
  66. core reload
  67. /**Reinicia modulo pjsip
  68. module reload res_pjsip.so
  69. /**Lista de sip registrados
  70. pjsip show contacts
  71. /**Lista todos los sip
  72. pjsip show endpoints
  73. /**Lista de transports
  74. asterisk -rx"pjsip show transports"
  75.  
  76. /** pjsip.conf extension
  77. ;Homzode guest
  78. [1107](endpoint-internal-d70)
  79. auth = 1107
  80. aors = 1107
  81. callerid = 1107
  82. [1107](auth-userpass)
  83. password = 1107
  84. username = 1107
  85. [1107](aor-single-reg)
  86. mailboxes = 1107@example
  87. ;Homzode peer
  88. [1119]
  89. type=endpoint
  90. ;transport=transport-udp-nat
  91. ;context=Long-Distance
  92. context=Internal-Setup
  93. disallow=all
  94. allow=ulaw
  95. allow=gsm
  96. auth=1119
  97. aors=1119
  98. [1119]
  99. type=auth
  100. auth_type=userpass
  101. password=1119
  102. username=1119
  103. [1119]
  104. type=aor
  105. max_contacts=3
  106.  
  107. /** extensions.conf context=Internal-Setup
  108. [Internal-Setup]
  109. ; Here we capture internal calls to do anything we need to do before sending
  110. ; them onto all the possible internal locations. Such as disabling CDR on
  111. ; internal to internal calls.
  112. exten = _X.,1,NoOp()
  113.  same = n,Set(CDR_PROP(disable)=1)
  114.  same = n,Goto(Internal-Main,${EXTEN},1)
Advertisement
Add Comment
Please, Sign In to add comment