[Freeswitch-dev] How to get switch_core_session for a call

Giovanni Maruzzelli gmaruzz at celliax.org
Tue Aug 31 11:02:28 PDT 2010


On Tue, Aug 31, 2010 at 7:56 AM, Mathieu Rene <mrene_lists at avgs.ca> wrote:
> Hi,
>
>        switch_core_session_t *session;
>        if ((session = switch_core_session_locate(uuid_here))) {
>                /* do stuff with session */
>                switch_core_session_rwunlock(session);

Just to stress the point: note that the
"switch_core_session_rwunlock(session);" is MANDATORY when you're done
with what you want do to with the session, because
"switch_core_session_locate" will lock it automatically.

-giovanni


-- 
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618



More information about the FreeSWITCH-dev mailing list