@response_server.route('/answered/', methods=['GET', 'POST'])
def answered():
    # Post params- 'CallUUID': unique id of call, 'Direction': direction of call,
    #               'To': Number which was called, 'From': calling number,
    #               If Direction is outbound then 2 additional params:
    #               'ALegUUID': Unique Id for first leg,
    #               'ALegRequestUUID': request id given at the time of api call

    if request.method == 'POST':
        try:
            print "CallUUID: %s" % request.form['CallUUID']
        except:
            pass
    else:
        try:
            print request.args['CallUUID'] % "CallUUID: %s"
        except:
            pass
    r = plivohelper.Response()
    p = r.addConference("plivo", muted=False, 
                        enterSound="beep:2", exitSound="beep:1",
                        startConferenceOnEnter=True, endConferenceOnExit=True,
                        waitSound="http://127.0.0.1:5000/waitmusic/",
                        timeLimit=60, hangupOnStar=True)
    print "RESTXML Response => %s" % r
    return render_template('response_template.xml', response=r)
dataset/ETHPy150Open plivo/plivohelper-python/tests/conference.py/answered/swapped operands of `%`