<div dir="ltr"><span style="color:rgb(80,0,80)">Hello Răzvan / Ovidiu,</span><div><font color="#500050"><br></font></div><div><font color="#500050">After disabling mi_html, my CP is working fine, i will be enabling more modules on it. </font> Thanks for your help!</div><div><br></div><div>Ovidiu, It would be good to have both portals running,but i am not getting to work the following comment:<br></div><div>"If you want to keep mi_html, then set a different root path: #modparam("mi_html", "root", "osips_mi") ", any other hint?</div><div><br></div><div>Thank you!</div><div><br></div><div><br></div><div><div><br></div><div> </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 3, 2020 at 8:22 AM Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</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">Hello Mario,<br>
<br>
It seems that you have both mi_http and mi_html modules loaded.<br>
By default, both modules have the root path set to mi and one of the<br>
modules is stealing the root path from the other.<br>
In your case, when you hit <a href="http://x.x.x.x:8888/mi" rel="noreferrer" target="_blank">http://x.x.x.x:8888/mi</a> , you are hitting a<br>
standalone management interface that is not part of opensips-cp. It's<br>
an alternative way to run mi commands through a web interface.<br>
<br>
If you want to have only opensips-cp, then umload mi_html.<br>
If you want to keep mi_html, then set a different root path:<br>
#modparam("mi_html", "root", "osips_mi")<br>
<br>
Hope this helps,<br>
Ovidiu<br>
<br>
On Sat, Oct 31, 2020 at 1:58 PM Mario San Vicente<br>
<<a href="mailto:mrsanvicente@gmail.com" target="_blank">mrsanvicente@gmail.com</a>> wrote:<br>
><br>
> Hello Răzvan ,<br>
> I was wrong with my diagnosis, cause i stopped receiving the http / 400 error. But when trying to monitor calls i see that the portal is not reflecting the real info, i tested dialogs and rtpproxy.<br>
> I do see the json reply on a trace, but it is not updated on the portal:<br>
><br>
> T <a href="http://127.0.0.1:47632" rel="noreferrer" target="_blank">127.0.0.1:47632</a> -> <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> [AP] #137<br>
> POST /mi HTTP/1.1..Host: 127.0.0.1:8888..Accept: */*..Content-Type: application/json..Content-Length: 49....{"jsonrpc":"2.0","id":1,"method":"rtpproxy_<br>
> show"}"id......._";i#4<br>
> #<br>
> T <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:47632" rel="noreferrer" target="_blank">127.0.0.1:47632</a> [A] #138<br>
> ......._..k#)...<br>
> #<br>
> T <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:47632" rel="noreferrer" target="_blank">127.0.0.1:47632</a> [AP] #139<br>
> HTTP/1.1 200 OK..Content-Length: 136..Content-Type: application/json..Date: Sat, 31 Oct 2020 17:34:22 GMT....{"jsonrpc":"2.0","result":[{"Set":0,"Nodes<br>
> ":[{"url":"udp:localhost:2123","index":0,"disabled":0,"weight":1,"recheck_ticks":0}]}],"id":1}.........._..k#4<br>
> --------------------------------<br>
> T <a href="http://127.0.0.1:47644" rel="noreferrer" target="_blank">127.0.0.1:47644</a> -> <a href="http://127.0.0.1:8888" rel="noreferrer" target="_blank">127.0.0.1:8888</a> [AP] #204<br>
> POST /mi HTTP/1.1..Host: 127.0.0.1:8888..Accept: */*..Content-Type: application/json..Content-Length: 78....{"jsonrpc":"2.0","id":1,"method":"dlg_list"<br>
> ,"params":{"index":0,"counter":20}}............._J.<br>
> #<br>
> T <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:47644" rel="noreferrer" target="_blank">127.0.0.1:47644</a> [A] #205<br>
> @......_........<br>
> #<br>
> T <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:47644" rel="noreferrer" target="_blank">127.0.0.1:47644</a> [AP] #206<br>
> HTTP/1.1 200 OK..Content-Length: 58..Content-Type: application/json..Date: Sat, 31 Oct 2020 17:42:14 GMT....{"jsonrpc":"2.0","result":{"count":0,"Dialo<br>
> gs":[]},"id":1}........._4...4.<br>
><br>
> Aside notes:<br>
> When enabling this line #modparam("mi_http", "root", "opensips_mi") , i can see the mi portal. <a href="http://x.x.x.x:8888/mi" rel="noreferrer" target="_blank">http://x.x.x.x:8888/mi</a> , which has lots of aditional info, but i have to disable it to get the json response and just get an http response pointing to the mi interface:<br>
> T <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:47654" rel="noreferrer" target="_blank">127.0.0.1:47654</a> [AP] #256<br>
> HTTP/1.1 200 OK..Content-Length: 1886..Content-Type: text/html..Date: Sat, 31 Oct 2020 17:55:45 GMT....<html><head><title>OpenSIPS Management Interface<br>
> </title><style type="text/css">body{margin:0;}body,p,div,td,th,tr,form,ol,ul,li,input,textarea,select,a{font-family:"lucida grande",verdana,geneva,aria<br>
> l,helvetica,sans-serif;font-size:14px;}a:hover{text-decoration:none;}a{text-decoration:underline;}.foot{padding-top:40px;font-size:10px;color:#333333;}<br>
> .foot a{font-size:10px;color:#000000;}table.center{margin-left:auto;margin-right:auto;}</style><meta http-equiv="Expires" content="0"><meta http-equiv=<br>
> "Pragma" content="no-cache"><link rel="icon" type="image/png" href="<a href="https://opensips.org/favicon.png" rel="noreferrer" target="_blank">https://opensips.org/favicon.png</a>"></head>.<body alink="#000000" bgcolor="#ffffff" l<br>
> ink="#000000" text="#000000" vlink="#000000"><table cellspacing="0" cellpadding="5" width="100%%" border="0"><tr bgcolor="#BBDDFF"><td colspan=2 valign<br>
> ="top" align="left" bgcolor="#EFF7FF" width="100%%"><br/><h2 align="center">OpenSIPS MI HTML Interface</h2><p align="center">OpenSIPS (3.1.0-dev (x86_6<br>
> 4/linux)) is running since <i>Sat Oct 31 11:55:35 2020</i></p><br/></td></tr></table>.<center>.<table border="0" cellpadding="3" cellspacing="0"><tbody<br>
> ><tr>.<td><a href='/mi/statistics'>statistics</a><td>.<td><a href='/mi/core'>core</a><td>.<td><a href='/mi/blacklists'>blacklists</a><td>.<td><a href='<br>
> /mi/httpd'>httpd</a><td>.<td><a href='/mi/tm'>tm</a><td>.<td><a href='/mi/usrloc'>usrloc</a><td>.<td><a href='/mi/dialog'>dialog</a><td>.<td><a href='/<br>
> mi/nathelper'>nathelper</a><td>.<td><a href='/mi/rtpproxy'>rtpproxy</a><td>.<td><a href='/mi/db_text'>db_text</a><td>.<td><a href='/mi/drouting'>drouti<br>
> ng</a><td>.</tr></tbody></table>..</center>.<div align="center" class="foot" style="margin:20px auto"><span style='margin-left:5px;'></span><a href="ht<br>
> tps://<a href="http://opensips.org" rel="noreferrer" target="_blank">opensips.org</a>">OpenSIPS web site</a><br/>Copyright © 2011-2015 <a href="<a href="http://www.voipembedded.com/" rel="noreferrer" target="_blank">http://www.voipembedded.com/</a>">VoIP Embedded, Inc.</a>. All rights res<br>
> erved.</div></body></html>.......!.._X.t.4<br>
><br>
> Thank in advace.<br>
><br>
><br>
> On Fri, Oct 30, 2020 at 8:45 PM Mario San Vicente <<a href="mailto:mrsanvicente@gmail.com" target="_blank">mrsanvicente@gmail.com</a>> wrote:<br>
>><br>
>> Hello Răzvan ,<br>
>><br>
>> Thanks alot, that made the trick.<br>
>><br>
>> I will check if something is not matching with the monit page cause that is not working , but that's another story.<br>
>><br>
>> Best regards.<br>
>> Mario<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Thu, Oct 29, 2020 at 3:49 AM Răzvan Crainea <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>> wrote:<br>
>>><br>
>>> As I see in your logs, OpenSIPS CP uses the `json` URL path for querying<br>
>>> MI, whereas the default root path is `mi`[1]. Either change the `root`<br>
>>> to `json`, or modify your OpenSIPS CP boxes config to `mi`.<br>
>>><br>
>>> [1] <a href="https://opensips.org/docs/modules/3.1.x/mi_http.html#param_root" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.1.x/mi_http.html#param_root</a><br>
>>><br>
>>> Best regards,<br>
>>><br>
>>> Răzvan Crainea<br>
>>> OpenSIPS Core Developer<br>
>>> <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
>>><br>
>>> On 10/28/20 11:23 PM, Mario San Vicente wrote:<br>
>>> > Thanks for the answer Johan,<br>
>>> ><br>
>>> > But i see that; the *mi_json* module has been renamed to<br>
>>> > *mi_http* module. and so: failed to load module mi_json.so<br>
>>> > <a href="https://www.opensips.org/Documentation/Migration-2-4-0-to-3-0-0" rel="noreferrer" target="_blank">https://www.opensips.org/Documentation/Migration-2-4-0-to-3-0-0</a><br>
>>> ><br>
>>> > I am using opensips 3.1<br>
>>> > I have this modules:<br>
>>> ><br>
>>> > loadmodule "httpd.so"<br>
>>> > modparam("httpd", "port", 8888)<br>
>>> > #### MI_HTTP module<br>
>>> > loadmodule "json.so"<br>
>>> > #loadmodule "mi_json.so"<br>
>>> > loadmodule "mi_http.so"<br>
>>> ><br>
>>> > Any other clue?<br>
>>> ><br>
>>> > Thank you<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>
>>> ><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>
>><br>
>><br>
>><br>
>> --<br>
>> Mario San Vicente<br>
>> Cheers!<br>
><br>
><br>
><br>
> --<br>
> Mario San Vicente<br>
> Cheers!<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>
<br>
<br>
<br>
-- <br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a><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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div>Mario San Vicente</div>
<div>Cheers!</div></div>