enter only existing conferences in dialplan.
I currently accept any "75xxx" numbers and transfer to a conference with pin with no problem, however currently if they mistype the number they end up creating a new conference and sit there all by their self waiting. I want to setup dialpllan entry that only allows a user to join a conference that already exists and is active. Have read thru the wiki, and the 2 FreeSWITCH books looking for examples on how to do this without creating database tables to store conference state. In reading, looks like I can use ${} and get a "conference list" and with regex patterns might be able to check for existence of valid conference ID before joining them. Does anyone have a simple approach to do this? Thanks Stephen
i can suggest: 1) make the PIN resemble the conference number 2) make an announcement of the conference number using "enter-sound" parameter http://wiki.freeswitch.org/wiki/Mod_conference -nandy On Tue, Apr 3, 2012 at 6:49 PM, Stephen Dame <sdame@207me.com> wrote:
I currently accept any “75xxx” numbers and transfer to a conference with pin with no problem, however currently if they mistype the number they end up creating a new conference and sit there all by their self waiting.****
** **
I want to setup dialpllan entry that only allows a user to join a conference that already exists and is active.****
** **
Have read thru the wiki, and the 2 FreeSWITCH books looking for examples on how to do this without creating database tables to store conference state…****
** **
In reading, looks like I can use ${} and get a “conference list” and with regex patterns might be able to check for existence of valid conference ID before joining them.****
** **
Does anyone have a simple approach to do this? ****
** **
Thanks****
Stephen****
** **
_________________________________________________________________________ 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
A lua script should be able to handle that easier than doing it in the dialplan. But yeah, a regex of an api call to a list sounds like it would work. Also - how does the FIRST person get in without this same safety mechanism kicking in? -Avi On Tue, Apr 3, 2012 at 1:49 PM, Stephen Dame <sdame@207me.com> wrote:
I currently accept any “75xxx” numbers and transfer to a conference with pin with no problem, however currently if they mistype the number they end up creating a new conference and sit there all by their self waiting.****
** **
I want to setup dialpllan entry that only allows a user to join a conference that already exists and is active.****
** **
Have read thru the wiki, and the 2 FreeSWITCH books looking for examples on how to do this without creating database tables to store conference state…****
** **
In reading, looks like I can use ${} and get a “conference list” and with regex patterns might be able to check for existence of valid conference ID before joining them.****
** **
Does anyone have a simple approach to do this? ****
** **
Thanks****
Stephen****
** **
_________________________________________________________________________ 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
Try this: <condition field="${conference ${destination_number} list count}" expression="^\d+"> On Tue, Apr 3, 2012 at 6:33 AM, Avi Marcus <avi@avimarcus.net> wrote:
A lua script should be able to handle that easier than doing it in the dialplan. But yeah, a regex of an api call to a list sounds like it would work.
Also - how does the FIRST person get in without this same safety mechanism kicking in? -Avi
On Tue, Apr 3, 2012 at 1:49 PM, Stephen Dame <sdame@207me.com> wrote:
I currently accept any “75xxx” numbers and transfer to a conference with pin with no problem, however currently if they mistype the number they end up creating a new conference and sit there all by their self waiting.****
** **
I want to setup dialpllan entry that only allows a user to join a conference that already exists and is active.****
** **
Have read thru the wiki, and the 2 FreeSWITCH books looking for examples on how to do this without creating database tables to store conference state…****
** **
In reading, looks like I can use ${} and get a “conference list” and with regex patterns might be able to check for existence of valid conference ID before joining them.****
** **
Does anyone have a simple approach to do this? ****
** **
Thanks****
Stephen****
** **
_________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Tue, Apr 3, 2012 at 8:06 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
Try this:
<condition field="${conference ${destination_number} list count}" expression="^\d+">
Stephen, as you can see you were on the right track w/ doing an API call to see if the conference exists. Just one quick note: be sure to put the full name of your conference in the above command. For example, in the default dialplan the conference room names have "-${domain}" appended to them. If you do anything like that when you create your conference then be sure to account for it. Here's an example of a few conferences on a vanilla install of FreeSWITCH: freeswitch@default> conference list Conference 3300-192.168.1.79 (1 member rate: 48000) 2;loopback/9664-a;9f09f968-7d9e-11e1-b22d-0bde109daa55;Outbound Call;9664;hear|speak|floor;0;0;0;300 Conference 3100-192.168.1.79 (1 member rate: 16000) 1;loopback/9664-a;91e680da-7d9e-11e1-b224-0bde109daa55;Outbound Call;9664;hear|speak|floor;0;0;0;300 Consider "3100" - the person dials 3100 to get into the conference but the actual name of the conference is "3100-192.168.1.79" where that IP address is my ${domain} value. In that case you could do something like this: <condition field="${conference ${destination_number}-${domain} list count}" expression="^\d+"> If you run into any trouble then do the commands at fs_cli and see what happens. Here's some examples: freeswitch@default> conference 3100 list count Conference 3100 not found freeswitch@default> conference 3100-192.168.1.79 list count 1 freeswitch@default> conference 3100-192.168.1.79 list 1;loopback/9664-a;91e680da-7d9e-11e1-b224-0bde109daa55;Outbound Call;9664;hear|speak|talking|floor;0;0;0;300 In any case, we invite you to experiment, get it working, and then update the wiki. Oh, and thank you for buying the two FS books! -MC
Thanks, for the help everyone, I'm off and running with all your advice, in my case I have an app {bigbluebutton] that creates the initial conf number using another dial plan entry. This is allowing an external DID to call in, and only join the valid conference that is already running with no pin needed. The application displays the conf number, so users just have to dial, and enter the valid conf number. Both books are great, and every time I dig into them a learn a bunch more. Regards, Stephen From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Tuesday, April 03, 2012 11:06 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] enter only existing conferences in dialplan. Try this: <condition field="${conference ${destination_number} list count}" expression="^\d+"> On Tue, Apr 3, 2012 at 6:33 AM, Avi Marcus <avi@avimarcus.net> wrote: A lua script should be able to handle that easier than doing it in the dialplan. But yeah, a regex of an api call to a list sounds like it would work. Also - how does the FIRST person get in without this same safety mechanism kicking in? -Avi On Tue, Apr 3, 2012 at 1:49 PM, Stephen Dame <sdame@207me.com> wrote: I currently accept any "75xxx" numbers and transfer to a conference with pin with no problem, however currently if they mistype the number they end up creating a new conference and sit there all by their self waiting. I want to setup dialpllan entry that only allows a user to join a conference that already exists and is active. Have read thru the wiki, and the 2 FreeSWITCH books looking for examples on how to do this without creating database tables to store conference state. In reading, looks like I can use ${} and get a "conference list" and with regex patterns might be able to check for existence of valid conference ID before joining them. Does anyone have a simple approach to do this? Thanks Stephen _________________________________________________________________________ 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 _________________________________________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (5)
-
Anthony Minessale
-
Avi Marcus
-
Michael Collins
-
Nandy Dagondon
-
Stephen Dame