VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
bjbrashier at gmail.com Guest
|
Posted: Tue Jun 16, 2009 4:31 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
How much power do I have with DTMF conference controls? The wiki doesn't have much information on this. For example, one of the things I'd like to do is take the currently existing "lock" and "unlock" actions and merge them into a "lock toggle" action. Preferably in XML configuration files. Is this even possible? If so, how would I get started?
There are a variety of small things like this that I need to implement. Would I be better off switching to Lua? |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Jun 16, 2009 4:40 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
What is the big picture application? Reason I ask is that the FS devs and community have a lot of experience so if they can see the big picture they might be able to offer better advice.
-MC
On Tue, Jun 16, 2009 at 2:26 PM, Bradley Brashier <bjbrashier@gmail.com (bjbrashier@gmail.com)> wrote:
|
|
Back to top |
|
|
intralanman at freeswi... Guest
|
Posted: Tue Jun 16, 2009 4:42 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
Bradley Brashier wrote:
Quote: | How much power do I have with DTMF conference controls? The wiki
doesn't have much information on this. For example, one of the things
I'd like to do is take the currently existing "lock" and "unlock"
actions and merge them into a "lock toggle" action. Preferably in XML
configuration files. Is this even possible? If so, how would I get
started?
| you could do this by having a script listen on the event socket...
instead of using the default controls, you could just listen for a
certain dtmf and then send the [un]lock command to the conference over
the event socket
-Ray
_______________________________________________
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 |
|
Back to top |
|
|
bjbrashier at gmail.com Guest
|
Posted: Tue Jun 16, 2009 6:34 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
Hmmm.... is that going to be easier than just modifying the mod_conference code to allow for a handfull of extra, simple commands? To me, it seems like for reasons of maintainability, etc, you want as few varied pieces as possible, in as few languages as possible. Socket scripting doesn't sound like it would be an extension of what I'm doing, now, more like a totally new method.
Of course, I'm saying this from a complete outside point of view, and am more than willing to admit that I don't necessarily know the best course.
On Tue, Jun 16, 2009 at 2:41 PM, Raymond Chandler <intralanman@freeswitch.org (intralanman@freeswitch.org)> wrote:
|
|
Back to top |
|
|
william.suffill at gma... Guest
|
Posted: Tue Jun 16, 2009 7:08 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
It depends pretty heavily on what you are trying to add function wise. If it's more in depth using the event socket would allow it to be used on any FreeSwitch server assuming it caught the dtmf and acted according without having to modify the core source code/recompile. It might be a bit more work at first but could be well worth it depending on your needs.
-- W |
|
Back to top |
|
|
bjbrashier at gmail.com Guest
|
Posted: Wed Jun 17, 2009 1:32 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
Well, since what I really need at this time is only about 5 commands of similar complexity to a toggle on something already extant, I've decided to just modify source. I can't imagine that people will be terribly interested in my modifications, but I know I'm interested in being able to stay updated with the current trunk, so I'll have to figure out how to deal with that.
I'll let you know if I have trouble.
On Tue, Jun 16, 2009 at 5:04 PM, William Suffill <william.suffill@gmail.com (william.suffill@gmail.com)> wrote:
|
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Wed Jun 17, 2009 2:21 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
I added the ability to call into your dialplan from the caller controls in conferences a while back. Depending on your goal, that might be an easy way to get your problem resolved. You can keep state using the hash api and hash on the conference name or some other useful thingie.
On Wed, Jun 17, 2009 at 1:18 PM, Bradley Brashier <bjbrashier@gmail.com (bjbrashier@gmail.com)> wrote:
Quote: | Well, since what I really need at this time is only about 5 commands of similar complexity to a toggle on something already extant, I've decided to just modify source. I can't imagine that people will be terribly interested in my modifications, but I know I'm interested in being able to stay updated with the current trunk, so I'll have to figure out how to deal with that.
I'll let you know if I have trouble.
|
--
-Rupa |
|
Back to top |
|
|
bjbrashier at gmail.com Guest
|
Posted: Wed Jun 17, 2009 4:46 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
So I found one interesting thing so far: the "lock" caller control actually does function as a toggle, and, in fact, "unlock" does not do anything. This goes against wiki docs on mod_conference, but is helpful in this instance.
I have a few other commands to work on, still. I found execute-application to be interesting, but since what I next need is a count of all conference participants, and no application already exists for that, I'm still going to have to write something else.
BB
On Wed, Jun 17, 2009 at 12:12 PM, Rupa Schomaker <rupa@rupa.com (rupa@rupa.com)> wrote:
|
|
Back to top |
|
|
j3flight at gmail.com Guest
|
Posted: Wed Jun 17, 2009 11:58 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
I haven't gone to the trouble (yet) of making this work, but I believe you
could use execute_application from the conference controls to do just about
anything with JavaScript...
Here's a wiki page I created after building a JavaScript IVR for a
conference server...
http://wiki.freeswitch.org/wiki/Examples_JavaScript_Conference_IVR
There are a couple functions in there for voicing user count, etc. So, I
believe you could stick those in a script by themselves and call them from
execute_application. Somehow, you would have to identify what user is
calling the script and what conference they're in. (You could possibly set
a session variable upon entering the conference, or parse all the
conferences until you find that session's UUID.)
I don't know what else you're trying to do, but once you get one of them
working, the rest should follow a similar template.
Post back if you make it work, I'm interested!
--
View this message in context: http://www.nabble.com/Controlling-Conference-Controls-tp24063307p24084409.html
Sent from the Freeswitch-users mailing list archive at Nabble.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 |
|
Back to top |
|
|
j3flight at gmail.com Guest
|
Posted: Wed Jun 17, 2009 11:58 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
I haven't gone to the trouble (yet) of making this work, but I believe
you could use execute_application from the conference controls to do
just about anything with JavaScript...
Here's a wiki page I created after building a JavaScript IVR for a
conference server...
http://wiki.freeswitch.org/wiki/Examples_JavaScript_Conference_IVR
There are a couple functions in there for voicing user count, etc. So,
I believe you could stick those in a script by themselves and call them
from execute_application. Somehow, you would have to identify what user
is calling the script and what conference they're in. (Once you're in
the javascript, you could check a "conference number" variable that you
set when the person entered the conference. Or, you could parse the
output of "conference list" until you found that session's UUID.)
I don't know what else you're trying to do, but once you get one of them
working, the rest should follow a similar template.
Post back if you make it work, I'm interested!
_______________________________________________
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 |
|
Back to top |
|
|
jcromes at gmail.com Guest
|
Posted: Wed Jun 17, 2009 11:58 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
I haven't gone to the trouble (yet) of making this work, but I believe
you could use execute_application from the conference controls to do
just about anything with JavaScript...
This Wiki page has some good JavaScript examples...
http://wiki.freeswitch.org/wiki/Examples_JavaScript_Conference_IVR
There are a couple functions in there for voicing user count, etc.
So, I *believe* you could stick those in a script by themselves and
call them using execute_application out of the caller controls...
Somehow, you would have to identify what user is calling the script
and what conference they're in. (Once you're in the javascript, you
could check a "conference number" variable that you set when the
person entered the conference. Or, you could parse the output of
"conference list" until you found that session's UUID.)
I don't know what else you're trying to do, but once you get one of
them working, the rest should follow a similar template.
Post back if you make it work, I'm interested!
_______________________________________________
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 |
|
Back to top |
|
|
j3flight at gmail.com Guest
|
Posted: Wed Jun 17, 2009 11:58 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
FYI: I fixed the Wiki documentation for the lock/unlock feature.
Bradley Brashier wrote:
Quote: | So I found one interesting thing so far: the "lock" caller control
actually does function as a toggle, and, in fact, "unlock" does not do
anything. This goes against wiki docs on mod_conference, but is
helpful in this instance.
|
_______________________________________________
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 |
|
Back to top |
|
|
j3flight at gmail.com Guest
|
Posted: Thu Jun 18, 2009 8:56 am Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
Wow, I apologize for the duplicate posts.
The mailing list didn't want to cooperate with me last night...
j3flight wrote:
Quote: | I haven't gone to the trouble (yet) of making this work, but I believe you
could use execute_application from the conference controls to do just about
anything with JavaScript...
Here's a wiki page I created after building a JavaScript IVR for a
conference server...
http://wiki.freeswitch.org/wiki/Examples_JavaScript_Conference_IVR
There are a couple functions in there for voicing user count, etc. So, I
believe you could stick those in a script by themselves and call them from
execute_application. Somehow, you would have to identify what user is
calling the script and what conference they're in. (You could possibly set
a session variable upon entering the conference, or parse all the
conferences until you find that session's UUID.)
I don't know what else you're trying to do, but once you get one of them
working, the rest should follow a similar template.
Post back if you make it work, I'm interested!
|
_______________________________________________
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 |
|
Back to top |
|
|
bjbrashier at gmail.com Guest
|
Posted: Thu Jun 18, 2009 9:34 am Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
What I did last night was to go ahead and modify mod_conference.c to include a new "count" conference control. I've got it getting to the right place, and spitting debug messages with the right data about which member and what the count is, but for some reason the text-to-speech isn't working. That's what I'll be tacking today.
The only other things I really need to figure out are a toggle for whether or not the moderator leaving ends the conference (from a DTMF, I have to clear all endconfs or something), and a command to mute all participants. Once I have those, I'm sure everything else will be a laydown.
I'm not opposed to other methods, but I am opposed to increased complexity. If I can do it all in C and XML, I prefer that to some C, some XML, some lua, some JS, etc. I'll take a closer look at your example when I get into the office to see if that's a more elegant solution than what I have.
On Wed, Jun 17, 2009 at 9:07 PM, <j3flight@gmail.com (j3flight@gmail.com)> wrote:
|
|
Back to top |
|
|
bjbrashier at gmail.com Guest
|
Posted: Thu Jun 18, 2009 5:26 pm Post subject: [Freeswitch-users] Controlling Conference Controls |
|
|
OK, so I did some more experimenting today. I found a problem with the code I'm using (again, this is off the current trunk, but with some small modifications):
conference_member_say in mod_conference.c is simply not working. There are several messages in there that can theoretically tell the user something, but all of them are bypassed in the vanilla build because the default profile plays a wav instead of generating them on the fly. If you take out the wav, the message is supposed to be generated. So I took out the wavs, but I'm not hearing any messages.
BTW, something I discovered last week: straight out-of-the-box with no other modifications, if you make any changes to the set of "default" caller controls in conference.conf.xml, they don't get taken. The "default" caller controls appear to get overwritten in a hard-coded fashion in mod_conference.c. A "feature", perhaps, but very confusing for us new users. Can we add some documentation in there to that effect, perhaps?
BB
On Thu, Jun 18, 2009 at 7:26 AM, Bradley Brashier <bjbrashier@gmail.com (bjbrashier@gmail.com)> wrote:
Quote: | What I did last night was to go ahead and modify mod_conference.c to include a new "count" conference control. I've got it getting to the right place, and spitting debug messages with the right data about which member and what the count is, but for some reason the text-to-speech isn't working. That's what I'll be tacking today.
The only other things I really need to figure out are a toggle for whether or not the moderator leaving ends the conference (from a DTMF, I have to clear all endconfs or something), and a command to mute all participants. Once I have those, I'm sure everything else will be a laydown.
I'm not opposed to other methods, but I am opposed to increased complexity. If I can do it all in C and XML, I prefer that to some C, some XML, some lua, some JS, etc. I'll take a closer look at your example when I get into the office to see if that's a more elegant solution than what I have.
On Wed, Jun 17, 2009 at 9:07 PM, <j3flight@gmail.com (j3flight@gmail.com)> wrote:
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|