[Freeswitch-users] Memory allocation "switch_core_session_alloc"

Anthony Minessale anthony.minessale at gmail.com
Thu Mar 31 02:51:48 MSD 2016


Correct.  The memory is allocated from the session's pool and will not be
valid when the call ends.

For persistent memory allocation, create your own pool when the module
loads, (or use the one passed to you in the init function) and use
switch_core_alloc instead.

What module are you writing?



On Wed, Mar 30, 2016 at 4:48 PM, Ahmed habiba <ahabiba at gmail.com> wrote:

> Hi,
>
> I’m trying to use “switch_core_session_alloc” in a new module however I
> notice in documentation the below note, does this mean that once the
> session hangup this memory segment will not be valid anymore and I should
> not use this segment again?, your kind feedback will be appreciated.
>
> *"Note:**the memory will be in scope as long as the session exists"*
>
>
> Thanks,
>
> Ahmed Habiba.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160330/38a8f340/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list