|
@@ -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)
|
|
|
|