[OpenSIPS-Devel] [opensips] mi_xmlrpc_ng & mi_json answer bug with pua_publish (#552)

Damien Sandrs notifications at github.com
Thu Jun 11 16:44:25 CEST 2015


It seems mi_xmlrpc_ng & mi_json can not build the XMLRPC or JSON answer when the modules are used together with pua_publish.

Jun 11 15:55:45 golgoth05 opensips[31577]: DBG:mi_json:mi_json_answer_to_connection: got an async reply                                                                                                                                        
Jun 11 15:55:45 golgoth05 opensips[31577]: DBG:httpd:answer_to_connection: MHD_create_response_from_callback
Jun 11 15:55:45 golgoth05 opensips[31577]: ERROR:mi_json:mi_json_flush_data: Unexpected NULL mi handler!

This "Unexpected NULL mi handler" when building the module response to the query happens with both modules.

Attached is a script that reproduces the error. The system should probably return a 500 Internal Server error. Please note that when I submit a wrong XML document using mi_json through a command-line telnet, it seems to work. But both XMLRPC and mi_json trigger the bug when being invoked from a PHP script. Perhaps there is a timing issue or something similar.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150611/f40f85dd/attachment.htm>


More information about the Devel mailing list