Guest User

Untitled

a guest
May 15th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. # voipmonitor.org configuration file
  2. #
  3. # location of this file is at ~/.voipmonitor.conf or /etc/voipmonitor.conf
  4. # command line parameters overrides configuration directives in this file
  5. # allowed comments are ; or #.
  6. # XXX PLEASE NOTE: you have to remove ';' in front of directive to activate tham because they are commented by default.
  7. #
  8.  
  9. [general]
  10.  
  11. #listening interface. Can be 'any' which will listen on all interfaces.
  12. #check if you are not using -i ethX argument in command line as it has more priority
  13. #than this configuration file
  14. interface = em2
  15.  
  16. #define TCP manager port
  17. managerport = 5029
  18.  
  19. #which SIP ports voipmonitor should listen. For each port make new line with sipport = port (multiple lines)
  20. sipport = 5060
  21. ;sipport = 5061
  22. ;sipport = 5062
  23.  
  24. #Set ring buffer in MB (feature of newer >= 2.6.31 kernels). If you see voipmonitor
  25. #dropping packets in syslog upgrade to newer kernel and increase --ring-buffer to
  26. #higher MB. It is buffer between pcap library and voipmonitor. The most reason why
  27. #voipmonitor drops packets is waiting for I/O operations (switching to ext4 from
  28. #ext3 also helps. Defaults to 10 MB
  29. ringbuffer = 8192
  30.  
  31. #this is important option if voipmonitor is sniffing on SIP proxy and see both RTP leg of CALL.
  32. #in that case use this option. It will analyze RTP only for the first LEG and not each 4 RTP
  33. #streams which will confuse voipmonitor. Drawback of this switch is that voipmonitor will analyze
  34. #SDP only for SIP packets which have the same IP and port of the first INVITE source IP
  35. #and port. It means it will not work in case where phone sends INVITE from a.b.c.d:1024 and
  36. #SIP proxy replies to a.b.c.d:5060. If you have better idea how to solve this problem better
  37. #please contact support@voipmonitor.org
  38. rtp-firstleg = no
  39.  
  40. #save sip REGISTER messages
  41. sip-register = no
  42.  
  43. #if yes, voipmonitor will not save CDR to MySQL
  44. nocdr = no
  45.  
  46. #save SIP packets to pcap file
  47. savesip = yes
  48.  
  49. # save RTP packets to pcap file. savertp = yes automatically saves RTCP packets
  50. [ Read 89 lines ]
  51.  
  52. [root@monitor voipmonitor-svn]# cat /etc/voipmonitor.conf
  53. #
  54. # voipmonitor.org configuration file
  55. #
  56. # location of this file is at ~/.voipmonitor.conf or /etc/voipmonitor.conf
  57. # command line parameters overrides configuration directives in this file
  58. # allowed comments are ; or #.
  59. # XXX PLEASE NOTE: you have to remove ';' in front of directive to activate tham because they are commented by default.
  60. #
  61.  
  62. [general]
  63.  
  64. #listening interface. Can be 'any' which will listen on all interfaces.
  65. #check if you are not using -i ethX argument in command line as it has more priority
  66. #than this configuration file
  67. interface = em2
  68.  
  69. #define TCP manager port
  70. managerport = 5029
  71.  
  72. #which SIP ports voipmonitor should listen. For each port make new line with sipport = port (multiple lines)
  73. sipport = 5060
  74. ;sipport = 5061
  75. ;sipport = 5062
  76.  
  77. #Set ring buffer in MB (feature of newer >= 2.6.31 kernels). If you see voipmonitor
  78. #dropping packets in syslog upgrade to newer kernel and increase --ring-buffer to
  79. #higher MB. It is buffer between pcap library and voipmonitor. The most reason why
  80. #voipmonitor drops packets is waiting for I/O operations (switching to ext4 from
  81. #ext3 also helps. Defaults to 10 MB
  82. ringbuffer = 8192
  83.  
  84. #this is important option if voipmonitor is sniffing on SIP proxy and see both RTP leg of CALL.
  85. #in that case use this option. It will analyze RTP only for the first LEG and not each 4 RTP
  86. #streams which will confuse voipmonitor. Drawback of this switch is that voipmonitor will analyze
  87. #SDP only for SIP packets which have the same IP and port of the first INVITE source IP
  88. #and port. It means it will not work in case where phone sends INVITE from a.b.c.d:1024 and
  89. #SIP proxy replies to a.b.c.d:5060. If you have better idea how to solve this problem better
  90. #please contact support@voipmonitor.org
  91. rtp-firstleg = no
  92.  
  93. #save sip REGISTER messages
  94. sip-register = no
  95.  
  96. #if yes, voipmonitor will not save CDR to MySQL
  97. nocdr = no
  98.  
  99. #save SIP packets to pcap file
  100. savesip = yes
  101.  
  102. # save RTP packets to pcap file. savertp = yes automatically saves RTCP packets
  103. savertp = yes
  104.  
  105. # save RTCP packets to pcap file
  106. savertcp = yes
  107.  
  108. # save RTP payload to audio file. Choose 'wav' for WAV PCM or 'ogg' for OGG 25kbps format.
  109. saveaudio = ogg
  110.  
  111. # save RAW packet data from RTP to standalone raw files. Use this option only for debugging purpose and you know what to do with those files.
  112. saveraw = no
  113.  
  114. # save graph data for web GUI. If you want to complress it, put here gzip
  115. savegraph = plain
  116.  
  117. # Pcap filter. If you want to sniff only UDP SIP, put here 'udp'. Warning: If you set protocol to 'udp' pcap discards VLAN packets. Maximum size is 2040 chars
  118. #filter = udp
  119.  
  120. # directory where all files (pcap|wav|graph) are stored
  121. spooldir = /var/spool/voipmonitor
  122.  
  123. # put interface to promiscuouse mode so it can sniff packets which are not routed directly to us
  124. promisc = yes
  125.  
  126. # mysql server
  127. mysqlhost = localhost
  128.  
  129. # mysql database
  130. mysqldb = voipmonitor
  131.  
  132. # mysql table
  133. mysqltable = cdr
  134.  
  135. # mysql username
  136. mysqlusername = XXXXX
  137.  
  138. # mysql password
  139. mysqlpassword = XXXXXX
Add Comment
Please, Sign In to add comment