Guest User

Untitled

a guest
May 18th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. ==========================================
  2. ⭐ For cdr table ⭐
  3. ==========================================
  4.  
  5. ------------------------------------------
  6. 👉 /etc/odbc.ini
  7. ------------------------------------------
  8. [odbcAsterisk]
  9. Driver = MySQL ODBC 5.3 Unicode Driver
  10. Description = MySQL connection to ‘asterisk’ database
  11. Server = localhost
  12. Port = 3306
  13. Database = asterisk
  14. UserName = root
  15. Password = Root@pr1sonl1nk
  16. Socket = /var/lib/mysql/mysql.sock
  17.  
  18.  
  19. ------------------------------------------
  20. 👉 /etc/asterisk/cdr_odbc.conf
  21. ------------------------------------------
  22. [global]
  23. dsn=odbcAsterisk
  24. loguniqueid=yes
  25. table=cdr
  26. dispositionstring=yes
  27. usegmtime=no
  28. hrtime=yes
  29.  
  30.  
  31. ------------------------------------------
  32. 👉 /etc/asterisk/res_odbc.conf
  33. ------------------------------------------
  34. [odbcasterisk]
  35. enabled => yes
  36. dsn => odbcAsterisk
  37. username => root
  38. password => Root@pr1sonl1nk
  39. pre-connect => yes
  40. limit=1
  41. share_connections=yes
  42. sanitysql=select 1
  43. isolation=repeatable_read
  44.  
  45.  
  46. ------------------------------------------
  47. 👉 /etc/asterisk/cdr_manager.conf
  48. ------------------------------------------
  49. [general]
  50. enabled = yes
  51.  
  52.  
  53. ------------------------------------------
  54. 👉 /etc/asterisk/cdr_adaptive_odbc.conf
  55. ------------------------------------------
  56. [adaptive_connection]
  57. connection=odbcasterisk
  58. table=cdr
  59. alias start => calldate
  60. alias channel => source_channel
  61.  
  62.  
  63.  
  64. ==========================================
  65. ⭐ For cel table ⭐
  66. ==========================================
  67.  
  68. ------------------------------------------
  69. 👉 /etc/asterisk/cel.conf
  70. ------------------------------------------
  71. #uncomment these lines
  72. enable=yes
  73. dateformat = %F %T
  74.  
  75.  
  76. ------------------------------------------
  77. 👉 /etc/asterisk/cel_odbc.conf
  78. ------------------------------------------
  79. [cel]
  80. connection=odbcasterisk
  81. table=cel
  82. username= root
  83. password= Root@pr1sonl1nk
  84. loguniqueid=yes
  85.  
  86.  
  87.  
  88. ==========================================
  89. ⭐ For realtime sip peers ⭐
  90. ==========================================
  91.  
  92. ------------------------------------------
  93. 👉 /etc/asterisk/extconfig.conf
  94. ------------------------------------------
  95. #uncomment these lines
  96. sippeers => odbc,odbcasterisk
  97.  
  98.  
  99. ------------------------------------------
  100. 👉 /etc/asterisk/sip.conf
  101. ------------------------------------------
  102. #uncomment these lines
  103. rtcachefriends=yes
  104. rtupdate=yes
  105. rtautoclear=yes
Add Comment
Please, Sign In to add comment