[Freeswitch-users] ESL Mod_Conference Observations

Usama Zaidi itsusama at gmail.com
Wed Feb 13 14:05:56 MSK 2013


Hey,

Looks like I found a solution to this one as well, and turns out ESL is
MUCH more powerful then I thought, I've updated the wiki page for filters
if anyone wants to have a peek
http://wiki.freeswitch.org/wiki/Mod_event_socket#filter

Short answer, filter Conference-Unique-ID $ConfUUID

On Wed, Feb 13, 2013 at 3:32 PM, <
freeswitch-users-request at lists.freeswitch.org> wrote:

> ---------- Forwarded message ----------
> From: Usama Zaidi <itsusama at gmail.com>
> To: freeswitch-users at lists.freeswitch.org
> Cc:
> Date: Wed, 13 Feb 2013 15:24:58 +0500
> Subject: [Freeswitch-users] ESL Mod_Conference Observations
> Hi,
>
> Just wanted to know why don't I get any events on start/stop speaking
> conference joins/leaves if I do something like this:
>
> $con->events("plain","all");
> $con->events("plain","CUSTOM conference::maintenance");
> $con->sendRecv("filter Unique-ID $confUUID");
>
> Instead I've to do something like this:
>
> $con->events("plain","all");
> $con->events("plain","CUSTOM conference::maintenance");
> $con->sendRecv("filter Unique-ID $confmember1");
> $con->sendRecv("filter Unique-ID $confmember2");
> $con->sendRecv("filter Unique-ID $confmember3");
> .
> .
> .
>
> Which is useless in case you want to check if a user is entering/leaving a
> particular conference in a single inbound ESL script...
>
> What I'm doing instead now is something on these lines:
>
> $con->events("plain","all");
> $con->sendRecv("filter Unique-ID $CONFNAME");
> i//psuedocode
> if event equals PRESENCE_IN and presence-call-direction equals inbound then
> {
>     execute API command conference list confname
>     parse uuid from members add a filter update the hashtable for existing
> confmembers
> }
> //once we have the uuid filter added we'll get to know if that user
> leaves, so the logic for removing the filter is straight forward
> if event equals CUSTOM and subtype is CONFERENCE::MAINTANANCE
> {
>     if event action=del-member remove filter for UUID
> }
>
> I don't get ANY event if I'm filtering on conference UUID... I think that
> needs to be fixed, because its mod_conference which is throwing all those
> events.
>
> Regards.
>
> --
> I'd love to change the world, but they wont gimme the source code to it
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130213/5557b806/attachment.html 


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