<html><head></head><body><span class="viv-signature"></span>I understand, but autoservice and AGI wouldn't be running on the same channel at the same time. And I assume that once the transfer is completed, original AGI call will be terminated. If I am wrong in that assumption, then I am in trouble.<div><br></div><div>It should be noted that, while you say that AGI can't run twice on the same channel, the the second AGI call does go through and everything works as intended. I am just worried that this will cause some problem down the line, and I would like to avoid the debug message.</div><div><br></div><div>Regards,<br><br>On Thursday, 02. March 2023. 10:57:23 (+01:00), Joshua C. Colp wrote:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div dir="ltr">On Thu, Mar 2, 2023 at 5:50 AM Nikša Baldun <<a href="mailto:it@voxdiversa.hr">it@voxdiversa.hr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;margin-left:0.8ex;margin-bottom:0px;margin-right:0px;margin-top:0px;"><div><span></span>Hi Joshua,<div><br></div><div>thanks for the answer. Meanwhile, I've found that the debug message about competing threads happens because I am using Fast AGI, and two threads call AGI from the same channel. I assume this could potentially be resolved if I call ast_app_exec_sub AFTER the attended transfer has already been completed (and, based on your input, autoservice should be used). This is trickier to implement, but I'll try.</div></div></blockquote><div><br></div><div>Fundamentally two threads can't service the same channel at the same time. So autoservice and AGI can't run on the same channel at the same time, just like AGI can't run twice on the same channel at the same time. It's the equivalent of having two people tell you what to do at the same time.</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">www.sangoma.com</a> and <a href="http://www.asterisk.org">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>
</blockquote><span class="viv-signature-below"><br>-- <br>Nikša Baldun<br><br>VoxDiversa<br><br>Sjedište:<br>IX Trokut 1<br>10020 Zagreb<br><br>Ured:<br>Ilica 425<br>10090 Zagreb<br>Tel.: +385 1 8000676<br>Web: www.voxdiversa.hr</span></div></body></html>