[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] terminate a call on 183 state
From:       Antonio Couto <couto.a () gmail ! com>
Date:       2022-06-15 14:35:12
Message-ID: CABer2cv8ZnZEGOpCoVFWvdp4-1=yNswB_kJH=wre5uootncDRg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You save my day, I forgot the rtp commands for TM,
now i sent via jsonrcp and works!

Thanks a lot.
best regards.
Antonio Couto

Exemple using jsonrcp:

POST http://192.168.0.213:8181/RPC
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "method": "tm.cancel",
  "params": {
    "Callid": "f2c0411264d442f1aca784193d3475b0",
    "CSeq": "160"
  }
}

On Wed, Jun 15, 2022 at 11:05 AM Henning Westerholt <hw@gilawa.com> wrote:

> Hello,
>
>
>
> already tried this functions? You can call by any RPC methods available.
>
>
>
> https://kamailio.org/docs/modules/5.5.x/modules/tm.html#tm.rpc.cancel
>
>
> https://kamailio.org/docs/modules/5.5.x/modules/dialog.html#dlg.r.terminate_dlg
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users <sr-users-bounces@lists.kamailio.org> *On Behalf Of *Antonio
> Couto
> *Sent:* Wednesday, June 15, 2022 3:36 PM
> *To:* Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
> *Subject:* [SR-Users] terminate a call on 183 state
>
>
>
> Someone know how to terminate a call on TM module from a external
> application, http, websocket, udp or using other modules when the call on
> 183 state? I am making a answering machine detection analising audio from
> RTPEngine recording daemon , but i need to disconnect the call before is
> anwered byt remote side.
>
> Kamailio        INVITE       >>    Destination
>                   <<  100 trying
>                   << 183 session progress
>
> I need to comand Kamailio to drop this call from a external application in
> this point.
>
> I searched on each module but I can not find any solution.
>
> Thanks in advance
>

[Attachment #5 (text/html)]

<div dir="ltr">You save my day, I forgot the rtp commands for TM,<br>now i sent via \
jsonrcp and works!<br><br>Thanks a lot.<br>best regards.<br><div>Antonio \
Couto<br></div><div><br></div><div>Exemple using jsonrcp:</div><div><br></div>POST <a \
href="http://192.168.0.213:8181/RPC">http://192.168.0.213:8181/RPC</a><br>Content-Type: \
application/json<br><br>{<br>   &quot;jsonrpc&quot;: &quot;2.0&quot;,<br>   \
&quot;method&quot;: &quot;tm.cancel&quot;,<br>   &quot;params&quot;: {<br>      \
&quot;Callid&quot;: &quot;f2c0411264d442f1aca784193d3475b0&quot;,<br>      \
&quot;CSeq&quot;: &quot;160&quot;<br>   }<br>}<br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 15, 2022 at 11:05 \
AM Henning Westerholt &lt;<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="DE">
<div class="gmail-m_-5007931613974038498WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u>  <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">already tried this functions? You can call by \
any RPC methods available.<u></u><u></u></span></p> <p \
class="MsoNormal"><span><u></u>  <u></u></span></p> <p class="MsoNormal"><span><a \
href="https://kamailio.org/docs/modules/5.5.x/modules/tm.html#tm.rpc.cancel" \
target="_blank">https://kamailio.org/docs/modules/5.5.x/modules/tm.html#tm.rpc.cancel</a><u></u><u></u></span></p>
 <p class="MsoNormal"><span lang="EN-GB"><a \
href="https://kamailio.org/docs/modules/5.5.x/modules/dialog.html#dlg.r.terminate_dlg" \
target="_blank">https://kamailio.org/docs/modules/5.5.x/modules/dialog.html#dlg.r.terminate_dlg</a><u></u><u></u></span></p>
 <p class="MsoNormal"><span lang="EN-GB"><u></u>  <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u>  <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u>  <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span \
style="color:rgb(5,99,193)" \
lang="EN-GB">https://skalatan.de/blog/</span></a></span><span \
lang="EN-GB"><u></u><u></u></span></p> <p class="MsoNormal"><span \
lang="EN-GB">Kamailio services – </span><span><a href="https://gilawa.com/" \
target="_blank"><span style="color:rgb(5,99,193)" \
lang="EN-GB">https://gilawa.com</span></a></span><span \
lang="EN-GB"><u></u><u></u></span></p> <p class="MsoNormal"><span \
lang="EN-GB"><u></u>  <u></u></span></p> <div style="border-color:rgb(225,225,225) \
currentcolor currentcolor;border-style:solid none none;border-width:1pt medium \
medium;padding:3pt 0cm 0cm"> <p class="MsoNormal" \
style="margin-left:35.4pt"><b>From:</b> sr-users &lt;<a \
href="mailto:sr-users-bounces@lists.kamailio.org" \
target="_blank">sr-users-bounces@lists.kamailio.org</a>&gt; <b>On Behalf Of \
</b>Antonio Couto<br> <b>Sent:</b> Wednesday, June 15, 2022 3:36 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List &lt;<a \
href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a>&gt;<br> <b>Subject:</b> [SR-Users] \
terminate a call on 183 state<u></u><u></u></p> </div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u>  <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Someone know how to terminate a call \
on TM module from a external application, http, websocket, udp or using other modules \
when the call on 183 state? I am making a answering machine detection analising audio \
from RTPEngine recording daemon , but i need to disconnect the call before is anwered \
byt remote side.<br> <br>
Kamailio            INVITE          &gt;&gt;      Destination<br>
                           &lt;&lt;   100 trying<br>
                           &lt;&lt; 183 session progress<br>
<br>
I need to comand Kamailio to drop this call from a external application in this \
point.<br> <br>
I searched on each module but I can not find any solution.<br>
<br>
Thanks in advance<u></u><u></u></p>
</div>
</div>
</div>

</blockquote></div>



__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic