[go: up one dir, main page]

Menu

#601 memory leak when using $T_reply_code in onreply_route

1.8.x
closed-invalid
modules (454)
3
2015-04-06
2012-12-19
Anonymous
No

Memory leak when using $T_reply_code in base onreply_route ( not named onreply_route, so t_on_reply was not used)
Opensips 1.8.2 from source tar.
Reproduced consistently on both CentOS 5.8 and CentOS 6.3

pertinent part of script when memory leak:

onreply_route {
if ( $T_reply_code =~ "^18." )
$var(r_type) = "Ring";
else if ( $T_reply_code == "200" )
$var(r_type) = "Answer";
else
$var(r_type) = "Other";
xlog("L_ERR","Reply $var(r_type) $T_reply_code rm $rm si $si cid'$ci'\n");
}

Using $rs instead of $T_reply_code made it work. Also, naming the reply route and setting t_on_reply to it also solved the memory leak.

onreply_route {
if ( $rs == "100" ){
xlog("L_INFO", "Reply $rs rm $rm si $si cid '$ci'\n");
exit;
} else if ( $rs =~ "18." )
$var(r_type) = "Ring";
else if ( $rs == "200" )
$var(r_type) = "Answer";
else
$var(r_type) = "Other";
xlog("L_ERR","Reply type $var(r_type) $rs $rr rm $rm si $si via $(hdr(Via)[1]{via.host}) cid'$ci'\n");
#route(reply_logging);
}

Discussion

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
     
  • Bogdan-Andrei Iancu

    Hi,

    How the leak was observed ? was it pkg or shm memory ? do you have mem dumps to show the actual leak ?

    Regards,
    Bogdan

     
  • Bogdan-Andrei Iancu

    Could you provide a memory dump or so ? I cannot reproduce this.

     
  • Bogdan-Andrei Iancu

    • priority: 5 --> 3
     
  • Bogdan-Andrei Iancu

    • status: open --> open-invalid
     
  • Bogdan-Andrei Iancu

    Any updates here ?

     
  • Bogdan-Andrei Iancu

    • status: open-invalid --> closed-invalid
     

Log in to post a comment.