<div dir="ltr"><div dir="ltr">On Fri, Nov 11, 2022 at 12:09 PM Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br></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">Hi.<br>
<br>
Asterisk 16.2.1<br>
<br>
I have a dialplan where one context (named "inbound") performs:<br>
<br>
Originate(Local/${Target}@inOrig,exten,inbound,${EXTEN},208)<br>
<br>
The idea is that this command will spawn a "call" to the context "inOrig" on <br>
the same machine, and then return to the "inbound" context at priority 208.<br>
<br>
Priority 208 is simply a NoOp(Returned from inOrig)<br>
<br>
The "inOrig" context does:<br>
<br>
NoOp(Answering inbound call)<br>
Answer()<br>
NoOp(Returned to inbound context)<br>
Originate(Local/${EXTEN}@dialout,exten,BridgIt,${EXTEN},1)<br>
<br>
It's all doing what I want / expect, but I am seeing, completely consistently, <br>
a 500ms delay in the Answer() application.<br>
<br>
So, I get the following sequence of timings:<br>
<br>
08:41:49.514918 inbound:201 Originate(.....)<br>
08:41:49.516459 inOrig:1 NoOp(Answering inbound call)<br>
08:41:49.517016 inOrig:2 Answer()<br>
08:41:49.517489 inbound:208 NoOp(Returned from inOrig)<br>
08:41:50.017454 inOrig:3 NoOp(Returned to inbound context)<br>
<br>
I have analysed dozens of calls and there is always a ~500ms delay between <br>
when the Answer() has clearly completed (because control returns to priority <br>
208 of the "inbound" context), and when the inOrig context continues with the <br>
following NoOp.<br>
<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Application_Answer" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Application_Answer</a> tells me that <br>
the Answer() application takes an optional parameter which causes Asterisk to <br>
wait that number of milliseconds before returning to the dialplan after <br>
answering the call.<br>
<br>
Does this undocumentedly default to 500?<br>
<br>
Are the results I'm seeing expected, is there something wrong with my <br>
dialplans, is there some way to eliminate this delay?<br></blockquote><div><br></div><div>There is a hard coded minimum of 500 milliseconds for media to flow. You'd have to modify the code to remove it. </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 Project 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>