<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi All,<br>
<br>
I have been looking into the events TALK and NOTALK. I don't see
them firing and I am not sure why. I have added the following
variables to the dialplan:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); line-height: 1.3em; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(249, 249, 249);"><action application="export" data="fire_talk_events=true"/>
<action application="export" data="fire_not_talk_events=true"/></pre>
<br>
In my module, I am trying to catch the events by binding an event
handler here like so:<br>
<br>
switch_event_bind("CALLER TALKING", SWITCH_EVENT_TALK,
SWITCH_EVENT_SUBCLASS_ANY, vad_start_talking , NULL); <br>
switch_event_bind("CALLER NOT TALKING", SWITCH_EVENT_NOTALK,
SWITCH_EVENT_SUBCLASS_ANY, vad_stop_talking , NULL);<br>
<br>
I read a suggestion in the mailing list archives that one should use
the event type "SWITCH_EVENT_CUSTOM" with a subtype of
"conference::maintenance". I tried this also but I don't think my
problem is that I am not catching the event but rather the event is
simply never fired. Has anyone a working example of TALK and NOTALK
event handling?<br>
<br>
Many thanks,<br>
<br>
Ronnie<br>
</body>
</html>