Hi,<br><br>I know that what I want to do is a bit odd but here is why:<br><br>When using Asterisk as PSTN gateway and using SIP INFO for DTMF digits, there is a problem with devices not understanding SIP INFO. When Asterisk sends out its INFO packet and gets back a negative reply, it stops bridging and throws away the whole call. That is a really bad issue on Asterisk side, but I just wanted to find a workaround.
<br><br>So what I wanted to do is drop negative replies on INFO packets, so Asterisk just retransmits them and does not get any feedback. Those INFO packets come through my loose route and there I put the following little statement in there:
<br><br>&nbsp; if(method==&quot;INFO&quot; &amp;&amp; src_ip == <a href="http://10.0.0.1">10.0.0.1</a> ) {<br>&nbsp;&nbsp;&nbsp; xlog(&quot;L_NOTICE&quot;,&quot; - INFO Request: %mb&quot;);<br>&nbsp;&nbsp;&nbsp; t_on_reply(&quot;7&quot;);<br>&nbsp;&nbsp;&nbsp; setflag(3);
<br>&nbsp; };<br><br>With that answers jump into onreply_route[7]. This part works ok.<br><br>onreply_route[7] {<br>&nbsp; if (search(&quot;CSeq:[0-9 ]+INFO&quot;)) {<br>&nbsp;&nbsp;&nbsp; xlog(&quot;L_NOTICE&quot;,&quot; - INFO Reply: %mb&quot;);
<br>&nbsp;&nbsp;&nbsp; if(t_check_status(&quot;405&quot;)) { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;L_NOTICE&quot;,&quot; - Dropping INFO Reply&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drop();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; }<br>}<br><br>This part does not work. I also tried creating a route just for dropping and then jumpinng into this route from my reply_route, but then I also only have the log line from that route, but drop does not work. I tried sl_send_reply, t_release and other commands of which I thought they might be helpful. But the &quot;offending answer&quot; is always transmitted to my gateway.
<br><br>Does anybody have an idea how to just &quot;throw away&quot; reply packets?<br><br>Thanks in advance,<br>Sebastian<br>