title: How to log call (SIP) requests in asterisk?
body: <p>Is it possible to log SIP requests to a database in asterisk? I am interested in these details:</p>
  
  <ul>
  <li>timestamp</li>
  <li>SIP method</li>
  <li>status code</li>
  <li>source number/extension</li>
  <li>destination number/extension</li>
  </ul>
  
  <p>I am pretty sure that it's possible to translate queue_log events to SIP requests and get the above information from it. However, as not every call goes through calling queues, this solution does not work for me.</p>
  
  <p>Perhaps it's possible to achieve by using AMI? Or writing custom dialplan? Please share your thoughts on this issue.</p>