Ozzyboshi left a comment (kamailio/kamailio#4503)

Hello @henningw and thanks for your help.
As stated in my previous message, the "drop;" is executed after branching, to 
be more specific I do something like:

`
t_on_branch(route1)
`

and then


```
branch_route[route1]
{
   route(route2);
}
```

inside route2 I invoke rtpengine to open audio ports

```
if(!rtpengine_offer($var(rtpp_flags), "auto-next"))
{
         ...
        route(ROUTE_DROP);
}

```
The mem leak occours when rtpengine_offer() returns false, this causes the 
execution of route drop which contains the "infamous" drop; instruction.

```
route[ROUTE_DROP]
{
        ; do some loggin here
        drop;
}
```

When this happens I get some hanging transaction, I can see them using  kamctl

`
/usr/sbin/kamcmd tm.list
`

The only way to get rid of them is to run 

`
/usr/sbin/kamcmd tm.clear
`

Otherwise they will stay there forever no matter if the transaction got a reply 
or not.
I can easily reproduce this on a lab machine, if I replace the 
if(!rtpengine_offer($var(rtpp_flags), "auto-next")) line with if (1) I 
constantly get mem leak. So i can reproduce the problem quite easily.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4503#issuecomment-3655914359
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4503/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to