<div dir="ltr">I'm making changes in the DB and after a dp_reload It seems that OpenSips is not aware of the new data.<div>Btw I tried the mi_json and it works as expected.</div><div><br></div><div>Regards,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 7, 2015 at 3:34 PM, Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now you are mixing issues. The logs that you posted are showing that<br>
there are no issues with URL parsing.<br>
Also, there are no errors showing that a dialplan dp_reload is failing.<br>
How do you know that the dp_reload command failed?<br>
I tested this on trunk and it works fine.<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jul 7, 2015 at 2:05 AM, Alex Pappas <<a href="mailto:apappas@vieras.eu">apappas@vieras.eu</a>> wrote:<br>
> Hello,<br>
><br>
> I did exactly that!<br>
> The answer is 200ok from http but the reload doesn't happen.<br>
> Check the debug logs<br>
><br>
><br>
> opensips[35779]: DBG:httpd:answer_to_connection: START *** cls=(nil),<br>
> connection=0x1e45dd0, url=/mi/dialplan/dp_reload, method=GET,<br>
> versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)<br>
><br>
> opensips[35779]: DBG:httpd:getConnectionHeader:<br>
> Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8<br>
><br>
> opensips[35779]: DBG:httpd:answer_to_connection: accept_type=[-1]<br>
><br>
> opensips[35779]: DBG:httpd:answer_to_connection:<br>
> normalised_url=[/dialplan/dp_reload]<br>
><br>
> opensips[35779]: DBG:mi_http:mi_http_answer_to_connection: START ***<br>
> cls=(nil), connection=0x1e45dd0, url=/dialplan/dp_reload, method=GET,<br>
> versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)<br>
><br>
> opensips[35779]: DBG:mi_http:mi_http_parse_url: got mod [9][dialplan]<br>
><br>
> opensips[35779]: DBG:mi_http:mi_http_parse_url: index=9 url_len=19<br>
><br>
> opensips[35779]: DBG:mi_http:mi_http_parse_url: got cmd [0][dp_reload]<br>
><br>
> opensips[35779]: DBG:httpd:answer_to_connection:<br>
> MHD_create_response_from_data [0x7f310ac6c530:2602]<br>
><br>
><br>
> Do you have any idea on where the problem is ?<br>
><br>
><br>
> thanks<br>
><br>
> Alex<br>
><br>
><br>
><br>
> On Tue, Jul 7, 2015 at 2:32 AM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>><br>
>> Point your browser to<br>
>> <a href="http://127.0.0.1:8888/mi" rel="noreferrer" target="_blank">http://127.0.0.1:8888/mi</a><br>
>> You should see the main web interface and from there, navigate through the<br>
>> links.<br>
>><br>
>> --ovidiu<br>
>><br>
>> On Jul 6, 2015 2:45 PM, "Alex Pappas" <<a href="mailto:apappas@vieras.eu">apappas@vieras.eu</a>> wrote:<br>
>>><br>
>>> Hi,<br>
>>> From the default configuration i hit:<br>
>>> <a href="http://127.0.0.1:8888/mi/drouting/dr_gw_status" rel="noreferrer" target="_blank">http://127.0.0.1:8888/mi/drouting/dr_gw_status</a><br>
>>><br>
>>> On Mon, Jul 6, 2015 at 8:10 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>>>><br>
>>>> Make sure that you are pointing to the right url:<br>
>>>> <a href="http://www.opensips.org/html/docs/modules/devel/mi_http#id249072" rel="noreferrer" target="_blank">http://www.opensips.org/html/docs/modules/devel/mi_http#id249072</a><br>
>>>> http://[opensips_IP]:[opensips_mi_port]/[mi_http_root]<br>
>>>><br>
>>>> Regards,<br>
>>>> Ovidiu Sas<br>
>>>><br>
>>>> On Mon, Jul 6, 2015 at 10:51 AM, Alex Pappas <<a href="mailto:apappas@vieras.eu">apappas@vieras.eu</a>> wrote:<br>
>>>> > Dear all,<br>
>>>> ><br>
>>>> > I have default configuration for both the above modules, but I'm not<br>
>>>> > able to<br>
>>>> > send any commands.(ofc the httpd is loaded)<br>
>>>> ><br>
>>>> > When I try mi_http with get I always get back :<br>
>>>> > Response:<br>
>>>> > <html><br>
>>>> > <body><br>
>>>> > Unable to parse URL!<br>
>>>> > </body><br>
>>>> > </html><br>
>>>> ><br>
>>>> > When I try mi_xmlrpc_ng I always get "Unable to parse URL!" although<br>
>>>> > I'm<br>
>>>> > trying the example from the module documentation<br>
>>>> ><br>
>>>> > POST<br>
>>>> > Content-Type text/xml<br>
>>>> > <a href="http://127.0.0.1:8888/xmlrpc" rel="noreferrer" target="_blank">http://127.0.0.1:8888/xmlrpc</a><br>
>>>> ><br>
>>>> > <?xml version="1.0" ?><br>
>>>> > <methodCall><br>
>>>> > <methodName>get_statistics</methodName><br>
>>>> > <params><br>
>>>> > <param><br>
>>>> > <value><string>dialog:</string></value><br>
>>>> > </param><br>
>>>> > <param><br>
>>>> > <value><string>tm:</string></value><br>
>>>> > </param><br>
>>>> > </params><br>
>>>> > </methodCall><br>
>>>> ><br>
>>>> > Response:<br>
>>>> > <html><br>
>>>> > <body><br>
>>>> > Unable to parse URL!<br>
>>>> > </body><br>
>>>> > </html><br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > What am I doing wrong ??<br>
>>>> ><br>
>>>> > thanx in advance<br>
>>>> > Alex<br>
>>>> ><br>
>>>> ><br>
>>>> > _______________________________________________<br>
>>>> > Users mailing list<br>
>>>> > <a href="mailto:Users@lists.opensips.org">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>
>>>> --<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">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>
>>> --<br>
>>> Alexandros Pappas | Business Development | Vieras<br>
>>> Phone: <a href="tel:%2B30%206937630910" value="+306937630910">+30 6937630910</a><br>
>>> Email: <a href="mailto:apappas@vieras.eu">apappas@vieras.eu</a><br>
>>> Skype: alex.pappas1<br>
>>> Twitter: @rebel_alx<br>
>>><br>
>>><br>
>>><br>
</div></div><div class="HOEnZb"><div class="h5">>>> Business Intelligence through Social Media<br>
>>> <a href="http://www.vieras.eu" rel="noreferrer" target="_blank">www.vieras.eu</a><br>
>>> <a href="http://www.linkedin.com/company/vieras" rel="noreferrer" target="_blank">www.linkedin.com/company/vieras</a><br>
>>> <a href="http://www.facebook.com/VierasHotelMgmt" rel="noreferrer" target="_blank">www.facebook.com/VierasHotelMgmt</a><br>
>>> <a href="http://twitter.com/VierasHotelMgmt" rel="noreferrer" target="_blank">twitter.com/VierasHotelMgmt</a><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org">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">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>
> --<br>
> Alexandros Pappas | Business Development | Vieras<br>
> Phone: <a href="tel:%2B30%206937630910" value="+306937630910">+30 6937630910</a><br>
> Email: <a href="mailto:apappas@vieras.eu">apappas@vieras.eu</a><br>
> Skype: alex.pappas1<br>
> Twitter: @rebel_alx<br>
><br>
><br>
><br>
> Business Intelligence through Social Media<br>
> <a href="http://www.vieras.eu" rel="noreferrer" target="_blank">www.vieras.eu</a><br>
> <a href="http://www.linkedin.com/company/vieras" rel="noreferrer" target="_blank">www.linkedin.com/company/vieras</a><br>
> <a href="http://www.facebook.com/VierasHotelMgmt" rel="noreferrer" target="_blank">www.facebook.com/VierasHotelMgmt</a><br>
> <a href="http://twitter.com/VierasHotelMgmt" rel="noreferrer" target="_blank">twitter.com/VierasHotelMgmt</a><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">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>
</div></div><div class="HOEnZb"><div class="h5">--<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">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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="font-size:12.8000001907349px">Alexandros Pappas | Business Development | Vieras </span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Phone: +30 6937630910</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Email: </span><a href="mailto:apappas@vieras.eu" target="_blank">apappas@vieras.eu</a><span style="font-size:12.8000001907349px"> </span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Skype: alex.pappas1</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Twitter: @rebel_alx</span><div><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><img src="https://docs.google.com/uc?export=download&id=0B5I9MpvinoK0a1puTnppM2NyUnc&revid=0B5I9MpvinoK0UjdZQkdWQ1ZUazRPakNJVkl4bGRFNno3NlpjPQ" width="96" height="39"><br>Business Intelligence through Social Media<br><a href="http://www.vieras.eu" target="_blank">www.vieras.eu</a></span><span style="font-size:12.8000001907349px"><br></span><div><font color="#0000ee"><u><a href="http://www.linkedin.com/company/vieras" target="_blank">www.linkedin.com/company/vieras</a> </u></font></div><div><font color="#0000ee"><u><a href="http://www.facebook.com/VierasHotelMgmt" target="_blank">www.facebook.com/VierasHotelMgmt</a> </u></font></div><div><font color="#0000ee"><u><a href="http://twitter.com/VierasHotelMgmt" target="_blank">twitter.com/VierasHotelMgmt</a></u></font></div></div></div></div></div></div></div></div>
</div>