<div dir="ltr">I mean, you could probably contain it all in a single app script and by inspecting the triggering events/data, figure out which phase you're on.<div><br></div><div>E.g., If trigger is HTTP Trigger then Phase 1; If Trigger is JTAPI extension 1000, then Phase 3, else Phase 2</div><div><br></div><div>There's probably something to be concerned about when it comes to packing so much into such a small space, and troubleshooting issues might be harder, but I bet its achievable.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 28, 2020 at 9:40 AM Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com">MLoraditch@heliontechnologies.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_2740304656427759527WordSection1">
<p class="MsoNormal">So basically I need 3 separate applications. The HTTP Trigger to take the input then pass the input to another application that then places the call into the queue that’s in a third application.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div><table cellpadding="0" cellspacing="0" border="0" style="width:100%"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td style="padding:0px 10px 0px 0px"> </td><td align="left" style="padding:10px 0px 10px 10px;vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px"><tbody><tr style="font-size:14.67px;color:rgb(243,128,11);font-style:normal;font-weight:700;white-space:nowrap"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Matthew Loraditch<span style="font-family:remialcxesans;font-size:1px;color:rgb(255,255,255);line-height:1px">​</span></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(128,128,128);font-style:normal;font-weight:700;white-space:nowrap"><tbody><tr style="font-size:14.67px"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Sr. Network Engineer</td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(128,128,128);font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:14.67px"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:rgb(243,128,11)">p:</span> <a href="tel:443.541.1518" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none;color:rgb(128,128,128)" target="_blank"><strong style="font-weight:400">443.541.1518</strong></a></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(128,128,128);font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:14.67px"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:rgb(243,128,11)">w:</span> <a href="http://www.heliontechnologies.com/" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none;color:rgb(128,128,128)" target="_blank"><strong style="font-weight:400">www.heliontechnologies.com</strong></a></td><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"> | </td><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:rgb(243,128,11)">e:</span> <a href="mailto:MLoraditch@heliontechnologies.com" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none;color:rgb(128,128,128)" target="_blank"><strong style="font-weight:400">MLoraditch@heliontechnologies.com</strong></a></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:bottom"><a href="http://www.heliontechnologies.com/" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:16fedf214df2c807b142" width="300" height="75" border="0" title="Helion Technologies" alt="Helion Technologies" style="width: 300px; min-width: 300px; max-width: 300px; height: 75px; min-height: 75px; max-height: 75px; font-size: 12px;"></a></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="center" style="vertical-align:top"><a href="https://facebook.com/heliontech" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:16fedf214dffc4333803" width="18" height="18" border="0" title="Facebook" alt="Facebook" style="width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; font-size: 12px;"></a></td></tr></tbody></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="center" style="padding:0px 3px 0px 0px;vertical-align:top"><a href="https://twitter.com/heliontech" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:16fedf214df2794685b4" width="18" height="18" border="0" title="Twitter" alt="Twitter" style="width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; font-size: 12px;"></a></td></tr></tbody></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="center" style="padding:0px 3px 0px 0px;vertical-align:top"><a href="https://www.linkedin.com/company/helion-technologies" id="gmail-m_2740304656427759527LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:16fedf214df4f2b17545" width="18" height="18" border="0" title="LinkedIn" alt="LinkedIn" style="width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; font-size: 12px;"></a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><img src="cid:16fedf214dfaae5fbd16" border="0" alt="" style="font-size: 0px;"></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Anthony Holloway <<a href="mailto:avholloway%2Bcisco-voip@gmail.com" target="_blank">avholloway+cisco-voip@gmail.com</a>>
<br>
<b>Sent:</b> Tuesday, January 28, 2020 10:24 AM<br>
<b>To:</b> Johnson, Tim <<a href="mailto:johns10t@cmich.edu" target="_blank">johns10t@cmich.edu</a>><br>
<b>Cc:</b> Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@heliontechnologies.com</a>>; Cisco VoIP Group <<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>><br>
<b>Subject:</b> Re: [cisco-voip] HTTP Response for HTTP Triggered Script<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:1pt solid rgb(156,101,0);padding:2pt">
<p class="MsoNormal" style="line-height:12pt;background:rgb(255,235,156)"><span style="font-size:10pt;color:rgb(156,101,0)">[EXTERNAL]</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Tim is correct: this is normal from my experience too.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I feel partly responsible for your woes, since I think you found that solution from me pointing out the script repository online.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thinking about it some more, I think I would have the HTTP Triggered Application use the Trigger Application step in async mode, to start the initial callback feature, and then it can just End almost immediately.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I through together this quick and dirty MS Paint representation of it:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><img width="789" height="276" style="width: 8.2187in; height: 2.875in;" id="gmail-m_2740304656427759527Picture_x0020_1" src="cid:16fedf214de4cff311"><u></u><u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">There's like a dozen ways to solve this, and this is just one of them.  Some details are left out of the drawing on purpose, so if you get stuck, let's keep this thread going.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Jan 28, 2020, 7:14 AM Johnson, Tim <<a href="mailto:johns10t@cmich.edu" target="_blank">johns10t@cmich.edu</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">As far as my experience, this is “normal” for UCCX. Yes, I believe the request stays open until the script ends. I believe we opened up a TAC case about it a year or two ago but
 I don’t believe it went anywhere.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> cisco-voip <<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>>
