<div dir="ltr">please send your request to <a href="mailto:support@freeswitch.com">support@freeswitch.com</a><div><br></div><div>/b</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 23, 2018 at 5:53 PM, Greg Doermann <span dir="ltr"><<a href="mailto:gdoermann@perfectpitchtech.com" target="_blank">gdoermann@perfectpitchtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">We have been using </span><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">waitforresult to try and wait for AMD to come back with something but we are having issues with it hanging (never returning from that) and locking up a license). We have also tried using the amd_execute_on_person command as it doesn't seem to be working. </span><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">We originally had the script setup to run amd_execute_on_person but that was never hit and we would end up just waiting the full timeout each time before checking the result: </span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(amd.lua)</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">dst_number = session:getVariable("sip_to_<wbr>user")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">initial_wait = session:getVariable("ppamd_<wbr>initial_wait")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">max_wait = session:getVariable("ppamd_<wbr>max_wait")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">if not max_wait then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> max_wait = 3000<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">while (session:ready() and not session:answered()) do<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- Waiting for answer.<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:sleep(500)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">-- freeswitch.msleep(500)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">function on_finished(reason)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if reason == nil then reason = "unspecified" end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:setVariable("ppamd_<wbr>reason", reason)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("transfer", "process_amd XML default")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">if session:ready() and session:answered() then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Enable on %s.\n", dst_number))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if initial_wait then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:sleep(initial_wait)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> local use_amd = api:executeString("amd_<wbr>available")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if use_amd == "true" then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- Be sure to set these variables. They will stop the wait and immediatly transfer the call if it gets a hit<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:setVariable("amd_<wbr>execute_on_machine", "transfer amd_machine_detected XML default")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:setVariable("amd_<wbr>execute_on_person", "transfer amd_person_detected XML default")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:setVariable("amd_<wbr>execute_on_unsure", "transfer amd_unsure_detected XML default")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("voice_start")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- Giving some time to AMD to work on the call.<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- If a voicemail is detected, it will auto-transfer from the variables that are set.<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:sleep(max_wait)</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> local amd_finished_called = session:getVariable("amd_<wbr>finished_called")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if amd_finished_called == 'true' then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Finish script already called!\n"))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> else<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- NOTE: Hopefully this never gets called as the module should auto transfer this<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Timeout reached for vmd: %s\n", max_wait))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("voice_stop")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> local amd_detect = session:getVariable("amd_<wbr>status")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD amd_status: %s\n", amd_detect))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> on_finished(amd_detect)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> else<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("<wbr>WARNING", string.format("AMD not available for %s\n", dst_number))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> on_finished("unavailable")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">else<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("<wbr>WARNING", string.format("AMD Failed to run %s\n", dst_number))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> on_finished("failure")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> return<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font></blockquote><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">the amd_execute_on_XXX does not seem to do anything... The sleep would always max out and we would always hit the Timeout reached part of the script instead of getting transferred. </div></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">After that didn't work because we would always wait the sleep time (3 seconds) we scrapped transfers and tried handling the whole thing through a single lua script using <span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">waitforresult:</span></div><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div><span style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">DEFAULT_MAX_WAIT = 3000 -- in (ms)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">DEFAULT_INITIAL_WAIT = 100 -- in (ms)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">HUMAN_EXTENSION = "amd_queue"<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">UNSURE_EXTENSION = "amd_queue"</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">api = freeswitch.API()</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">dst_number = session:getVariable("sip_to_<wbr>user")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">initial_wait = session:getVariable("ppamd_<wbr>initial_wait") or DEFAULT_INITIAL_WAIT<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">max_wait = session:getVariable("ppamd_<wbr>max_wait") or DEFAULT_MAX_WAIT</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">while (session:ready() and not session:answered()) do<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:sleep(500)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">freeswitch.consoleLog("INFO", string.format("AMD Attempting on %s. \n", dst_number))</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">if initial_wait then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:sleep(initial_wait)<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">if session:ready() and session:answered() then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> local use_amd = api:executeString("amd_<wbr>available")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if use_amd == "true" then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Available Max Wait: %s, Initial Wait %s. \n", max_wait, initial_wait))</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> -- Allow AMD to run and analyze.</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD Voice start. \n")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("voice_start")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD Wait for result. \n")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("<wbr>waitforresult", string.format("%s", max_wait))</span><br></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD Voice stop. \n")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("voice_stop")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> amd_detect = session:getVariable("amd_<wbr>status")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Result: %s. \n", amd_detect))</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> if amd_detect == "machine" then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD Detected machine. \n")</span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:hangup()<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> return<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> elseif amd_detect == "person" then<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD Detected human, transfering call. \n")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("transfer", string.format("%s XML default", HUMAN_EXTENSION))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> return<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> else<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", string.format("AMD Unknown: %s. \n", amd_detect))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("transfer", string.format("%s XML default", UNSURE_EXTENSION))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> return<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> end<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">else<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> freeswitch.consoleLog("INFO", "AMD not enabled. \n")<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> session:execute("transfer", string.format("%s XML default", UNSURE_EXTENSION))<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"> return<br></span></font><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">end</span></font></blockquote><div style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div></span></div></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I prefer not having to do all that transferring around but to just run with waitforresult but it never comes back... </span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The dialplan extensions just connect the call to an agent. Once we do the transfer it all works. The only problem is we have to replace the:</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">session:execute("<wbr>waitforresult", string.format("%s", max_wait))</span></span></blockquote><div><br></div><div>with a sleep so no matter if the mod_com_amd detects its a person or not we ALWAYS have to wait the full sleep time. This is not really legal as we would be essentially abandoning every single call... </div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">Any thoughts on what we may be missing or how we could improve this?</span></font></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><font color="#000000"><img src="https://hipchat.freeswitch.org/files/1/9111/w0eGOzyOVyZQdMg/email_logo.png" width="200" height="66"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: 918-424-9378</font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><font color="#000000"><a href="https://www.facebook.com/freeswitch/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:11pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/l9_7QxvYIM4pcdS6eXAkIOZKqHnR2mYmt879_LZ93jSG-uGqOLzO0KVlBzTnPxn7QwU7I0Ednhi0MT_4nRGSobPt4f-LXMWr891Agu25Mvx-AD3k45rf6vUBquJW8NMPkHb_DBaK" width="23" height="23" alt="color-facebook-96.png" style="border:none"></span></a><span style="font-size:11pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor" style="color:rgb(17,85,204)" target="_blank"><img src="https://lh5.googleusercontent.com/_iuGyx4UVI8fg3j3y7xgK6SX7BeTVYO7CLvH29tkkdgRnugoB6Ry39J5IcLdAKinOWuYrprkLisaB8sxMNrHgXAaHBy-GC1510iJrNIwBP5bCM_LGbOisxBTgao6yWITZ4lgQZVD" width="23" height="23" alt="color-twitter-96.png" style="border:none"></a></span></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>