<div dir="ltr"><div dir="ltr">Il giorno mar 24 nov 2020 alle ore 20:07 Abaci B <<a href="mailto:abaci64@gmail.com">abaci64@gmail.com</a>> ha scritto:<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"><div dir="ltr"><div>1) You mean the session is not ended or the script is still running? doing a hangup doesn't automatically end the script. You can do <u><b>return</b><b> 'exit'</b></u> from the script (not from within a function in the script) to exit the script.</div></div></blockquote><div><br></div><div>Even with return 'exit' the calling mobile phone is still connected to the PBX. I need to close the call hanging up all sides.</div><div> </div><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"><div>2) Why don't you put the entire functionality in the lua script using session:playAndGetDigits() and then use a goto if you want to ask again for the order number.<br></div></div></blockquote><div><br></div><div>Good idea, i'll do in that way.<br></div></div></div>