Skip to content

Instantly share code, notes, and snippets.

@priyankvex
Created June 3, 2018 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priyankvex/375ebdc5ae886929cd62ebbf0ec43285 to your computer and use it in GitHub Desktop.
Save priyankvex/375ebdc5ae886929cd62ebbf0ec43285 to your computer and use it in GitHub Desktop.
class FirstLegDisconnectedView(APIView):
def post(self, request, *args, **kwargs):
call_sid = request.POST['CallSid']
conference_room = get_conference_room() # get the conference same as the customer's one
response = VoiceResponse()
dial = Dial()
dial.conference(request.GET["conference_room"], end_conference_on_exit=False)
response.append(dial)
return HttpResponse(response, content_type="application/xml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment