|
@@ -648,10 +648,11 @@ class BotAgent:
|
|
# 机器人主动挂机回收分机号
|
|
# 机器人主动挂机回收分机号
|
|
self.release(user_part)
|
|
self.release(user_part)
|
|
|
|
|
|
- def hangup_with_timeout(self, call, timeout=5):
|
|
|
|
|
|
+ def hangup_with_timeout(self, call, call_op_param, timeout=5):
|
|
def hangup_call():
|
|
def hangup_call():
|
|
try:
|
|
try:
|
|
- call.hangup()
|
|
|
|
|
|
+ print("daviddebugger::begin hangup call")
|
|
|
|
+ call.hangup(call_op_param)
|
|
print("daviddebugger::success hangup call")
|
|
print("daviddebugger::success hangup call")
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print(f"Failed to hangup call: {e}")
|
|
print(f"Failed to hangup call: {e}")
|