[OpenSIPS-Devel] [ opensips-Bugs-3597398 ] memory leak when using $T_reply_code in onreply_route
SourceForge.net
noreply at sourceforge.net
Wed Dec 19 09:28:49 CET 2012
Bugs item #3597398, was opened at 2012-12-18 23:45
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3597398&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: memory leak when using $T_reply_code in onreply_route
Initial Comment:
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);
}
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-12-19 00:28
Message:
Hi,
How the leak was observed ? was it pkg or shm memory ? do you have mem
dumps to show the actual leak ?
Regards,
Bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3597398&group_id=232389
More information about the Devel
mailing list