[OpenSIPS-Users] error when use function t_relay

Vlad Paiu vladpaiu at opensips.org
Thu Sep 15 10:03:32 CEST 2011


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 <mailto: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/3698f16f/attachment.htm>


More information about the Users mailing list