[Freeswitch-users] announce count to user only entering conference - Parse Error

Rodney notlikeme75 at yahoo.com
Thu Jan 19 23:45:27 MSK 2012


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. 

scenario:

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.

this works fine when there is at least 1 other caller in the room. 

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" 

ERR] mod_say.c:130 Parse Error!


 Could someone please help me understand why this Parse error could be happening on zero count. I would like to fix it. thank you.


<extension name="room1">
      <condition field="destination_number" expression="^301$">
<action application="set" data="conference_user_list=|"/>
  <!-- play current conference count-->
        <action application="set" data="conf_count=${conference 301-127.0.0.1 list count}"/>
        <action application="log" data="INFO ${conf_count}"/>
        <action application="say" data="en number pronounced ${conf_count}"/>
        <action application="playback" data="C:/Program Files/FreeSWITCH/sounds/en/us/callie/digits/8000/othercallers.wav"/>   
<!-- add this call to the conference -->
<action application="conference" data="301-127.0.0.1 at default"/>
       <action application="transfer" data="300 xml default" />
    </condition></extension>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120119/ea0db9c0/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list