[OpenSIPS-Users] error when use function t_relay

nguyen khue minhkhue49da at yahoo.com
Fri Sep 16 04:26:31 CEST 2011


Hi Vlad,

I inserted t_relay after my functions, sip INFO, BYE work well. But, the 200 OK message is still repeat, I try call from some other PCs and it same.

Regards,
Khue Nguyen.


________________________________
From: Vlad Paiu <vladpaiu at opensips.org>
To: users at lists.opensips.org
Sent: Thursday, September 15, 2011 3:03 PM
Subject: Re: [OpenSIPS-Users] error when use function t_relay


 Hello,

t_relay() is in charge of applying all the message changes and
    sending the message out.
After it, you cannot do any other processing. Why not just revert
    the order, like :


if (is_method("INFO")){
process_info_msg();

t_relay(); 
}

Regards,

Vlad Paiu
OpenSIPS Developer
On 09/15/2011 07:13 AM, nguyen khue wrote: 
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
>
>
>
>
_______________________________________________
Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users 
_______________________________________________
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/20110915/1cf64189/attachment-0001.htm>


More information about the Users mailing list