| 99.default.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox. | |
| git clone git://jay.scot/warvox | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| 99.default.rb (747B) | |
| --- | |
| 1 # | |
| 2 # WarVOX Classifiers | |
| 3 # | |
| 4 # | |
| 5 | |
| 6 # | |
| 7 # Initialize some local variables out of data | |
| 8 # | |
| 9 freq = data[:freq] | |
| 10 fcnt = data[:fcnt] | |
| 11 maxf = data[:maxf] | |
| 12 | |
| 13 # Look for voice mail by detecting the 1000hz BEEP | |
| 14 # If the call length was too short to catch the beep, | |
| 15 # this signature can fail. For non-US numbers, the beep | |
| 16 # is often a different frequency entirely. | |
| 17 if(fcnt[1000] >= 1.0) | |
| 18 @line_type = 'voicemail' | |
| 19 raise Completed | |
| 20 end | |
| 21 | |
| 22 # Look for voicemail by detecting a peak frequency of | |
| 23 # 1000hz. Not as accurate, but thats why this is in | |
| 24 # the fallback script. | |
| 25 if(maxf > 995 and maxf < 1005) | |
| 26 @line_type = 'voicemail' | |
| 27 raise Completed | |
| 28 end | |
| 29 | |
| 30 | |
| 31 # | |
| 32 # Fall back to 'voice' if nothing else has been matched | |
| 33 # This should be the last check processed | |
| 34 # | |
| 35 | |
| 36 @line_type = 'voice' |