<div>>This is a significant new fact for me. What you seem to be doing is<br>>calling the commands referenced in the conference api here<br>><br>><a href="http://wiki.freeswitch.org/wiki/Mod_conference#API_Reference" target="_blank">http://wiki.freeswitch.org/wiki/Mod_conference#API_Reference</a><br>
><br>>by using application="conference" and then the data string as the second<br>>part of the command. Am I correct in the assumption that you can do this.</div>
<div> </div>
<div>I agree that that's what it looks like. What I don't know is if it works. I got this example from the page <a href="http://wiki.freeswitch.org/wiki/Conferencing_and_Intercom" target="_blank">http://wiki.freeswitch.org/wiki/Conferencing_and_Intercom</a>. I never did exactly what you're trying, and never tried using the API in this fashion.</div>
<div> </div>
<div>><action application="set" data="member-list=${conference(${conf-id}<br>>list)}"/><br>><action application="execute_extension" data="do-kick"/><br>>and the figure out a regular expression to get participant-id and<br>
>caller-id out of the resultant string.<br>><br>>Or is this not how its done?</div>
<div><br>Even assuming that our understanding on the kick command is correct, and there's an accessible API here, I don't believe the above would actually populate your variable with the data that you want. I don't think it actually issues the command with the "set" application. Instead, you'd need to do something like</div>
<div> </div>
<div><action application="conference" data="${conf-id} list"/></div>
<div> </div>
<div>and then you'd have to capture the output somehow, which I also don't believe is possible.</div>
<div> </div>
<div>I'm hardly a master of XML, though, or of dialplans, so feel free to try it if you want. Just make sure you're logging everything so you can watch it all unfold.</div>
<div> </div>
<div>BB<br></div>
<div class="gmail_quote">On Wed, Aug 12, 2009 at 3:33 PM, Alan Chandler <span dir="ltr"><<a href="mailto:alan@chandlerfamily.org.uk" target="_blank">alan@chandlerfamily.org.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Bradley Brashier wrote:<br>...<br>
<div>> Before I go further, I want to make sure I understand what you're<br>> proposing. What you're essentially saying is that when the command to<br>> kick someone is pressed the person should be transferred out of the<br>
> conference, checked for moderator status, asked whom to kick (if so),<br>> and then let back in while the system kicks that person. The other<br>> commands would work similarly. Does this sound like a correct summary?<br>
<br></div>Absolutely what I am trying to do.<br><br>...<br>
<div>><br>> Followed by (I picked up the "kick" syntax from the wiki):<br>><br>> <action application="conference" data="$(conf-id) kick<br>> $(conf-user-id)"/><br>
<br></div>This is a significant new fact for me. What you seem to be doing is<br>calling the commands referenced in the conference api here<br><br><a href="http://wiki.freeswitch.org/wiki/Mod_conference#API_Reference" target="_blank">http://wiki.freeswitch.org/wiki/Mod_conference#API_Reference</a><br>
<br>by using application="conference" and then the data string as the second<br>part of the command. Am I correct in the assumption that you can do this.<br>
<div><br><br>><br>> Bigger problem: the conf-user-id he enters has to be the member ID that<br>> FS chose for the user he's trying to kick. That number will make sense<br>> if you're following the system closely, but for someone who doesn't know<br>
> FS internals, it will be impossible to know unless you broadcast it to<br>> him somehow. To my knowledge, there's no way to use any other identifier<br>> (like caller-id) to kick them with.<br><br></div>If my assumption about the use of the API above is correct, then<br>
couldn't I do something like<br><br><action application="set" data="member-list=${conference(${conf-id}<br>list)}"/><br><action application="execute_extension" data="do-kick"/><br>
and the figure out a regular expression to get participant-id and<br>caller-id out of the resultant string.<br><br>Or is this not how its done?<br><font color="#888888"><br><br><br><br>--<br></font>
<div>
<div></div>
<div>Alan Chandler<br><a href="http://www.chandlerfamily.org.uk/" target="_blank">http://www.chandlerfamily.org.uk</a><br><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br></div></div></blockquote></div><br>