 app.use bodyParser.urlencoded
   extended: true
 
+send_xml = (res) =>
+  res.set 'Content-Type', 'text/xml'
+  res.send new Buffer twiml.toString()
+
 app.get '/', (req, res) ->
   twiml = new twilio.TwimlResponse()
   twiml.say 'Yo, Yolk!'

    timeout: 10
    timeLimit: 5
    action: '/ring'

app.post '/ring', (req, res) ->
  twiml = new twilio.TwimlResponse()

    action: '/ringonce'
  .say 'Ringing yolk'
  
  do send_xml res

app.post '/ringonce', (req, res) ->
  twiml = new twilio.TwimlResponse()
