// Example for conference - join a conference mutedpackagecom.plivo.api.xml.samples.conference;importcom.plivo.api.exceptions.PlivoXmlException;importcom.plivo.api.xml.Conference;importcom.plivo.api.xml.Response;importcom.plivo.api.xml.Speak;classJoinAConferenceMuted{publicstaticvoidmain(String[]args)throwsPlivoXmlException{Responseresponse=newResponse().children(newSpeak("You will now be placed into a demo conference.This is brought\n to you by Plivo.To know more visit us at plivo.com"),newConference("demo").endConferenceOnExit(true).startConferenceOnEnter(false).waitSound("http://www.foo.com/waitmusic/").muted(true));System.out.println(response.toXmlString());}}
// Example for conference - join conference mutedpackagemainimport"github.com/plivo/plivo-go/xml"funcmain(){response:=xml.ResponseElement{Contents:[]interface{}{new(xml.ConferenceElement).SetMuted(true).SetContents("demo "),},}print(response.String())}
fromflaskimportFlask,Response,requestimportplivoxmlapp=Flask(__name__)@app.route('/conference/join_muted/',methods=['GET','POST'])defjoin_muted():response=plivoxml.Response()params={'muted':"true"}conference_name="demo"# Conference Room name
response.addConference(conference_name,**params)returnResponse(str(response),mimetype='text/xml')if__name__=="__main__":app.run(host='0.0.0.0',debug=True)# Sample Conference XML
# <Response>
# <Speak>
# You will now be placed into a demo conference.
# This is brought to you by Plivo.
# To know more visit us at plivo.com
# </Speak>
# <Conference startConferenceOnEnter="false"
# endConferenceOnExit="true"
# waitSound="http://www.foo.com/waitmusic/">
# demo
# </Conference>
# </Response>
// Example for conference - join conference mutedpackagemainimport"github.com/plivo/plivo-go/xml"funcmain(){response:=xml.ResponseElement{Contents:[]interface{}{new(xml.ConferenceElement).SetMuted(true).SetContents("demo "),},}print(response.String())}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input for further improvements!