[Freeswitch-dev] Usage of some core channel functions
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
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (2)
-
cmrienzo@gmail.com
-
Mariusz Czulada