<div dir="ltr">Thanks for your reply., I've always wanted to work on the new module, but I cant seem to make it work properly. Can you point me in the right direction?<br><div><br></div><div>Thank you</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 28, 2020 at 2:58 AM Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27.08.2020 21:45, Vic Jolin wrote:<br>
> shell_exec("/usr/local/bin/opensips-cli -x mi dlg_end_dlg 83719145016");<br>
<br>
Hi Vic,<br>
<br>
If you're going to program on top of OpenSIPS 3.0, you might as well do <br>
it the right way, by enabling the "httpd" + "mi_http" modules.  Once <br>
loaded, you will be able to talk to OpenSIPS via JSON-RPC, which I'm <br>
sure PHP has a lot of convenient ways to perform.  Here is a network <br>
capture of closing a dialog by Call-ID:<br>
<br>
T 2020/08/27 21:52:49.833265 <a href="http://127.0.0.1:41286" rel="noreferrer" target="_blank">127.0.0.1:41286</a> -> <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> [AP] #92<br>
POST /mi HTTP/1.1.<br>
Accept-Encoding: identity.<br>
Content-Length: 112.<br>
Host: <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a>.<br>
User-Agent: Python-urllib/3.6.<br>
Content-Type: application/json.<br>
Connection: close.<br>
.<br>
<br>
<br>
T 2020/08/27 21:52:49.833274 <a href="http://127.0.0.1:41286" rel="noreferrer" target="_blank">127.0.0.1:41286</a> -> <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> [AP] #94<br>
{"jsonrpc": "2.0", "id": "5287", "method": "dlg_end_dlg", "params": <br>
["Y2IwYjQ2YmE2ZDg5MWVkNDNkZGIwZjAzNGM1ZDY"]}<br>
<br>
T 2020/08/27 21:52:49.833376 <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> -> <a href="http://127.0.0.1:41286" rel="noreferrer" target="_blank">127.0.0.1:41286</a> [AP] #96<br>
HTTP/1.1 200 OK.<br>
Connection: close.<br>
Content-Length: 89.<br>
Content-Type: application/json.<br>
Date: Thu, 27 Aug 2020 18:52:49 GMT.<br>
.<br>
<br>
<br>
T 2020/08/27 21:52:49.833387 <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> -> <a href="http://127.0.0.1:41286" rel="noreferrer" target="_blank">127.0.0.1:41286</a> [AP] #98<br>
{"jsonrpc":"2.0","error":{"code":404,"message":"Requested Dialog not <br>
found"},"id":"5287"}<br>
<br>
Hope this helps,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
OpenSIPS Summit 2020 Distributed<br>
   <a href="http://www.opensips.org/events/Summit-2020Distributed" rel="noreferrer" target="_blank">www.opensips.org/events/Summit-2020Distributed</a><br>
<br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>