[Freeswitch-users] Confused about conferences

Alan Chandler alan at chandlerfamily.org.uk
Wed Aug 12 10:56:19 PDT 2009


I have been reading all the docs about conferences I can find and am 
getting somewhat confused.  What I am trying to do is set up a dialplan 
where I have subscribers with extensions in the 1xx range, and then to 
set an ability to have a series of conference rooms for each subscriber 
in the 21xx range where if the user enters is "own" conference he is the 
moderator, but if not he is just a normal user.

I want to be able for the moderator to do things like mute or kick people.

So dialplan would probably have something like this in it



     <extension name="user_conference">
       <condition field="destination_number" 
expression="^(2${caller_id_number})$">
         <action application="set" data="i_am_moderator=true">
	<action application="answer"/>
	<action application="conference" data="$1 at default+flags{moderator}"/>
       </condition>
       <condition field="destination_number" expression="^(21\d{2})^">
         <action application="set" data="i_am_moderator=false">
	<action application="answer"/>
	<action application="conference" data="$1 at default"/>
       </condition>
     </extension>
     <extension name="kick">
       <condition field="i_am_moderator" expression="true">
         <action application="play_and_get_digits" data="3 3 3 7000 # 
/ask-for-extension.wav /invalid.wav conf-user-id \d+" >

WHAT GOES HERE???

       </condition>
     </extension>


in the conference.conf.xml file, I would change the caller controls to 
include

   <caller-controls>
     <group name="somekeys">
        <control action="transfer" digits="9"   data="kick XML default"/>
     </group>
   </caller-controls>


My question (at the moment) is

In the WHAT GOES HERE place how do it

Kick extension ${conf-user-id}  (DOES IT REQUIRE A SCRIPT TO CALL THE 
Conference API?)
Re-Enter the moderator back into the conference
Re-Enter the ordinary user who happened to press 9 back into the conference

I am assuming I can't stop the non moderator getting the control - since 
all users get the same controls.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk





More information about the FreeSWITCH-users mailing list