[OpenSIPS-Users] mi_http and mi_xmlrpc_ng not able to send commands

Alex Pappas apappas at vieras.eu
Tue Jul 7 08:55:36 CEST 2015


Sorry I mean 2.1 version

On Tue, Jul 7, 2015 at 9:29 AM, Alex Pappas <apappas at vieras.eu> wrote:

> Is there any chance that it doesn't work on Opensisp 1.11 ?
> I don't see what else can I configure here..
>
> Alex
>
> On Tue, Jul 7, 2015 at 9:05 AM, Alex Pappas <apappas at vieras.eu> wrote:
>
>> Hello,
>>
>> I did exactly that!
>> The answer is 200ok from http but the reload doesn't happen.
>> Check the debug logs
>>
>>
>> opensips[35779]: DBG:httpd:answer_to_connection: START *** cls=(nil),
>> connection=0x1e45dd0, url=/mi/dialplan/dp_reload, method=GET,
>> versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)
>>
>> opensips[35779]: DBG:httpd:getConnectionHeader:
>> Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>
>> opensips[35779]: DBG:httpd:answer_to_connection: accept_type=[-1]
>>
>> opensips[35779]: DBG:httpd:answer_to_connection:
>> normalised_url=[/dialplan/dp_reload]
>>
>> opensips[35779]: DBG:mi_http:mi_http_answer_to_connection: START ***
>> cls=(nil), connection=0x1e45dd0, url=/dialplan/dp_reload, method=GET,
>> versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)
>>
>> opensips[35779]: DBG:mi_http:mi_http_parse_url: got mod [9][dialplan]
>>
>> opensips[35779]: DBG:mi_http:mi_http_parse_url: index=9 url_len=19
>>
>> opensips[35779]: DBG:mi_http:mi_http_parse_url: got cmd [0][dp_reload]
>>
>> opensips[35779]: DBG:httpd:answer_to_connection:
>> MHD_create_response_from_data [0x7f310ac6c530:2602]
>>
>>
>> Do you have any idea on where the problem is ?
>>
>>
>> thanks
>>
>> Alex
>>
>>
>> On Tue, Jul 7, 2015 at 2:32 AM, Ovidiu Sas <osas at voipembedded.com> wrote:
>>
>>> Point your browser to
>>> http://127.0.0.1:8888/*mi*
>>> You should see the main web interface and from there, navigate through
>>> the links.
>>>
>>> --ovidiu
>>> On Jul 6, 2015 2:45 PM, "Alex Pappas" <apappas at vieras.eu> wrote:
>>>
>>>> Hi,
>>>> From the default configuration i hit:
>>>> http://127.0.0.1:8888/*mi*/drouting/dr_gw_status
>>>>
>>>> On Mon, Jul 6, 2015 at 8:10 PM, Ovidiu Sas <osas at voipembedded.com>
>>>> wrote:
>>>>
>>>>> Make sure that you are pointing to the right url:
>>>>> http://www.opensips.org/html/docs/modules/devel/mi_http#id249072
>>>>> http://[opensips_IP]:[opensips_mi_port]/[mi_http_root]
>>>>>
>>>>> Regards,
>>>>> Ovidiu Sas
>>>>>
>>>>> On Mon, Jul 6, 2015 at 10:51 AM, Alex Pappas <apappas at vieras.eu>
>>>>> wrote:
>>>>> > Dear all,
>>>>> >
>>>>> > I have default configuration for both the above modules, but I'm not
>>>>> able to
>>>>> > send any commands.(ofc the httpd is loaded)
>>>>> >
>>>>> > When I try mi_http with get I always get back :
>>>>> > Response:
>>>>> > <html>
>>>>> > <body>
>>>>> > Unable to parse URL!
>>>>> > </body>
>>>>> > </html>
>>>>> >
>>>>> > When I try mi_xmlrpc_ng I always get "Unable to parse URL!" although
>>>>> I'm
>>>>> > trying the example from the module documentation
>>>>> >
>>>>> > POST
>>>>> > Content-Type text/xml
>>>>> > http://127.0.0.1:8888/xmlrpc
>>>>> >
>>>>> > <?xml version="1.0" ?>
>>>>> > <methodCall>
>>>>> >    <methodName>get_statistics</methodName>
>>>>> >    <params>
>>>>> >        <param>
>>>>> >            <value><string>dialog:</string></value>
>>>>> >        </param>
>>>>> >        <param>
>>>>> >            <value><string>tm:</string></value>
>>>>> >        </param>
>>>>> >   </params>
>>>>> > </methodCall>
>>>>> >
>>>>> > Response:
>>>>> > <html>
>>>>> > <body>
>>>>> > Unable to parse URL!
>>>>> > </body>
>>>>> > </html>
>>>>> >
>>>>> >
>>>>> >
>>>>> > What am I doing wrong ??
>>>>> >
>>>>> > thanx in advance
>>>>> > Alex
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > Users mailing list
>>>>> > Users at lists.opensips.org
>>>>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> VoIP Embedded, Inc.
>>>>> http://www.voipembedded.com
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Alexandros Pappas | Business Development | Vieras
>>>> Phone: +30 6937630910
>>>> Email: apappas at vieras.eu
>>>> Skype: alex.pappas1
>>>> Twitter: @rebel_alx
>>>>
>>>>
>>>>
>>>> Business Intelligence through Social Media
>>>> www.vieras.eu
>>>> *www.linkedin.com/company/vieras
>>>> <http://www.linkedin.com/company/vieras> *
>>>> *www.facebook.com/VierasHotelMgmt
>>>> <http://www.facebook.com/VierasHotelMgmt> *
>>>> *twitter.com/VierasHotelMgmt <http://twitter.com/VierasHotelMgmt>*
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>>
>> --
>> Alexandros Pappas | Business Development | Vieras
>> Phone: +30 6937630910
>> Email: apappas at vieras.eu
>> Skype: alex.pappas1
>> Twitter: @rebel_alx
>>
>>
>>
>> Business Intelligence through Social Media
>> www.vieras.eu
>> *www.linkedin.com/company/vieras
>> <http://www.linkedin.com/company/vieras> *
>> *www.facebook.com/VierasHotelMgmt
>> <http://www.facebook.com/VierasHotelMgmt> *
>> *twitter.com/VierasHotelMgmt <http://twitter.com/VierasHotelMgmt>*
>>
>
>
>
> --
> Alexandros Pappas | Business Development | Vieras
> Phone: +30 6937630910
> Email: apappas at vieras.eu
> Skype: alex.pappas1
> Twitter: @rebel_alx
>
>
>
> Business Intelligence through Social Media
> www.vieras.eu
> *www.linkedin.com/company/vieras <http://www.linkedin.com/company/vieras> *
> *www.facebook.com/VierasHotelMgmt
> <http://www.facebook.com/VierasHotelMgmt> *
> *twitter.com/VierasHotelMgmt <http://twitter.com/VierasHotelMgmt>*
>



-- 
Alexandros Pappas | Business Development | Vieras
Phone: +30 6937630910
Email: apappas at vieras.eu
Skype: alex.pappas1
Twitter: @rebel_alx



Business Intelligence through Social Media
www.vieras.eu
*www.linkedin.com/company/vieras <http://www.linkedin.com/company/vieras> *
*www.facebook.com/VierasHotelMgmt
<http://www.facebook.com/VierasHotelMgmt> *
*twitter.com/VierasHotelMgmt <http://twitter.com/VierasHotelMgmt>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150707/63820816/attachment-0001.htm>


More information about the Users mailing list