Use the new iaxrecord flags in the dialer, ensure calls are dropped before exiting iaxrecord (segfault is in the alsa library, of course) - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 0bbe5da42b5cd8e8856945aa718a666314e3cb41
DIR parent 1eaeca87fc11414300b9cb17737cde857145d9b5
HTML Author: HD Moore <hd_moore@rapid7.com>
Date: Fri, 15 May 2009 03:07:06 +0000
Use the new iaxrecord flags in the dialer, ensure calls are dropped before exiting iaxrecord (segfault is in the alsa library, of course)
Diffstat:
M lib/warvox/jobs/dialer.rb | 7 +++++++
M src/iaxrecord/iaxrecord.c | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/warvox/jobs/dialer.rb b/lib/warvox/jobs/dialer.rb
@@ -138,12 +138,19 @@ class Dialer < Base
IO.popen(
[
WarVOX::Config.tool_path('iaxrecord'),
+ "-s",
prov[:host],
+ "-u",
prov[:user],
+ "-p",
prov[:pass],
+ "-c",
cid,
+ "-o",
out,
+ "-n",
num,
+ "-l",
@seconds
].map{|i|
"'" + i.to_s.gsub("'",'') +"'"
DIR diff --git a/src/iaxrecord/iaxrecord.c b/src/iaxrecord/iaxrecord.c
@@ -44,6 +44,7 @@ void cleanup(void) {
}
if ( initialized ) {
iaxc_stop_processing_thread();
+ iaxc_shutdown();
initialized = 0;
}
}
@@ -266,6 +267,8 @@ int main(int argc, char **argv) {
busy,
(unsigned int)(etime) - (unsigned int)(stime)
);
+
+ iaxc_dump_all_calls();
return(0);
}