Is this using event socket? Pastebin your script so we can take a look...<br>-MC<br><br><div class="gmail_quote">On Wed, Mar 24, 2010 at 1:34 PM, Fraser Redmond <span dir="ltr">&lt;<a href="mailto:fraserredmond@gmail.com">fraserredmond@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I&#39;m trying to get me head round events in Javascript. Looking at this page:<br><a href="http://wiki.freeswitch.org/wiki/Javascript_Event" target="_blank">http://wiki.freeswitch.org/wiki/Javascript_Event</a><br>
...I&#39;d thought I should be able to take the first example and run it in a call, so that it&#39;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" target="_blank">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 == &quot;event&quot;) {<br>            console_log(&quot;notice&quot;, &quot;Event: &quot; + event_obj.serialize() + &quot;\n&quot;); <br>


    }<br>...to this:<br>    console_log(&quot;notice&quot;, &quot;something: &quot; + type + &quot;\n&quot;); <br>
<br>And nothing comes up at all (unless I press a key for &quot;dtmf&quot;)<br><br>Does the javascript event listener only listen for events on it&#39;s own session/channel somehow? I&#39;d thought about adding something like this to the event-firer:<br>


    e.addHeader(&quot;Unique-ID&quot;, &quot;8e187c47-da72-471e-82af-adab0bae9347&quot;);<br><br clear="all">Cheers,<br><font color="#888888">Fraser<br><br><br>
</font><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>