[OpenSIPS-Users] error when use function t_relay

nguyen khue minhkhue49da at yahoo.com
Thu Sep 15 06:13:47 CEST 2011


Hi all,

I still cannot resolve this problem. Can you help me?

Thank you very much
Khue Nguyen.


________________________________
From: nguyen khue <minhkhue49da at yahoo.com>
To: "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Tuesday, September 13, 2011 11:19 AM
Subject: [OpenSIPS-Users] error when use function t_relay


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.
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110914/181e6456/attachment-0001.htm>


More information about the Users mailing list