<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">They are enabled by the vad params in the sofia profile xml<br>&lt;param name="vad"&gt;<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: Wednesday, February 13, 2008 10:17:23 AM<br>Subject: Re: [Freeswitch-dev] VAD, TALK and NOTALK events<br><br>





 

<style>
<!--
 _filtered {font-family:Courier;panose-1:2 7 4 9 2 2 5 2 4 4;}
 _filtered {font-family:Courier;panose-1:2 7 4 9 2 2 5 2 4 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EstiloCorreo17
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
 _filtered {margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Please correct me if I’m wrong.&nbsp; </span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">The events are indeed fired, but only if the
SWITCH_VAD_FLAG_EVENTS_TALK or NOTALK flags are set for an rtp_session.&nbsp;&nbsp; I
found no place in the code where those flags are set.&nbsp; That is what I meant by
not&nbsp; being “enabled”.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">I subscribed to the events and received nothing.&nbsp; Then I set the
flags on switch_rtp_enable_vad function, and then I started receiving the
events.&nbsp; Perhaps there is another way of doing it that I’m missing.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US">Cesar Cepeda.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);" lang="EN-US"> &nbsp;</span></p> 

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="ES">De:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="ES">
freeswitch-dev-bounces@lists.freeswitch.org
[mailto:freeswitch-dev-bounces@lists.freeswitch.org] <b>En nombre de </b>Anthony
Minessale<br>
<b>Enviado el:</b> Miércoles, 13 de Febrero de 2008 08:17<br>
<b>Para:</b> freeswitch-dev@lists.freeswitch.org<br>
<b>Asunto:</b> Re: [Freeswitch-dev] VAD, TALK and NOTALK events</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: Courier;">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>
</span></p> 

<div>

<p class="MsoNormal"><span style="font-family: Courier;">&nbsp;</span></p> 

</div>

<div>

<p class="MsoNormal"><span style="font-family: Courier;">Anthony Minessale II<br>
<br>
FreeSWITCH <a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
MSN:anthony_minessale@hotmail.com<br>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>
IRC: <a target="_blank" href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</span></p> 

</div>

<div>

<p class="MsoNormal"><span style="font-family: Courier;"><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</span></p> 

</div>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: Courier;"> &nbsp;</span></p> 

<div>

<p class="MsoNormal">----- 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; I 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 a 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 rel="nofollow" ymailto="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank" href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a></p> 

</div>

<p class="MsoNormal"><span style="font-family: Courier;"> &nbsp;</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<div class="MsoNormal" style="text-align: center;" align="center">

<hr align="center" size="1" width="100%">

</div>

<p class="MsoNormal">Never miss a thing. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs">Make Yahoo
your homepage.</a> </p> 

</div>

</div>

<!-- kill --><div><br><br>-----Inline Attachment Follows-----<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></div><br></div></div><br>
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a></body></html>