Setting channel flags late
Hi guys A variable (e.g. liberal_dtmf) which has an underlying channel flag (e.g. CF_LIBERAL_DTMF) or some other internal representation or associated state can only be set at the beginning of the channel's lifetime, i.e. at the start of the call. What is the best place to add custom code to allow this to happen for a particular variable while the call is in progress? 1. With a variable-specific command (e.g. "uuid_liberal_dtmf <uuid> true") 2. By modifying uuid_setvar to carry out some custom logic 3. With the addition of a new generic command, e.g. uuid_setvar_deep, which could serve as a single point for folks to add their custom code, and to return an error for any variable which is not explicitly supported. Any thoughts? Regards, Richard -- Richard Brady M: +44 (0)7771 623 348 T: +44 (0)20 8144 8160 E: rnbrady@gmail.com
Probably 1 is the path of least resistance. On Tue, Jun 11, 2013 at 9:57 AM, Richard Brady <rnbrady@gmail.com> wrote:
Hi guys
A variable (e.g. liberal_dtmf) which has an underlying channel flag (e.g. CF_LIBERAL_DTMF) or some other internal representation or associated state can only be set at the beginning of the channel's lifetime, i.e. at the start of the call.
What is the best place to add custom code to allow this to happen for a particular variable while the call is in progress?
1. With a variable-specific command (e.g. "uuid_liberal_dtmf <uuid> true")
2. By modifying uuid_setvar to carry out some custom logic
3. With the addition of a new generic command, e.g. uuid_setvar_deep, which could serve as a single point for folks to add their custom code, and to return an error for any variable which is not explicitly supported.
Any thoughts?
Regards, Richard
-- Richard Brady M: +44 (0)7771 623 348 T: +44 (0)20 8144 8160 E: rnbrady@gmail.com
_________________________________________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thanks On 11 June 2013 20:02, Anthony Minessale <anthony.minessale@gmail.com>wrote:
Probably 1 is the path of least resistance.
On Tue, Jun 11, 2013 at 9:57 AM, Richard Brady <rnbrady@gmail.com> wrote:
Hi guys
A variable (e.g. liberal_dtmf) which has an underlying channel flag (e.g. CF_LIBERAL_DTMF) or some other internal representation or associated state can only be set at the beginning of the channel's lifetime, i.e. at the start of the call.
What is the best place to add custom code to allow this to happen for a particular variable while the call is in progress?
1. With a variable-specific command (e.g. "uuid_liberal_dtmf <uuid> true")
2. By modifying uuid_setvar to carry out some custom logic
3. With the addition of a new generic command, e.g. uuid_setvar_deep, which could serve as a single point for folks to add their custom code, and to return an error for any variable which is not explicitly supported.
Any thoughts?
Regards, Richard
participants (2)
-
Anthony Minessale
-
Richard Brady