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
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
Ahh yes, you are correct, it appears to be responding from a different port:
[root@myhost sbin]# ngrep -q -t -P "" -W byline -d any host 1.1.1.1 and udp interface: any filter: (ip) and ( host 1.1.1.1 and udp )
U 2011/06/16 18:07:56.206350 1.1.1.2:59267 -> 1.1.1.1:8080 :ds_list:
U 2011/06/16 18:07:56.208460 1.1.1.1:51384 -> 1.1.1.2:59267 200 OK SET_NO:: 1 SET:: 1 URI:: sip:2.2.2.2:6060 flag=A priority=0 attrs=
I see in the comments from links you provided that symetric udp exchange was a feature request, do you know if this was ever requested as a new feature?
Thanks
On 16/06/2011 18:02, Ovidiu Sas wrote:
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
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
IIRC, the feature was requested during openser project (before the merge with sip-router) and it was lost after the merge. You can open a new one on the sip-router tracker.
Regards, Ovidiu Sas
On Thu, Jun 16, 2011 at 1:18 PM, Bruce McAlister bruce.mcalister@blueface.ie wrote:
Ahh yes, you are correct, it appears to be responding from a different port:
[root@myhost sbin]# ngrep -q -t -P "" -W byline -d any host 1.1.1.1 and udp interface: any filter: (ip) and ( host 1.1.1.1 and udp )
U 2011/06/16 18:07:56.206350 1.1.1.2:59267 -> 1.1.1.1:8080 :ds_list:
U 2011/06/16 18:07:56.208460 1.1.1.1:51384 -> 1.1.1.2:59267 200 OK SET_NO:: 1 SET:: 1 URI:: sip:2.2.2.2:6060 flag=A priority=0 attrs=
I see in the comments from links you provided that symetric udp exchange was a feature request, do you know if this was ever requested as a new feature?
Thanks
On 16/06/2011 18:02, Ovidiu Sas wrote:
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
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
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