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"><<a href="mailto:jlenk@frontiernet.net">jlenk@frontiernet.net</a>></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("all", "");<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>
><br>
> Hi there,<br>
><br>
> mod_managed exposes EventReceivedFunction such that:<br>
><br>
> Session.EventReceivedFunction = (e) =><br>
> {<br>
> Log.WriteLine(LogLevel.Alert, "Received Event {0}", e.ToString());<br>
> return "";<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<br>
> of:<br>
><br>
> switch_event_bind(const char *id, switch_event_types_t event, const char<br>
> *subclass_name, switch_event_callback_t callback, void *user_data);<br>
><br>
><br>
><br>
> Thank you!<br>
><br>
><br>
><br>
> Phillip Jones<br>
><br>
</div></div><div class="im">> _______________________________________________<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>
><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>