<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">The events are fired.<br>I don't know what you mean by "enabled"<br><br>You can either bind an event to a callback<br>in the load function of your custom module.<br><br>or connect to mod_event_socket on tcp<br>and request "events talk notalk"<br><br>void my_event_handler(switch_event_t *event)<br>{<br><br>}<br><br>if (switch_event_bind(modname, SWITCH_EVENT_TALK, SWITCH_EVENT_SUBCLASS_ANY, my_event_handler, NULL)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; != SWITCH_STATUS_SUCCESS) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return SWITCH_STATUS_GENERR;<br>&nbsp;&nbsp;&nbsp; }<br><br>if (switch_event_bind(modname, SWITCH_EVENT_NOTALK, SWITCH_EVENT_SUBCLASS_ANY,
 my_event_handler, NULL)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; != SWITCH_STATUS_SUCCESS) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return SWITCH_STATUS_GENERR;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Cesar Cepeda &lt;cesar@auronix.com&gt;<br>To: freeswitch-dev@lists.freeswitch.org<br>Sent: Tuesday, February 12, 2008 6:53:03 PM<br>Subject:
 [Freeswitch-dev] VAD, TALK and NOTALK events<br><br>
Hi,<br><br>&gt;From 
looking 
at 
the 
code 
of 
switch_rtp.c&nbsp; 

can 
see 
that 
VAD 
is 
done 
if<br>enabled 
in 
the 
sip 
profile 
in 
order 
to 
not 
send 
packets 
when 
there 
is 
no<br>noise. 
There 
are 
also 
two 
events 
{TALK, 
NOTALK} 
which 
can 
be 
fired 
when 
VAD<br>kicks 
in, 
nevertheless 
these 
two 
events 
are 
enabled 
nowhere 
(or 
at 
least 
I<br>didn't 
find 

place 
in 
the 
code 
where 
they 
were 
enabled), 
so 
no 
matter 
if<br>you 
ask 
for 
them 
you 
don't 
receive 
them.&nbsp; 
My 
questions 
are 
the 
following:<br><br>Is 
there 
some 
particular 
reason 
for 
not 
enabling 
these 
two 
events?&nbsp; <br>Is 
the 
event 
queue 
easily 
overflowed 
if 
these 
two 
events 
are 
enabled?<br><br>Thanks.<br><br>Cesar 
Cepeda.<br><br><br>_______________________________________________<br>Freeswitch-dev 
mailing 
list<br><a ymailto="mailto:Freeswitch-dev@lists.freeswitch.org" href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div><br></div></div><br>



      <hr size=1>Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>

</body></html>