[Freeswitch-users] ORIGINATOR_CANCEL doesn't stop the ringing at the called party.

Vincent Xia gmangudai at gmail.com
Mon Nov 11 13:44:32 MSK 2013


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
<action application="bridge" data="user/${destination_number}" />
in the dialplan xml.

however, if the call is handled by a lua script with a pattern like

sessionB = freeswitch.Session('user/xxxx');
if sessionB:ready() then
freeswitch.bridge(session, sessionB);
else
cause = sessionB:hangupCause();
if (cause == "NO_USER_RESPONSE" or cause=="NO_ANSWER") then
session:streamFile("user_no_answer.wav");
end
session:hangup();
end

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131111/ca7c90ac/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list