<div dir="ltr"><div>Thanks Razvan. So the correct format is:<br>GET /json/dlg_end_dlg?params=1368%2C1091608310 if your h_entry is 1368 and h_id is 1091608310.<br>This works fine. Thanks again.<br><br></div>--- Jayesh<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 1:08 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Jayesh!<br>
<br>
According to the examples in the documentation[1], parameters should be separated using comma.<br>
<br>
[1] <a href="http://www.opensips.org/html/docs/modules/1.11.x/mi_json.html#id249590" target="_blank">http://www.opensips.org/html/<u></u>docs/modules/1.11.x/mi_json.<u></u>html#id249590</a><br>
<br>
Best regards,<br>
<br>
Razvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><div><div class="h5"><br>
<br>
On 07/22/2014 06:20 PM, Jayesh Nambiar wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello,<br>
Can somebody please help me in passing parameters in HTTP GET Request.<br>
I'm using mi_json to send commands to opensips. I wanted to end a<br>
running dialog based on certain conditions. For example, if my dialog-id<br>
is 1368:1091608310; I would normally run opensipsctl fifo dlg_end_dlg<br>
1368 1091608310 from the CLI.<br>
<br>
I tried the following from the http client:<br>
GET /json/dlg_end_dlg?params=1368%<u></u>201091608310 (Adding a space with %20)<br>
GET /json/dlg_end_dlg?params=1368:<u></u>1091608310 (sending the colon)<br>
GET /json/dlg_end_dlg?params=1368%<u></u>3A1091608310 (URL encoded the colon)<br>
<br>
But nothing above works. Somehow the params dont reach as expected to<br>
the opensips. When I run a command that dont expect any params it works<br>
well.<br>
For eg: GET /json/dlg_list works well and returns the running dialogs in<br>
json format as expected. But commands with parameters just fails !!<br>
<br>
I tried googling for examples but couldn't find much and I'm just doing<br>
trial and error for a while :(<br>
<br>
--- Jayesh<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>