Way to pass max-members from dialplan into conference?
I have setting max-members=10 in conference.conf.xml working. However, is there are way to pass in the max-members=10 from the dialplan/default.xml to mod_conference? I tried using action application="set" data="max-members=10" but it didn't work. Also tried action application="export" data="max-members=10" but it didn't work either.
From default.xml:
<extension name="nb_conferences"> <condition field="destination_number" expression="^(30\d{2})$"> <action application="answer"/> <!-- tried set and export here to no avail --> <action application="conference" data="$1-${domain_name}@default"/> Thanks, Robert
We don 't have this right now where you can set a var, but you could add it with one line around line 5265, just set confierence->max_members there based on the result of switch_channel_get_variable. This would let you set max_members when you first create a conference. If you would like it to be re-set with any caller, you could do it later down. Mike On Feb 9, 2010, at 4:14 PM, Robert Hadley wrote:
I have setting max-members=10 in conference.conf.xml working. However, is there are way to pass in the max-members=10 from the dialplan/default.xml to mod_conference? I tried using action application=”set” data=”max-members=10” but it didn’t work. Also tried action application=”export” data=”max-members=10” but it didn’t work either.
From default.xml: <extension name="nb_conferences"> <condition field="destination_number" expression="^(30\d{2})$"> <action application="answer"/> <!-- tried set and export here to no avail --> <action application="conference" data="$1-${domain_name}@default"/>
Thanks, Robert _______________________________________________ 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
On Tue, Feb 9, 2010 at 1:14 PM, Robert Hadley <robert.hadley@teotech.com>wrote:
I have setting max-members=10 in conference.conf.xml working. However, is there are way to pass in the max-members=10 from the dialplan/default.xml to mod_conference? I tried using action application=”set” data=”max-members=10” but it didn’t work. Also tried action application=”export” data=”max-members=10” but it didn’t work either.
From default.xml:
<extension name="nb_conferences">
<condition field="destination_number" expression="^(30\d{2})$">
<action application="answer"/>
<!-- tried set and export here to no avail -->
<action application="conference" data="$1-${domain_name}@default"/>
Thanks,
Robert
Robert, I checked with Brian and also took a look inside mod_conference.c. I didn't see any way that you could override the conference params that are contained in the conference profile. So you'll either need to make a new profile or join the big leagues and start trying out mod_xml_curl. :) -MC
or: svn commit -m"mod_conference add conference_max_members channel variable that can be set on the first channel calling a conference to override the profiles max-members param" Sending mod_conference/mod_conference.c Transmitting file data . Committed revision 16597. compile tested, for your building pleasure. Mike On Feb 9, 2010, at 6:09 PM, Michael Collins wrote:
On Tue, Feb 9, 2010 at 1:14 PM, Robert Hadley <robert.hadley@teotech.com> wrote: I have setting max-members=10 in conference.conf.xml working. However, is there are way to pass in the max-members=10 from the dialplan/default.xml to mod_conference? I tried using action application=”set” data=”max-members=10” but it didn’t work. Also tried action application=”export” data=”max-members=10” but it didn’t work either.
From default.xml:
<extension name="nb_conferences">
<condition field="destination_number" expression="^(30\d{2})$">
<action application="answer"/>
<!-- tried set and export here to no avail -->
<action application="conference" data="$1-${domain_name}@default"/>
Thanks,
Robert
Robert,
I checked with Brian and also took a look inside mod_conference.c. I didn't see any way that you could override the conference params that are contained in the conference profile. So you'll either need to make a new profile or join the big leagues and start trying out mod_xml_curl. :)
-MC
participants (3)
-
Michael Collins
-
Michael Jerris
-
Robert Hadley