[sr-dev] Acc: cdr extra2strar allocation issue and proposed fix

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 23 12:45:21 CEST 2014


Hello,

this is probably related to the value of pv buffer slots:

  http://www.kamailio.org/wiki/cookbooks/devel/core#pv_buffer_slots

Having a way to allocate dynamically could be a good alternative. I will 
check the patch and come back with the remarks.

Cheers,
Daniel

On 23/07/14 08:27, Lucian Balaceanu wrote:
> Hello,
>
> At 1&1 we have spotted an issue related to the cdr_extra parameters: 
> for more than 10 string cdr_extra parameters, the addresses used by 
> the new parameters overwrite the previous ones (this did not happen in 
> 3.1, but is reproducible since at least 3.3).
>
> I attached a patch that implements a solution where we allocate memory 
> for the cdr extra params with pkg_malloc() and free it once it is no 
> longer needed.
> Daniel, if there is no comment related to this solution, I will commit 
> the patch.
>
> Thank you,
> Lucian Balaceanu
>
>
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140723/88e7090d/attachment.html>


More information about the sr-dev mailing list