@app.route('/call/receive', methods=['POST'])
def receive_call():
 response = twiml.Response()
 response.say('Hello from Twilio!')
 return (str(response), 200, {'Content-Type': 'application/xml'})

@ app . route ( '/call/receive' , methods = [ 'POST' ] ) def receive_call ( ) : response = twiml . Response ( ) response . say ( 'Hello from Twilio!' ) return ( str ( response ) , 200 , { 'Content-Type' : 'application/xml' } )
answers a call and replies with a simple greeting .