app.py
def conf(conference_name):
    """
    Renders the XML to start a conference based on the conference name
    it receives. It checks if the conference exists in our memory (to make
    sure it hasn't expired).

    This URL is passed as the Answer URL to Plivo. When the call gets
    answered, the call will be put into a conference.
    """

    redis_conn = get_redis_connection()
    room_exists = redis_conn.exists(conference_name)
    plivo_response = plivo.XML.Response()

    if not room_exists:
        plivo_response.addHangup(reason="invalid conference")
        response = make_response(render_template('response_template.xml', response=plivo_response))
        response.headers['content-type'] = 'text/xml'
        return response

    plivo_response.addWait(length=2)
    plivo_response.addSpeak(config.CONFERENCE_ANNOUNCEMENT)
    wait_sound_url = url_for('conf_music', _external=True)

    plivo_response.addConference(conference_name,
                        enterSound="beep:1",
                        exitSound="beep:2",
                        waitSound=wait_sound_url,
                        )
    response = make_response(render_template('response_template.xml', response=plivo_response))
    response.headers['content-type'] = 'text/xml'
    return response

    Renders the XML to start a conference based on the conference name
    it receives. It checks if the conference exists in our memory (to make
    sure it hasn't expired).

    This URL is passed as the Answer URL to Plivo. When the call gets
    answered, the call will be put into a conference.
    
Renders the XML to start a conference based on the conference name
it receives. It checks if the conference exists in our memory (to make
sure it hasn't expired).

This URL is passed as the Answer URL to Plivo. When the call gets
answered, the call will be put into a conference.
Renders the XML to start a conference based on the conference name it receives . It checks if the conference exists in our memory ( to make sure it hasn ' t expired ) . This URL is passed as the Answer URL to Plivo . When the call gets answered the call will be put into a conference .
def conf(conference_name):
    redis_conn = get_redis_connection()
    room_exists = redis_conn.exists(conference_name)
    plivo_response = plivo.XML.Response()
    if not room_exists:
        plivo_response.addHangup(reason="invalid conference")
        response = make_response(render_template('response_template.xml', response=plivo_response))
        response.headers['content-type'] = 'text/xml'
        return response
    plivo_response.addWait(length=2)
    plivo_response.addSpeak(config.CONFERENCE_ANNOUNCEMENT)
    wait_sound_url = url_for('conf_music', _external=True)
    plivo_response.addConference(conference_name,
                        enterSound="beep:1",
                        exitSound="beep:2",
                        waitSound=wait_sound_url,
                        )
    response = make_response(render_template('response_template.xml', response=plivo_response))
    response.headers['content-type'] = 'text/xml'
    return response
def conf ( conference_name ) : redis_conn = get_redis_connection ( ) room_exists = redis_conn . exists ( conference_name ) plivo_response = plivo . XML . Response ( ) if not room_exists : plivo_response . addHangup ( reason = "invalid conference" ) response = make_response ( render_template ( 'response_template.xml' , response = plivo_response ) ) response . headers [ 'content-type' ] = 'text/xml' return response plivo_response . addWait ( length = 2 ) plivo_response . addSpeak ( config . CONFERENCE_ANNOUNCEMENT ) wait_sound_url = url_for ( 'conf_music' , _external = True ) plivo_response . addConference ( conference_name , enterSound = "beep:1" , exitSound = "beep:2" , waitSound = wait_sound_url , ) response = make_response ( render_template ( 'response_template.xml' , response = plivo_response ) ) response . headers [ 'content-type' ] = 'text/xml' return response
Renders the XML to start a conference based on the conference name
it receives.
Renders the XML to start a conference based on the conference name it receives .
"""
    Renders the XML to start a conference based on the conference name
    it receives. It checks if the conference exists in our memory (to make
    sure it hasn't expired).

    This URL is passed as the Answer URL to Plivo. When the call gets
    answered, the call will be put into a conference.
    """
conference_name