[OpenSIPS-Users] rtpengine_manage() fails when called from failure_route[] with additional flags.

Răzvan Crainea razvan at opensips.org
Fri Feb 15 04:54:23 EST 2019


Hi, Vitalii!

It looks you are running out of memory. Make sure you have properly 
adjusted opensips with enough private memory.

I don't think your patch is correct, since it does not parse flags for 
delete commands, although someone might need them.

Best regards,
Razvan

On 2/13/19 3:09 PM, Vitalii Aleksandrov wrote:
> Hi,
> 
> I use only rtpengine_manage() function of 
> rtpengine_{offer,answer,delete} and it is called from different 
> locations like request_route, onreply_route, failure_route.
> 
> To have everything in one place I call a route[RTPENGINE_MANAGE] which 
> in its turn prepares rtpengine parameters string (ICE, profiles, flags) 
> and calls rtpengine_manage(). When this route is called from 
> failure_route rtpengine_manage() is supposed to behave like 
> rtpengine_delete() and it does. The only problem is that when it 
> receives flags in its parameters string (no-rtcp-attribute in my case) 
> it fails with "rtpengine:parse_flags: error processing flag 
> `no-rtcp-attribute': no more memory" message instead of just ignoring 
> useless for delete operation parameters.
> 
> Attaching the patch that fixed this problem for me. Not sure if this is 
> a bug or lack of module documentation.
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

-- 
Răzvan Crainea
OpenSIPS Core Developer
   http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
   https://www.opensips.org/events



More information about the Users mailing list