> You have incorrect syntax 
>
> You should avoid trying to do raw commands over the socket and use one of the existing esl client libs. 
>
> The wire format of the command you are trying to do is exactly 
>
> sendmsg <uuid>\n 
> call-command: hangup\n 
> hangup-cause: 501\n 
> \n 
>
> You are encapsulating it in an event which is incorrect.

Concerning FS-6576, Anthony what "esl client libs" you talking about ?
I use esl.jar library generated by make javamod in ibs/esl as described in 
https://wiki.freeswitch.org/wiki/Event_Socket_Library#Installation
There is SWIG generated function 
    public int sendMSG(org.freeswitch.esl.ESLevent p0, java.lang.String p1) { /* compiled code */ }
It wants ESLevent in input.
What is wrong with this library or my code?


                ESLevent outevt = new ESLevent("plain",null);
                String msg = "sendmsg " + channel_uuid +"\n" +
                        "call-command: hangup\n" +
                        "hangup-cause: 501\n\n";

                outevt.addBody(msg);
                int val = con.sendMSG(outevt, channel_uuid);


-- 
С уважением,
 daemonserj                          
mailto:daemonserj@gmail.com