On Fri, Mar 2, 2018 at 11:06 AM, Daniel-Constantin Mierla
<mico...@gmail.com> wrote:
> use jsonrcp_dispatch() when you want the rpc command response to be sent
> back via incoming transport (http in this case).
>
> jsonrpc_exec() should be used when you want to do it from normal SIP
> routing blocks and get the jsonrpc response in a local variable.

OK, so jsonrcp_dispatch() invokes the underlying RPC method defined in
the request and writes the result back into the HTTP response?

And jsonrpc_exec() invokes the underlying RPC method and instead of
writing the result back to the socket, it stores the result in a
variable?

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to