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