[OpenSIPS-Devel] [ opensips-Bugs-3590418 ] MI DATAGRAM specific commands fail

SourceForge.net noreply at sourceforge.net
Thu Nov 29 18:30:08 CET 2012


Bugs item #3590418, was opened at 2012-11-27 10:57
Message generated for change (Comment added) made by digipigeon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3590418&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Digipigeon (digipigeon)
Assigned to: Nobody/Anonymous (nobody)
Summary: MI DATAGRAM specific commands fail

Initial Comment:
Using 1.8.2, applying a different connector to my existing mi methods the following commands that I have issued work over ALL XMLRPC, FIFO, MI_HTTP & MI_DATAGRAM

version - WORKS ALL
uptime - WORKS ALL

However the following commands work on XMLRPC, FIFO, MI_HTTP but FAIL on MI_DATAGRAM 

All Passed with no arguments

dr_gw_status - FAILS ON MI_DATAGRAM
debug - FAILS ON MI_DATAGRAM

Regards Jonathan

----------------------------------------------------------------------

>Comment By: Digipigeon (digipigeon)
Date: 2012-11-29 09:30

Message:
Here are two examples for the following commands with full debug enabled:

Example with "debug"

Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: received :debug:#012
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: mi_buf is :debug:#012 and we have
received 8 bytes
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command starts here: debug:#012
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command is debug
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 8
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 0
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: we have a valid command
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: after identifing the command, the
received datagram is
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: parsing the command's params
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
ERROR:mi_datagram:mi_datagram_parse_tree: no data in the datagram
Nov 29 17:21:54 gluino /usr/sbin/opensips[15307]:
ERROR:mi_datagram:mi_datagram_server: failed to parse the MI tree

Example with "dr_gw_status"

Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: received :dr_gw_status:#012
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: mi_buf is :dr_gw_status:#012 and we
have received 15 bytes
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command starts here:
dr_gw_status:#012
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command is dr_gw_status
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 15
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 0
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: we have a valid command
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: after identifing the command, the
received datagram is
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: parsing the command's params
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
ERROR:mi_datagram:mi_datagram_parse_tree: no data in the datagram
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
ERROR:mi_datagram:mi_datagram_server: failed to parse the MI tree
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: received :dr_gw_status:#012
Nov 29 17:23:09 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: mi_buf is :dr_gw_status:#012 and we
have received 15 bytes


I have also included the working example for "version"
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: received :version:#012
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: mi_buf is :version:#012 and we have
received 10 bytes
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command starts here: version:#012
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: the command is version
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 10
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:identify_command: dtgram->len is 0
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: we have a valid command
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: after identifing the command, the
received datagram is
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: the command has no params
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: done parsing the mi tree
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: command process (version)succeded
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_write_node: writing the name <Server> and value
<OpenSIPS (1.8.2-notls (x86_64/linux))>
Nov 29 17:25:48 gluino /usr/sbin/opensips[15307]:
DBG:mi_datagram:mi_datagram_server: the response: 200 OK#012Server::
OpenSIPS (1.8.2-notls (x86_64/linux))#012 has been sent in 54 octets
Nov 29 17:25:48 gluino /usr/sbin/opensips[15308]:
DBG:mi_xmlrpc:default_method: starting up.....
Nov 29 17:25:48 gluino /usr/sbin/opensips[15308]:
DBG:mi_xmlrpc:default_method: done looking the mi command.
Nov 29 17:25:48 gluino /usr/sbin/opensips[15308]:
DBG:mi_xmlrpc:default_method: done parsing the mi tree.
Nov 29 17:25:48 gluino /usr/sbin/opensips[15308]:
DBG:mi_xmlrpc:default_method: done running the mi command.
Nov 29 17:25:48 gluino /usr/sbin/opensips[15308]:
DBG:mi_xmlrpc:default_method: done building response.


Regards Jonathan

----------------------------------------------------------------------

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-11-28 09:40

Message:
Hello,

Do you see any specific mi_datagram error messages when you trigger the
dr_gw_status or debug MI commands ? Do those commands fail all the time, or
randomly fail ?

Regards,
Vlad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3590418&group_id=232389



More information about the Devel mailing list