Exactly what I was after - thank you!<br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 1:54 PM, Jeff Lenk <span dir="ltr">&lt;<a href="mailto:jlenk@frontiernet.net">jlenk@frontiernet.net</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;">
<br>
try something like this<br>
<br>
EventConsumer con = new EventConsumer(&quot;all&quot;, &quot;&quot;);<br>
Event ev = con.pop(0);<br>
<br>
see lua sample -<br>
<a href="http://wiki.freeswitch.org/wiki/Lua#freeswitch.EventConsumer" target="_blank">http://wiki.freeswitch.org/wiki/Lua#freeswitch.EventConsumer</a><br>
<div><div></div><div class="h5"><br>
<br>
Phillip Jones-2 wrote:<br>
&gt;<br>
&gt; Hi there,<br>
&gt;<br>
&gt; mod_managed exposes EventReceivedFunction such that:<br>
&gt;<br>
&gt;  Session.EventReceivedFunction = (e) =&gt;<br>
&gt;  {<br>
&gt;        Log.WriteLine(LogLevel.Alert, &quot;Received Event {0}&quot;, e.ToString());<br>
&gt;        return &quot;&quot;;<br>
&gt;  };<br>
&gt;<br>
&gt; should trap all events to which i subscribe.<br>
&gt;<br>
&gt;<br>
&gt; But how do I subscribe to events? What is the .NET / managed equivalent<br>
&gt; of:<br>
&gt;<br>
&gt; switch_event_bind(const char *id, switch_event_types_t event, const char<br>
&gt; *subclass_name, switch_event_callback_t callback, void *user_data);<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thank you!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Phillip Jones<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
</div><font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Subscribing-to-events-in-managed-C-NET-tp3573619p3574945.html" target="_blank">http://n2.nabble.com/Subscribing-to-events-in-managed-C-NET-tp3573619p3574945.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>