Perform a tcpdump of the traffic between nc and kamailio. IIRC, the server replies but from a different port and therefor the reply is discarded by nc (at least this was the issue with openser 1.x and I assume that the same issue is present with sip-router).
See the old reports for openser here: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2158069... https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=216627...
Regards, Ovidiu Sas
On Thu, Jun 16, 2011 at 12:46 PM, Asgaroth 00asgaroth00@gmail.com wrote:
Hi All,
I am trying to send a mi command over the mi_datagram udp socket. I dont seem to be getting a response back from the server. I am certain that it is something I am doing wrong.
I have mi_datagram loaded and listening on udp:1.1.1.1:8080.
I then try to send the following dispatcher mi command over to the mi_dg interface:
echo -ne ":ds_list:\n\n" | nc -w 1 -u 1.1.1.1 8080
I dont see any error in the log file, so it appears that the mi_datagram is processing the request, but I am not getting any response back.
The ds_list command works properly if I run it using "kamctl fifo ds_list", or if I go via "sercmd mi_dg ds_list" that works too.
Would anyone have an example bash/ksh/perl snippet that would help me on my way to communicating with this mi interface.
Any thoughts comments would be greatly appreciated.
Thanks
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users