TERMINATOR_USED_VARIABLE
I note that in switch_ivr_play_say.c there's an intriguing reference to SWITCH_READ_TERMINATOR_USED_VARIABLE on line 2015: if ((min_digits == 0) && (strlen(digit_buffer) == 0) && switch_channel_get_variable(channel, SWITCH_READ_TERMINATOR_USED_VARIABLE) != 0) It seems to me that this suggests that the terminator used in PAGD is stored, at least temporarily in a channel variable. Is there any way I can get my mitts on the value of this following a call to PAYG?
Oh yeay... Victory is mine! lastDigit = session:getVariable("read_terminator_used") Must put that in the PAGD wiki....
I note that in switch_ivr_play_say.c there's an intriguing reference to SWITCH_READ_TERMINATOR_USED_VARIABLE on line 2015:
if ((min_digits == 0) && (strlen(digit_buffer) == 0) && switch_channel_get_variable(channel, SWITCH_READ_TERMINATOR_USED_VARIABLE) != 0)
It seems to me that this suggests that the terminator used in PAGD is stored, at least temporarily in a channel variable.
Is there any way I can get my mitts on the value of this following a call to PAYG?
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2177 / Virus Database: 2437/5080 - Release Date: 06/19/12
Thanks for doing the leg work and wikifying it! -MC On Wed, Jun 20, 2012 at 4:18 AM, Alex <alex@thewinelake.com> wrote:
Oh yeay... Victory is mine!
lastDigit = session:getVariable("read_terminator_used")
Must put that in the PAGD wiki....
I note that in switch_ivr_play_say.c there's an intriguing reference to SWITCH_READ_TERMINATOR_USED_VARIABLE on line 2015:
if ((min_digits == 0) && (strlen(digit_buffer) == 0) && switch_channel_get_variable(channel, SWITCH_READ_TERMINATOR_USED_VARIABLE) != 0)
It seems to me that this suggests that the terminator used in PAGD is stored, at least temporarily in a channel variable.
Is there any way I can get my mitts on the value of this following a call to PAYG?
participants (2)
-
Alex
-
Michael Collins