[OpenSIPS-Users] Call_control and JSON-RPC

Dan Pascu dan at ag-projects.com
Wed Jun 26 11:16:55 EDT 2019


On 26 Jun 2019, at 15:11, Efelin Novak wrote:

> Hi,
> 
> I'm using a Kamailio version that does not support MI interface anymore. Call_control module works nice in all situations expect when it wants to kill the call (credit is gone). Is the Call_control module capable of using JSON-RPC instead of MI command?
> 
> When I change class ManagementInterface() so that the RPC command is not sent and I only call  os.system(command to kill a call using JSON-RPC), I get a Error messages like this:
> 
> kamailio[19687]: ERROR: call_control [call_control.c:839]: send_command(): did timeout waiting for an answer
> 
> The call is killed but I'm afraid that such error might cause errors in future (e.g.: memory leaking).
> 
> Is there any workaround?
> Is it possible the call_control ends the call in a different way than MI interface?

It is possible if you modify the code yourself to do it in whatever way you want. The stock call-control only uses the opensips MI interface and there are no plans to support anything else at the moment.

> Can I use os.system hack? Can I ignore these errors or I can get rid of them somehow?
> 
> Kind regards
> 
> Kamailio and Call-control are at newest version.
> 
> Efelin
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Dan







More information about the Users mailing list