<div>Though you can modify SIP headers, there is no straight forward way of processing SIP messages as Asterisk is made to abstract away that protocol layer. However it generally is possible to track the Ringing and Answer events in AMI which in turn the reflect the 180/183 and 200 SIP messages. However, to be more precise. you can enable sip debug (which will make asterisk to print all the SIP messages ) and process the logs or do IPC between your program and &quot;asterisk -r &quot; </div>

<div> </div>
<div>The easy way is to use SER family tools like kamailio , OpenSIPS for tasks like these. </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Apr 14, 2011 at 10:52 AM, Nasir Iqbal <span dir="ltr">&lt;<a href="mailto:nasir@ictinnovations.com">nasir@ictinnovations.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Is there an way (asteisk command / AMI / Agi ) to process incoming SIP messages like ( 100 trying , 183 session progress , 200 Ack) ,  
<div><br></div>
<div>I am intersted to findout delay between 183 and 200 message </div>
<div><br></div>
<div>Regards<br clear="all">Nasir Iqbal<br><br></div><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>
<div><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>Godson Gera<br><a href="http://godson.in/">Asterisk Consultant</a></div>