[OpenSIPS-Users] error when use function t_relay

nguyen khue minhkhue49da at yahoo.com
Tue Sep 13 06:19:27 CEST 2011


Hi all,

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.

ex:
if (is_method("INFO")){
t_relay();  // if this function is missing, the SIP INFO cannot reach the destination
process_info_msg();
}
.
.
.

route[1]{
t_on_branch("2"); t_on_failure("1"); t_on_reply("2");
process_invite_msg();
if ($fU == xxxx){
load_balance("1","transc");
}
else {
load_balance("2","transc");
}
if(!t_relay()){
sl_reply_error():
}
exit;
}

onreply_route[2]{
process_ok_msg();
}

I using opensips-1.6.2. My module is : kapanga -> opensips -> asterisk. Kapanga and Asterisk don't register to opensips.
Please help me resolve this problem.

Thank you very much
Khue Nguyen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110912/80560e78/attachment-0001.htm>


More information about the Users mailing list