[Freeswitch-dev] Usage of some core channel functions

cmrienzo at gmail.com cmrienzo at gmail.com
Tue Apr 17 22:30:16 MSD 2012


Channel variables are strings that can be set/get just about everywhere in FreeSWITCH.  Often used in the dialplan to tweak behavior of a dialplan app. 

Private channel data is used by the module C code to store a pointer to some data that is referenced by a name.  This data would exist in the scope of the channel that it is set on.   One typical example is to store a media bug as private data so that it can be later removed from a session.




On Apr 17, 2012, at 12:14, "Mariusz Czulada" <manieq at wp.eu> wrote:

> Hi all,
> 
> While trying to add some features to mod_conference I found two functions for access channel data:
> 
> * switch_channel_get_variable(channel, "conference_controls");
> 
> This one is clear, but also
> 
> * switch_channel_get_private(channel, "_conference_autocall_list_");
> 
> Can somebody clarify to me (and maybe to others) what is the purpose of this mechanism? What kind of channel data are generally manipulated this way? Are there useable/settable from application level (dialplan or scripts)?
> 
> Regards,
> 
> Mariusz
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list