<div dir="ltr"><div>for a vanilla call process, the called party will hangup immediately after the caller cancels the call before it's answered, this is true when im using </div><div><action application="bridge" data="user/${destination_number}" /></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('user/xxxx');</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 == "NO_USER_RESPONSE" or cause=="NO_ANSWER") then</div>
<div><span class="" style="white-space:pre">                </span>session:streamFile("user_no_answer.wav");</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's answeredŁ¬this lua call process pattern is from wiki so im pretty sure it's being widely used, but why im having this problem? could someone figure this out?</div>
<div><br></div></div>