<div dir="ltr"><div class="gmail_extra"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thanks !</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I looked at the jsonrpc docs.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">if it helps anyone, the string to end a dialog is "{"jsonrpc": "2.0", "method": "dlg.end_dlg","params": [<h_entry>,<h_id>], "id": 1}"</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Yes, you can send multiple commands at the same time for jsonrpc over http
- TCP workers are used there. It would be good if you listen on a different
port for http/rpc commands and set dedicated workers for it.

I am traveling, writing from mobile, so can't give any example right now.
But look at jsonrpc command and you should see the format, parameters have
to be provided as array, same order as for command line.

Cheers,
Daniel
On 16 Mar 2016 07:57, "Uri Shacked" <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">ushacked at gmail.com</a>> wrote:

><i> Thanks.
</i>><i>
</i>><i> Daniel,
</i>><i>
</i>><i> Regarding jsonrpc-s, 2 questions if I may:
</i>><i>
</i>><i> 1. Is it possible to send multiple requests that are handled simultaneously like sip workers? or are they handled one by one on the listening fifo ?
</i>><i>
</i>><i> 2. can you send an example of how to use dlg.dlg_end with the relevant dialog params?
</i>><i>
</i>><i> BR,
</i>><i>
</i>><i> Uri
</i>><i>
</i>><i>
</i>><i> The module is not intended to be used in a "scripted" mode.
</i>><i> It simply provides a simple web interface with all the available rpc commands.
</i>><i> Point a web browser to <a href="http://myserver:myport/http_rpc">http://myserver:myport/http_rpc</a> and browse
</i>><i> through the available rpc commands.
</i>><i> Suggestion on how to make the documentation more clear are welcome :)
</i>><i>
</i>><i> -ovidiu
</i>><i>
</i>><i> On Mon, Mar 14, 2016 at 6:22 AM, Daniel-Constantin Mierla
</i>><i> <miconda at <a href="http://gmail.com">gmail.com</a> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>> wrote:
</i>><i> >* CC-ing Ovidiu, the author of the module, maybe he can assist here and add a
</i>><i> *>* bit to documentation as well...
</i>><i> *>>* Cheers,
</i>><i> *>* Daniel
</i>><i> *>>>* On 13/03/16 19:03, Uri Shacked wrote:
</i>><i> *>>* Thank Alex, I find great comfort for not being the only one :-)
</i>><i> *>>* Actually, after straggling for a while I managed to send the following :
</i>><i> *>>* "<a href="http://myerver:myport/http_rpc/dlg/dlg.dlg_end?">Http://myerver:myport/http_rpc/dlg/dlg.dlg_end?</a> <<a href="http://myerver:myport/http_rpc/dlg/dlg.dlg_end?">http://myerver:myport/http_rpc/dlg/dlg.dlg_end?</a>> <h_entry> <h_id>"
</i>><i> *>>* The dialog is there but i get 404 "dialog not found" from the module....
</i>><i> *>>* Any one??
</i>><i> *>>* Hello,
</i>><i> *>>* It is indeed a pity that the module documentation doesn't have any
</i>><i> *>* examples of how to structure the request URL. So, you're not the only one.
</i>><i> *>>* -- Alex
</i>><i> *>>* On Sun, Mar 13, 2016 at 7:38 PM, Uri Shacked <ushacked at <a href="http://gmail.com">gmail.com</a> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>> wrote:
</i>><i> *>>>>* Hi,
</i>><i> *>>>>* Can any one help me with an example for RPC command sent over http?
</i>><i> *>>>>* My configuration works OK, I get the http request fine.
</i>><i> *>>* I lack the knowledge of how to send commands.....
</i>><i> *>>>>* For example, how do I send a command to list dialogs (dlg.list)?
</i>><i> *>>* Or to profile_get_size ?
</i>><i> *>>>>* <a href="http://myserver:myport/http_rpc/dlg/?????????">Http://myserver:myport/http_rpc/dlg/?????????</a> <<a href="http://myserver:myport/http_rpc/dlg/?????????">http://myserver:myport/http_rpc/dlg/?????????</a>>
</i>><i> *>>>>>>* Thanks,
</i>><i> *>>* Uri
</i>><i> *>>>>>>>>* _______________________________________________
</i>><i> *>* SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
</i>><i> *>* sr-users at <a href="http://lists.sip-router.org">lists.sip-router.org</a> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>
</i>><i> *>* <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>
</i>><i> *>>>* --
</i>><i> *>* Daniel-Constantin Mierla
</i>><i> *>* <a href="http://www.asipto.com/">http://www.asipto.com</a> <<a href="http://www.asipto.com/">http://www.asipto.com/</a>>
</i>><i> *>* <a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> <<a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a>> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a> <<a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>>
</i>><i> *>* Kamailio World Conference, Berlin, May 18-20, 2016 -
</i>><i> *>* <a href="http://www.kamailioworld.com/">http://www.kamailioworld.com</a> <<a href="http://www.kamailioworld.com/">http://www.kamailioworld.com/</a>>
</i>><i> *
</i>><i>
</i>><i>
</i>><i> --
</i>><i> VoIP Embedded, Inc.<a href="http://www.voipembedded.com/">http://www.voipembedded.com</a>
</i>><i>
</i>><i>
</i>><i> On Sun, Mar 13, 2016 at 8:03 PM, Uri Shacked <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">ushacked at gmail.com</a>> wrote:
</i>><i>
</i>>><i> Thank Alex, I find great comfort for not being the only one :-)
</i>>><i>
</i>>><i> Actually, after straggling for a while I managed to send the following :
</i>>><i>
</i>>><i> "<a href="http://myerver:myport/http_rpc/dlg/dlg.dlg_end?">Http://myerver:myport/http_rpc/dlg/dlg.dlg_end?</a> <h_entry> <h_id>"
</i>>><i>
</i>>><i> The dialog is there but i get 404 "dialog not found" from the module....
</i>>><i>
</i>>><i> Any one??
</i>>><i>
</i>>><i>
</i>>><i> Hello,
</i>>><i>
</i>>><i> It is indeed a pity that the module documentation doesn't have any
</i>>><i> examples of how to structure the request URL. So, you're not the only one.
</i>>><i>
</i>>><i> -- Alex
</i>>><i>
</i>>><i>
</i>>><i> On Sun, Mar 13, 2016 at 7:38 PM, Uri Shacked <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">ushacked at gmail.com</a>> wrote:
</i>>><i>
</i>>>><i> Hi,
</i>>>><i>
</i>>>><i> Can any one help me with an example for RPC command sent over http?
</i>>>><i>
</i>>>><i> My configuration works OK, I get the http request fine.
</i>>>><i> I lack the knowledge of how to send commands.....
</i>>>><i>
</i>>>><i> For example, how do I send a command to list dialogs (dlg.list)?
</i>>>><i> Or to profile_get_size ?
</i>>>><i>
</i>>>><i> <a href="http://myserver:myport/http_rpc/dlg/?????????">Http://myserver:myport/http_rpc/dlg/?????????</a>
</i>>>><i>
</i>>>><i>
</i>>>><i> Thanks,
</i>>>><i> Uri
</i>>>><i>
</i>>>><i>
</i>>>><i>
</i>>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
</i>><i> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">sr-users at lists.sip-router.org</a>
</i>><i> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</i>></pre></div></div>