<div dir="ltr"><div>pOn Tue, May 18, 2021 at 7:13 AM Mohit Dhiman <<a href="mailto:mohitdhiman736@gmail.com">mohitdhiman736@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>Assuming I am using the <font face="monospace">chan_sip</font> driver</div><div>my question is for an outbound call If Asterisk receives any SIP Response (like 100 TRYING, 180 RINGING ...) which of the two will receive this frame data first will it be <b><i><font face="monospace">handle_response_invite</font></i></b> of <font face="monospace">channels/chan_sip.c</font> or will it be <font face="monospace"><b><i>ast_read</i></b></font> of the <font face="monospace">main/channel.c</font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">So far with my testing </font><font face="monospace">handle_response_invite</font><span style="font-family:arial,sans-serif"> is receiving the frame data first and then the </span><font face="monospace">ast_read, </font><font face="arial, sans-serif">will this always be the case or is this a race thing where either of the functions can get the data first?<br></font></div></div></blockquote><div><br></div><div>handle_response_invite would always get it first, as it is what understands SIP responses and conveys it to the core.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>