Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I make make calls and add the websocket for stream connection? #1

Open
prateeksachan opened this issue Feb 12, 2024 · 0 comments

Comments

@prateeksachan
Copy link

prateeksachan commented Feb 12, 2024

Hi,

The example in the repo:

async def xml(request):
response = ET.Element("Response")
stream = ET.SubElement(response, "Stream", bidirectional="true", statusCallbackUrl="http://"+config["publicIp"]+"/cb")
stream.text = "ws://"+config["publicIp"]+"/ws"
conference = ET.SubElement(response, "Conference")
conference.text = "ConferenceTest"
xml_string = ET.tostring(response, encoding="utf-8", method="xml")
return text(xml_string.decode("utf-8"), content_type='application/xml')
shows a conference resource.

But how to create a call programmatically and attach the websocket connection for streaming? From the docs, it seems plivo takes in an answer_url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant