<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 13.09.17 08:42, Sunil More wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANWJJq8bJe7ErJzQa3NPYULXfBHs+O_R9ikHPp1-i7ROt+JY4Q@mail.gmail.com">
<div dir="ltr">Hello All,
<div><br>
</div>
<div>Is there a method / command to kill calls related to one
dialog profile. Right now i have to find all dialogs for a
customer and loop through all the <span
style="color:rgb(80,0,80);font-size:12.8px">dialog hashes to
run </span><span style="color:rgb(80,0,80);font-size:12.8px">kamcmd
dlg.end_dlg till i can kill all calls. Is there a easier way
to do this.</span></div>
<div><font color="#500050"><span style="font-size:12.8px"><br>
</span></font></div>
</div>
</blockquote>
if you don't want to go down the path of adding a RPC command for it
(which requires C coding), then you can try some workaround
leveraging the function that sets the timeout by profile:<br>
<br>
-
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.f.dlg_set_timeout_by_profile">https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.f.dlg_set_timeout_by_profile</a><br>
<br>
This is a function to be executed in config, you can trigger it by
sending a special sip packet with sipsak or sipp. The alternative is
to send an http request that will be handled via xhttp module, which
then executes an event route block from config and you call the
function there.<br>
<br>
Because the function is not terminating the calls immediately, the
workaround is to use a very short time out, like few seconds.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>