The events are fired.
I don't know what you mean by "enabled"

You can either bind an event to a callback
in the load function of your custom module.

or connect to mod_event_socket on tcp
and request "events talk notalk"

void my_event_handler(switch_event_t *event)
{

}

if (switch_event_bind(modname, SWITCH_EVENT_TALK, SWITCH_EVENT_SUBCLASS_ANY, my_event_handler, NULL)
        != SWITCH_STATUS_SUCCESS) {
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
        return SWITCH_STATUS_GENERR;
    }

if (switch_event_bind(modname, SWITCH_EVENT_NOTALK, SWITCH_EVENT_SUBCLASS_ANY, my_event_handler, NULL)
        != SWITCH_STATUS_SUCCESS) {
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
        return SWITCH_STATUS_GENERR;
    }


 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: Cesar Cepeda <cesar@auronix.com>
To: freeswitch-dev@lists.freeswitch.org
Sent: Tuesday, February 12, 2008 6:53:03 PM
Subject: [Freeswitch-dev] VAD, TALK and NOTALK events

Hi,

>From looking at the code of switch_rtp.c  I can see that VAD is done if
enabled in the sip profile in order to not send packets when there is no
noise. There are also two events {TALK, NOTALK} which can be fired when VAD
kicks in, nevertheless these two events are enabled nowhere (or at least I
didn't find a place in the code where they were enabled), so no matter if
you ask for them you don't receive them.  My questions are the following:

Is there some particular reason for not enabling these two events? 
Is the event queue easily overflowed if these two events are enabled?

Thanks.

Cesar Cepeda.


_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org



Never miss a thing. Make Yahoo your homepage.