<b>On Behalf Of </b>Matthew Loraditch<br>
<b>Sent:</b> Tuesday, January 28, 2020 8:06 AM<br>
<b>To:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> [cisco-voip] HTTP Response for HTTP Triggered Script<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Got the following comment from the developer who is writing an app that will queue a call via http trigger:<u></u><u></u></p>
<p class="MsoNormal"><i>It seems like the MobileApp integration is accepting my request, spits back some HTML, but the HTTP request remains open until the queued call is answered.</i><u></u><u></u></p>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
<p class="MsoNormal"><i>Ideally, that HTTP request would be closed with a successful HTTP status code (e.g. HTTP 200) when the call was queued, so that I can report back to the user that they can wait
 for a callback. </i><u></u><u></u></p>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
<p class="MsoNormal">I understand his problem, but I see no way  of fixing it. The send http response command doesn’t seem to have any settings but the doc sent back. Is this normal behavior or can
 I do something with the doc being sent back to make it work?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0in 7.5pt 0in 0in">
<p class="MsoNormal"><span style="font-size:1pt"> </span><u></u><u></u></p>
</td>
<td style="padding:7.5pt 0in 7.5pt 7.5pt">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><b><span style="color:rgb(243,128,11)">Matthew Loraditch</span></b><b><span style="font-size:1pt;font-family:remialcxesans,serif;color:white">​</span></b><u></u><u></u></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><b><span style="color:gray">Sr. Network Engineer</span></b><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:7.5pt 0in 0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><span style="color:rgb(243,128,11)">p:</span><span style="color:gray"> </span><a href="tel:443.541.1518" target="_blank"><strong><span style="font-family:Calibri,sans-serif;color:gray;font-weight:normal;text-decoration:none">443.541.1518</span></strong></a><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><span style="color:rgb(243,128,11)">w:</span><span style="color:gray"> </span><a href="http://www.heliontechnologies.com/" target="_blank"><strong><span style="font-family:Calibri,sans-serif;color:gray;font-weight:normal;text-decoration:none">www.heliontechnologies.com</span></strong></a><u></u><u></u></p>
</td>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><span style="color:gray"> | </span><u></u><u></u></p>
</td>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><span style="color:rgb(243,128,11)">e:</span><span style="color:gray"> </span><a href="mailto:MLoraditch@heliontechnologies.com" target="_blank"><strong><span style="font-family:Calibri,sans-serif;color:gray;font-weight:normal;text-decoration:none">MLoraditch@heliontechnologies.com</span></strong></a><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="bottom" style="padding:0in">
<p class="MsoNormal"><a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:7.5pt 0in">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal" align="center" style="text-align:center">
<a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></p>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in 2.25pt 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center">
<a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></p>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="padding:0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in 2.25pt 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center">
<a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in">
<p class="MsoNormal"><span style="font-size:1pt"><a href="http://www.heliontechnologies.com/" target="_blank"><span style="font-size:11pt;color:windowtext;text-decoration:none"><u></u><u></u></span></a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none"> <u></u><u></u></span></a></p>
<p class="MsoNormal"><a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:windowtext;text-decoration:none">_______________________________________________<br>
cisco-voip mailing list<br>
<u><span style="color:blue">cisco-voip@puck.nether.net</span></u><br>
<u><span style="color:blue">https://puck.nether.net/mailman/listinfo/cisco-voip</span></u><u></u><u></u></span></a></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>

</blockquote></div>