Created
June 3, 2018 12:18
-
-
Save priyankvex/375ebdc5ae886929cd62ebbf0ec43285 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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