<br><br><div class="gmail_quote">On Tue, Apr 3, 2012 at 8:06 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Try this:</div><div><br></div><condition field="${conference ${destination_number} list count}" expression="^\d+"><div><div><br></div></div></blockquote><br>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:<br>
<br><span style="font-family:courier new,monospace">freeswitch@default> conference list</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Conference 3300-192.168.1.79 (1 member rate: 48000)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2;loopback/9664-a;9f09f968-7d9e-11e1-b22d-0bde109daa55;Outbound Call;9664;hear|speak|floor;0;0;0;300</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Conference 3100-192.168.1.79 (1 member rate: 16000)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">1;loopback/9664-a;91e680da-7d9e-11e1-b224-0bde109daa55;Outbound Call;9664;hear|speak|floor;0;0;0;300</span><br style="font-family:courier new,monospace"><br>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:<br>
<br><condition field="${conference ${destination_number}-${domain} list count}" expression="^\d+"><br><br>If you run into any trouble then do the commands at fs_cli and see what happens. Here's some examples:<br>
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">freeswitch@default> conference 3100 list count</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Conference 3100 not found</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">freeswitch@default> conference 3100-192.168.1.79 list count</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">freeswitch@default> conference 3100-192.168.1.79 list </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1;loopback/9664-a;91e680da-7d9e-11e1-b224-0bde109daa55;Outbound Call;9664;hear|speak|talking|floor;0;0;0;300</span><br style="font-family:courier new,monospace">
<br><br>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!<br><br>-MC<br></div>