Hi Khue,<div><br></div><div>Can you please post your full opensips.cfg file, and a packet capture so we can understand better what opensips is doing to the sip packets. A capture with ngrep with work as well. </div><div><br>
</div><div>That way we can try to help.<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 10:19 PM, nguyen khue <span dir="ltr">&lt;<a href="mailto:minhkhue49da@yahoo.com">minhkhue49da@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt">
<div>Hi all,</div><div><br></div><div>I have a module to process SIP message (INVITE, INFO, 200 OK, BYE). I have use t_relay function to capture 200 OK message in block onreply_route. But, After I use t_relay function, INFO, BYE, some ACKs messages cannot route to destination. If I insert some t_relay function in config file, it work normal.</div>
<div><br></div><div>ex:</div><div>if (is_method(&quot;INFO&quot;)){</div><div><span style="white-space:pre-wrap">        </span>t_relay();  /<span style="background-color:rgb(0, 0, 0)">/ </span><b><i style="background-color:rgb(255, 255, 255)">if this function is missing, the SIP INFO cannot reach the destination</i></b></div>
<div><span style="white-space:pre-wrap">
        </span>process_info_msg();</div><div>}</div><div>.</div><div>.</div><div>.</div><div><br></div><div>route[1]{</div><div><span style="white-space:pre-wrap">        t_on_branch(&quot;2&quot;);
        t_on_failure(&quot;1&quot;);
        t_on_reply(&quot;2&quot;);</span></div><div><span style="white-space:pre-wrap">        </span>process_invite_msg();</div><div><span style="white-space:pre-wrap">        </span>if ($fU == xxxx){</div><div><span style="white-space:pre-wrap">                </span>load_balance(&quot;1&quot;,&quot;transc&quot;);</div>
<div><span style="white-space:pre-wrap">        </span>}</div><div><span style="white-space:pre-wrap">        </span>else {</div><div><span style="white-space:pre-wrap">                </span>load_balance(&quot;2&quot;,&quot;transc&quot;);</div><div>
<span style="white-space:pre-wrap">        </span>}</div><div><div><span style="white-space:pre-wrap">        </span>if(!t_relay()){</div><div><span style="white-space:pre-wrap">                </span>sl_reply_error():</div><div><span style="white-space:pre-wrap">        </span>}</div>
</div><div><span style="white-space:pre-wrap">
        </span>exit;</div><div>}</div><div><br></div><div>onreply_route[2]{</div><div><span style="white-space:pre-wrap">        </span>process_ok_msg();<br>}</div><div><br></div><div>I using opensips-1.6.2. My module is : kapanga -&gt; opensips -&gt; asterisk. Kapanga and Asterisk don&#39;t register to opensips.</div>
<div>Please help me resolve this problem.</div><div><br></div><div>Thank you very much</div><div>Khue Nguyen.</div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Robert<br>
</div>