I am implementing hold function in Twilio. Whenever I call the hold function, the callee is getting disconnected. The code below only applies to the caller, not the callee.
if call_sid:
client = Client(self.account_sid, self.auth_token)
twiml_string = """
<Response>
<Enqueue>xx</Enqueue>
</Response>
"""
client.calls(call_sid).update(method="POST", twiml=twiml_string)