I'm trying to get me head round events in Javascript. Looking at this page:<br><a href="http://wiki.freeswitch.org/wiki/Javascript_Event">http://wiki.freeswitch.org/wiki/Javascript_Event</a><br>...I'd thought I should be able to take the first example and run it in a call, so that it's listening for all(?) events. Then take the second example and fire an event.<br>
<br>But nothing is happening. I had a good read through this thread from a year ago:<br><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/038246.html">http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/038246.html</a><br>
...but it seemed to say the resolution was in the event-listener.<br><br>In the listener code I changed this:<br> if (type == "event") {<br> console_log("notice", "Event: " + event_obj.serialize() + "\n"); <br>
}<br>...to this:<br> console_log("notice", "something: " + type + "\n"); <br>
<br>And nothing comes up at all (unless I press a key for "dtmf")<br><br>Does the javascript event listener only listen for events on it's own session/channel somehow? I'd thought about adding something like this to the event-firer:<br>
e.addHeader("Unique-ID", "8e187c47-da72-471e-82af-adab0bae9347");<br><br clear="all">Cheers,<br>Fraser<br><br><br>