|
@@ -358,7 +358,7 @@ class MyCall(pj.Call):
|
|
|
self.agent.hangup(self.user_part)
|
|
|
elif action_code == 'transfer': # 转人工
|
|
|
print('todo 转人工')
|
|
|
- sip_headers = {'sip_bye_h_X-CIN-HangUpReason':'transferToAgent'}
|
|
|
+ sip_headers = {'P-LIBRA-HangUpReason':'transferToAgent'}
|
|
|
self.agent.hangup(self.user_part, **sip_headers)
|
|
|
|
|
|
class ToTextBotAgent:
|