forked from voipmonitor/sniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging several features in one commit:
- Simple TCP manager interface implementation to interact with voipmonitor process. Commands implemented: reload - will reload voipmonitor.conf and mysql filter_ip and filter_telnum. It will not reload interface, ring-buffer and mysql connection. totalcalls - number of current calls listcalls - return JSON formated information about calls - callreference, callid, callercodec, calledcodec, caller, callername, called, calldate, duration, callerip, calledip listen - experimental look at manager.c quit - Experimental realtime voice decoding to FIFO files. Commercial WEB interface implements realtime listening for ALAW now. - Add 2 new MySQL tables - filter_ip and filter_telnum. voipmonitor can now do recording per IP or per telephone numbers. IP filter is implemented with linked list of IP addresses. Complexity is N*M where N is number of rules and M is number of INVITE per second. Filter by telephone numbers are implemented with B-tree and hash which searches for number in constanst time regardless on number of rules.
- Loading branch information
Martin Vit
committed
Oct 16, 2011
1 parent
88d99e0
commit 070a1e3
Showing
18 changed files
with
1,085 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
ALTER TABLE cdr MODIFY whohanged ENUM('caller', 'callee') DEFAULT NULL; | ||
|
||
CREATE TABLE `filter_ip` ( | ||
`id` int(32) NOT NULL auto_increment, | ||
`ip` int(32) unsigned default NULL, | ||
`mask` int(8) default NULL, | ||
`rtp` tinyint(1) default '0', | ||
`sip` tinyint(1) default '0', | ||
`register` tinyint(1) default '0', | ||
`graph` tinyint(1) default '0', | ||
`wav` tinyint(1) default '0', | ||
`note` TEXT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
CREATE TABLE `filter_telnum` ( | ||
`id` int(32) NOT NULL auto_increment, | ||
`prefix` int(32) unsigned default NULL, | ||
`fixed_len` int(32) unsigned default 0, | ||
`rtp` tinyint(1) default '0', | ||
`sip` tinyint(1) default '0', | ||
`register` tinyint(1) default '0', | ||
`graph` tinyint(1) default '0', | ||
`wav` tinyint(1) default '0', | ||
`note` TEXT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
Oops, something went wrong.