[SR-Users] Invoking RPC commands over HTTP
Ben Hood
0x6e6562 at gmail.com
Fri Mar 2 18:48:44 CET 2018
On Fri, Mar 2, 2018 at 11:06 AM, Daniel-Constantin Mierla
<miconda at 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?
More information about the sr-users
mailing list