<p>Hi arif,</p>
<p>Did you try the asterisk cli command "sip set debug on" command already? </p>
<p>Regards,<br>
Ronald</p>
<div class="gmail_quote">On Mar 14, 2012 9:15 PM, "Arif Hossain" <<a href="mailto:freefall1986@gmail.com">freefall1986@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm using a packet interception module for modifying udp packets coming<br>
to asterisk sip port. now my packet modification application<br>
successfully forwards the packet but somehow there is no response from<br>
asterisk. it may be that the modifications destroyed sanity of the sip<br>
packet so asterisk is just ignoring it. or there may be problem inside<br>
my modification rule that is sending to a wrong socket. I want single<br>
out the problem. to do that i need to find the activity happening in the<br>
udp daemon runs under the hood of asterisk. so far i've "straced" my<br>
modification application which reports a successful sendmsg(). as its<br>
udp datagram it cant say anything about destination. i've straced<br>
asterisk using "strace asterisk -vvvvdddddd" . it waits in read()<br>
syscall. i've tried putting garbage data by netcat(nc -uvv<br>
<asterisk_host> 7160, where 7160 is the sip port i've defined in<br>
sip.conf) on the listening port of asterisk. but the<br>
read() does not returns. read() should return at whatever is available<br>
in udp socket. because packet's sanity check is left for upper layer<br>
code.<br>
<br>
so how should i go about debugging it?<br>
Thanks in advance.<br>
<br>
<br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div>