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