Always acknowledge control requests - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 19c15827759ba27da70d307c63ecb6998f8e6833
(DIR) parent 819317ab5c5cc3ba0ae7cd5e2bd3aa441656b083
(HTM) Author: HD Moore <x@hdm.io>
Date: Sun, 28 Feb 2016 18:48:01 -0600
Always acknowledge control requests
Diffstat:
M lib/warvox/proto/iax2/call.rb | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/lib/warvox/proto/iax2/call.rb b/lib/warvox/proto/iax2/call.rb
@@ -238,18 +238,15 @@ class Call
case stype
when IAX_CTRL_HANGUP
dprint("HANGUP")
- self.client.send_ack(self)
self.state = :hangup
when IAX_CTRL_RINGING
dprint("RINGING")
- self.client.send_ack(self)
when IAX_CTRL_BUSY
dprint("BUSY")
self.busy = true
self.state = :hangup
- self.client.send_ack(self)
when IAX_CTRL_ANSWER
dprint("ANSWER")
@@ -257,7 +254,6 @@ class Call
self.state = :answered
self.ring_finish = ::Time.now.to_i
end
- self.client.send_ack(self)
when IAX_CTRL_PROGRESS
dprint("PROGRESS")
@@ -268,8 +264,9 @@ class Call
when 255
dprint("STOP SOUNDS")
end
+
# Acknowledge all control packets
- # self.client.send_ack(self)
+ self.client.send_ack(self)
when IAX_TYPE_IAX