[Freeswitch-users] enter only existing conferences in dialplan.

Michael Collins msc at freeswitch.org
Tue Apr 3 19:22:43 MSD 2012


On Tue, Apr 3, 2012 at 8:06 AM, Anthony Minessale <
anthony.minessale at 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 at 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 at default> conference 3100 list count
Conference 3100 not found

freeswitch at default> conference 3100-192.168.1.79 list count
1
freeswitch at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120403/22efcc99/attachment.html 


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