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