[SR-Users] mi_datagram usage example

Bruce McAlister bruce.mcalister at blueface.ie
Thu Jun 16 19:18:25 CEST 2011


Ahh yes, you are correct, it appears to be responding from a different port:

[root at 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&group_id=139143
> https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=2166279&group_id=232389
>
>
> Regards,
> Ovidiu Sas
>
> On Thu, Jun 16, 2011 at 12:46 PM, Asgaroth <00asgaroth00 at 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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>





More information about the sr-users mailing list