<html><body><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("INFO")){</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>t_relay(); /<span class="Apple-style-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 class="Apple-tab-span" style="white-space:pre">
        </span>process_info_msg();</div><div>}</div><div>.</div><div>.</div><div>.</div><div><br></div><div>route[1]{</div><div><span class="Apple-tab-span" style="white-space:pre">        t_on_branch("2");
        t_on_failure("1");
        t_on_reply("2");</span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>process_invite_msg();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if ($fU == xxxx){</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>load_balance("1","transc");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>else {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>load_balance("2","transc");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>if(!t_relay()){</div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>sl_reply_error():</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>}</div></div><div><span class="Apple-tab-span" style="white-space:pre">
        </span>exit;</div><div>}</div><div><br></div><div>onreply_route[2]{</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>process_ok_msg();<br>}</div><div><br></div><div>I using opensips-1.6.2. My module is : kapanga -> opensips -> asterisk. Kapanga and Asterisk don'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></body></html>