<div dir="ltr"><div>for a vanilla call process, the called party will hangup immediately after the caller cancels the call before it&#39;s answered, this is true when im using&nbsp;</div><div>&lt;action application=&quot;bridge&quot; data=&quot;user/${destination_number}&quot; /&gt;</div>
<div>in the dialplan xml.</div><div><br></div><div>however, if the call is handled by a lua script with a pattern like</div><div><br></div><div>sessionB = freeswitch.Session(&#39;user/xxxx&#39;);</div><div>if sessionB:ready() then</div>
<div><span class="" style="white-space:pre">        </span>freeswitch.bridge(session, sessionB);</div><div>else</div><div><span class="" style="white-space:pre">        </span>cause = sessionB:hangupCause();</div><div><span class="" style="white-space:pre">        </span>if (cause == &quot;NO_USER_RESPONSE&quot; or cause==&quot;NO_ANSWER&quot;) then</div>
<div><span class="" style="white-space:pre">                </span>session:streamFile(&quot;user_no_answer.wav&quot;);</div><div><span class="" style="white-space:pre">        </span>end</div><div><span class="" style="white-space:pre">        </span>session:hangup();</div>
<div>end</div><div><br></div><div>the called party is still ringing after the caller cancels the call before it&#39;s answeredŁ¬this lua call process pattern is from wiki so im pretty sure it&#39;s being widely used, but why im having this problem? could someone figure this out?</div>
<div><br></div></div>