announce conf count (total callers minus 1)?
this works great, thank you to whomever created it. is there a way to make the conf count = list count -1 so the playback will only speak total "other" callers instead of including the person who press the option? conf/dialplan/default/01_Announce_Conf_Count.xml: <include> <!-- Sample dialplan for announcing the call count --> <extension name="Announce Conf Count (Inline)"> <condition field="destination_number" expression="^ANNOUNCE_CONF_COUNT_PRIVATE$"> <action application="set" data="conf_count=${conference ${conference_name} list count}"/> <action application="log" data="INFO ${conf_count}"/> <action application="say" data="en number pronounced ${conf_count}"/> </condition> </extension> </include>
Try this: <action application="say" data="en number pronounced ${expr ${conf_count} - 1}"/> That's just off the top of my head, so if it doesn't work then tinker with it until you get it working. -MC On Sun, Dec 18, 2011 at 10:22 AM, Rodney <notlikeme75@yahoo.com> wrote:
this works great, thank you to whomever created it. is there a way to make the conf count = list count -1 so the playback will only speak total "other" callers instead of including the person who press the option?
conf/dialplan/default/01_Announce_Conf_Count.xml:
<include> <!-- Sample dialplan for announcing the call count --> <extension name="Announce Conf Count (Inline)"> <condition field="destination_number" expression="^ANNOUNCE_CONF_COUNT_PRIVATE$"> <action application="set" data="conf_count=${conference ${conference_name} list count}"/> <action application="log" data="INFO ${conf_count}"/> <action application="say" data="en number pronounced ${conf_count}"/> </condition> </extension> </include>
_________________________________________________________________________ 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-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
Oh, my apologies to Mariusz - I accidentally scrolled right past his post in this thread. :) -MC On Mon, Dec 19, 2011 at 11:53 AM, Michael Collins <msc@freeswitch.org>wrote:
Try this:
<action application="say" data="en number pronounced ${expr ${conf_count} - 1}"/>
That's just off the top of my head, so if it doesn't work then tinker with it until you get it working.
-MC
On Sun, Dec 18, 2011 at 10:22 AM, Rodney <notlikeme75@yahoo.com> wrote:
this works great, thank you to whomever created it. is there a way to make the conf count = list count -1 so the playback will only speak total "other" callers instead of including the person who press the option?
conf/dialplan/default/01_Announce_Conf_Count.xml:
<include> <!-- Sample dialplan for announcing the call count --> <extension name="Announce Conf Count (Inline)"> <condition field="destination_number" expression="^ANNOUNCE_CONF_COUNT_PRIVATE$"> <action application="set" data="conf_count=${conference ${conference_name} list count}"/> <action application="log" data="INFO ${conf_count}"/> <action application="say" data="en number pronounced ${conf_count}"/> </condition> </extension> </include>
_________________________________________________________________________ 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-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
participants (3)
-
Mariusz Czulada
-
Michael Collins
-
Rodney