<p>Hi arif,</p>
<p>Did you try the asterisk cli command &quot;sip set debug on&quot; command already? </p>
<p>Regards,<br>
Ronald</p>
<div class="gmail_quote">On Mar 14, 2012 9:15 PM, &quot;Arif Hossain&quot; &lt;<a href="mailto:freefall1986@gmail.com">freefall1986@gmail.com</a>&gt; 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&#39;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&#39;ve &quot;straced&quot; my<br>
modification application which reports a successful sendmsg(). as its<br>
udp datagram it cant say anything about destination. i&#39;ve straced<br>
asterisk using &quot;strace asterisk -vvvvdddddd&quot; . it waits in read()<br>
syscall. i&#39;ve tried putting garbage data by netcat(nc -uvv<br>
&lt;asterisk_host&gt; 7160, where 7160 is the sip port i&#39;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&#39;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>