Where can I find EventConsumer?? I search the wiki and contrib\<br><br>Thanks<br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 11:12 AM, Mathieu Rene <span dir="ltr">&lt;<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">Check out EventConsumer<div><br><div><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<div><span style="font-size: 12px;"><div>Mathieu Rene</div><div>Avant-Garde Solutions Inc</div><div>Office: + 1 (514) 664-1044 x100</div><div>Cell: +1 (514) 664-1044 x200</div><div><a href="mailto:mrene@avgs.ca" target="_blank">mrene@avgs.ca</a></div>
<div><br></div><div><br></div></span></div></div></span><br> </div><br><div><div><div></div><div class="h5"><div>On 3-Sep-09, at 8:05 AM, Michael Giagnocavo wrote:</div><br></div></div><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div link="blue" vlink="purple" lang="EN-US">
<div><div></div><div class="h5"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"><span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">You can call switch_event_bind directly, but I doubt that’ll achieve what you want.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"><span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;">
<span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">My guess is that it works the same as LUA or any of the other plugins – whatever higher level API is exposed for setting up events should make things just work.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"><span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;">
<span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">-Michael</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"><span style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"> </span></div>
<div style="border-style: solid none none; border-top: 1pt solid rgb(181, 196, 223); padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"><b><span style="font-size: 10pt; font-family: Tahoma,sans-serif;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma,sans-serif;"><span> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><span> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span> </span><b>On Behalf Of<span> </span></b>Phillip Jones<br>
<b>Sent:</b><span> </span>Thursday, September 03, 2009 8:27 AM<br><b>To:</b><span> </span><a href="mailto:freeswitch-users@lists.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b><span> </span>[Freeswitch-users] Subscribing to events in managed C# / .NET</span></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;"> </div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;,serif;">
Hi there,<br><br>mod_managed exposes EventReceivedFunction such that:<br><br> Session.EventReceivedFunction = (e) =&gt;<br> {<br>       Log.WriteLine(LogLevel.Alert, &quot;Received Event {0}&quot;, e.ToString());<br>       return &quot;&quot;;<br>
 };<br><br>should trap all events to which i subscribe.<br><br><br>But how do I subscribe to events? What is the .NET / managed equivalent of:<br><br>switch_event_bind(const char *id, switch_event_types_t event, const char *subclass_name, switch_event_callback_t callback, void *user_data);<br>
<br><br><br>Thank you!<br><br><br><br>Phillip Jones</div></div></div></div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" style="color: blue; text-decoration: underline;" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" style="color: blue; text-decoration: underline;" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">http://www.freeswitch.org</a><br></div></span></blockquote></div><br></div></div></div><br>_______________________________________________<br>

FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>