title: Using Status_Callback on twilio Rest API
body: <p>I am trying to get a notification from twilio when a user hangs up or when it is completed. I have already gotten my code to call the user but i cannot get a notification when the call is complete. </p>
  
  <pre><code>from twilio.rest import TwilioRestClient
  
  def call():
      account_sid = '************************'
      auth_token = '***********************'
  
      client = TwilioRestClient(account_sid, auth_token)
  
      call = client.calls.create(to='+254723453841',
                         from_='+1 214-390-9422',
                         url='https://dl.dropbox.com/u/*******/acceptanceOfTerms.xml',
                         if_machine='Hangup', timeout=20,  status_callback='https://dl.dropbox.com/u/*******/response.xml' )
  
  
       print call.sid
  
       print 'The Sid is '+ call.sid+' and the call status is '+call.status
  </code></pre>
  
  <p>Frrm the twilio documentation <a href="http://www.twilio.com/docs/quickstart/python/rest/call-request" rel="nofollow">http://www.twilio.com/docs/quickstart/python/rest/call-request</a> You are supposed to include a url for notification. My question is what is supposed to be the content of this file in the url and how i can receive a return on the status that a call has been completed or rejected etc..</p>