diff --git a/crm/twilio/api.py b/crm/twilio/api.py index 897c128de..4656caa16 100644 --- a/crm/twilio/api.py +++ b/crm/twilio/api.py @@ -58,48 +58,3 @@ def twilio_incoming_call_handler(**kwargs): resp = IncomingCall(args.From, args.To).process() return Response(resp.to_xml(), mimetype='text/xml') - - - - - - - - - - - - - - - - - -# @frappe.whitelist(allow_guest=True) -# def twilio_incoming_call_handler(**kwargs): -# args = frappe._dict(kwargs) -# resp = VoiceResponse() - -# resp.say("Thank you for calling! Have a great day.", voice='Polly.Amy') - -# todo = frappe.get_doc({ -# "doctype": "ToDo", -# "description": "Call from {0} to {1} is {2}".format(args.From, args.To, args.CallStatus), -# }) -# todo.insert(ignore_permissions=True) - - -@frappe.whitelist() -def make_call(to, from_='+13134748669'): - application_sid = 'APa7a85c103b7477c8eb25e9a8aafae055' - account_sid = 'AC1a65d630772fbdb3a9a977c46aacef61' - auth_token = '1eb29b621c6a60f4afdde18160bc1e2d' - client = Client(account_sid, auth_token) - - call = client.calls.create( - url='http://demo.twilio.com/docs/voice.xml', - to=to, - from_=from_ - ) - - print(call.sid) \ No newline at end of file diff --git a/crm/twilio/twilio_handler.py b/crm/twilio/twilio_handler.py index a041942b7..944e74303 100644 --- a/crm/twilio/twilio_handler.py +++ b/crm/twilio/twilio_handler.py @@ -80,9 +80,9 @@ def generate_twilio_dial_response(self, from_number: str, to_number: str): resp = VoiceResponse() dial = Dial( caller_id=from_number, - record=self.settings.record_calls, - recording_status_callback=self.get_recording_status_callback_url(), - recording_status_callback_event='completed' + # record=self.settings.record_calls, + # recording_status_callback=self.get_recording_status_callback_url(), + # recording_status_callback_event='completed' ) dial.number(to_number) resp.append(dial) @@ -97,9 +97,9 @@ def generate_twilio_client_response(self, client, ring_tone='at'): resp = VoiceResponse() dial = Dial( ring_tone=ring_tone, - record=self.settings.record_calls, - recording_status_callback=self.get_recording_status_callback_url(), - recording_status_callback_event='completed' + # record=self.settings.record_calls, + # recording_status_callback=self.get_recording_status_callback_url(), + # recording_status_callback_event='completed' ) dial.client(client) resp.append(dial) diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index eed0dec7e..58f8b18ec 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -1,5 +1,5 @@ + +