event_route[xhttp:request] {
if ($hu =~ "hangupCall"){
$var(body) = $rb;
xhttp_reply("200", "OK", "","");
jansson_get_field($var(body), "callid", "$var(callid)");
jansson_get_field($var(body), "cseq", "$var(cseq)");
if (t_cancel_callid("$var(callid)", "$var(cseq)", "22")) {
xlog("L_NOTICE", "t_cancel_callid============");
}
exit;
}
xhttp_reply("404", "Not Found", "","");
exit;
}
According to this route, the answered call cannot be hung up。How should I hang up the
answered call in xhttp routing, similar to freeswitch's uuid_kill。
Show replies by date