I would use a phrase macro for this. In fact, this seems like such an obvious thing to do that I added a phrase macro to conf/lang/en/ivr/sounds.xml. Update to the latest latest like two seconds ago git and you will have it available. (You'll need to copy it over from the source directory to your install directory.)<br>
<br>The new macro is called other_callers_in_conf. In your example the extension would be this:<br><br><div><font face="'times new roman', 'new york', times, serif"><extension name="room1"></font></div>
<div><font face="'times new roman', 'new york', times, serif"> <condition
field="destination_number" expression="^301$"></font></div><div><font face="'times new roman', 'new york', times, serif"> <action application="set" data="conference_user_list=|"/></font></div>
<font face="'times new roman', 'new york', times, serif"> <action application="set" data="conf_count=${conference 301-127.0.0.1 list count}"/></font><div><font face="'times new roman', 'new york', times, serif"> <action application="log" data="INFO ${conf_count}"/><br>
</font><div><font face="'times new roman', 'new york', times, serif"><span style="white-space:pre-wrap">        </span></font><span style="font-family:'times new roman','new york',times,serif"> <!-- play current conference count--></span></div>
<font face="'times new roman', 'new york', times, serif"> <action application="playback" data="phrase:other_callers_in_conf:${conf_count}"/><br></font></div><font face="'times new roman', 'new york', times, serif"><span style="white-space:pre-wrap"></span> <action application="conference" data="301-127.0.0.1@default"/></font><div>
<font face="'times new roman', 'new york', times, serif"> <action application="transfer" data="300 xml default" /></font></div><font face="'times new roman', 'new york', times, serif">
</condition><br></extension> </font><br><br>The phrase macro does all the work. NOTE: I need to record a few new phrase files and then tweak the macro. In the meantime I encourage you to look at the macro that I added and tailor it to your needs.<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 12:45 PM, Rodney <span dir="ltr"><<a href="mailto:notlikeme75@yahoo.com">notlikeme75@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">Okay, I finally figured out how to do this hopefully since I know what conference they are entering and all seems to work accept when the room is empty. I am putting phrases before and after the say to make it more understandable to "some people" what the number means. </div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">scenario:</div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">When I enter a room with people the system says "there are" say count
"other callers" because it is a count without them in the room yet, unlike the normal caller control to call the announce extension when they are already in the room.</div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">this works fine when there is at least 1 other caller in the room. </div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">but when there isn't another caller and the room is empty. it says "there are" say count is a parse error so no digit read (need it to say zero) then it say "other callers" then says my normal you are in the conference alone message which for now i have changed to say "zero" so it says sort of backwards "there are" "other
callers' "zero" </div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div><font face="'times new roman', 'new york', times, serif">ERR] mod_say.c:130 Parse Error!</font><br>
</div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"> Could someone please help me understand why this Parse error could be happening on zero count. I would like to fix it. thank you.</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div><div>
<font face="'times new roman', 'new york', times, serif"><extension name="room1"></font></div><div><font face="'times new roman', 'new york', times, serif"> <condition
field="destination_number" expression="^301$"></font></div><div><font face="'times new roman', 'new york', times, serif"><action application="set" data="conference_user_list=|"/></font></div>
<div><font face="'times new roman', 'new york', times, serif"><span style="white-space:pre-wrap">        </span></font><span style="font-family:'times new roman','new york',times,serif"> <!-- play current conference count--></span></div>
<div><font face="'times new roman', 'new york', times, serif"> <action application="set" data="conf_count=${conference 301-127.0.0.1 list count}"/></font></div><div><font face="'times new roman', 'new york', times, serif"> <action application="log" data="INFO ${conf_count}"/></font></div>
<div><font face="'times new roman', 'new york', times, serif"> </font><span style="line-height:1.1em">
<action application="say" data="en number pronounced ${conf_count}"/></span></div><div><font face="'times new roman', 'new york', times, serif"> <action application="playback" data="C:/Program Files/FreeSWITCH/sounds/en/us/callie/digits/8000/othercallers.wav"/> </font></div>
<div><font face="'times new roman', 'new york', times, serif"><span style="white-space:pre-wrap">        </span><!-- add this call to the conference --></font></div><div><font face="'times new roman', 'new york', times, serif"><span style="white-space:pre-wrap">        </span><action application="conference" data="301-127.0.0.1@default"/></font></div>
<div><font face="'times new roman', 'new york', times, serif"> <action application="transfer" data="300 xml default" /></font></div><div><font face="'times new roman', 'new york', times, serif">
</condition></extension> </font></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>