774056846 4 ay önce
ebeveyn
işleme
775087d007
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/core/voip/bot.py

+ 2 - 1
src/core/voip/bot.py

@@ -548,7 +548,8 @@ class BotAgent:
 
     def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
         if self.acd_service:
-            self.acd_service.transfer_to_agent(call_id, device_id, service_id, user_part)
+            threading.Thread(target=self.acd_service.transfer_to_agent, args=(device_id, service_id, user_part)).start()
+            # self.acd_service.transfer_to_agent(call_id, device_id, service_id, user_part)
         # sip_headers = {'P-LIBRA-HangUpReason': 'transferToAgent', 'P-LIBRA-ServiceId': service_id}
         # self.hangup(user_part)