you cannot do *all* custom events with /event plain custom<div>that command is expecting also a subclass param </div><div><br></div><div>/event plain custom CONFIG::AGENT_LIST</div><div><br>you have made a mistake if you think this unlocks heartbeat etc, probably you did events plain all and forgot.</div>
<div><br></div><div>When I do it from perl I do not see what you reported,  </div><div><br></div><div><br></div><div><div>perl <a href="http://test.pl">test.pl</a></div><div>[DEBUG] esl.c:1183 esl_recv_event() RECV HEADER [Content-Type] = [auth/request]</div>
<div>[DEBUG] esl.c:1353 esl_recv_event() RECV MESSAGE</div><div>Event-Name: SOCKET_DATA</div><div>Content-Type: auth/request</div><div><br></div><div><br></div><div>[DEBUG] esl.c:1381 esl_send() SEND</div><div>auth ClueCon</div>
<div><br></div><div><br></div><div>[DEBUG] esl.c:1183 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]</div><div>[DEBUG] esl.c:1183 esl_recv_event() RECV HEADER [Reply-Text] = [+OK accepted]</div><div>[DEBUG] esl.c:1353 esl_recv_event() RECV MESSAGE</div>
<div>Event-Name: SOCKET_DATA</div><div>Content-Type: command/reply</div><div>Reply-Text: +OK accepted</div><div><br></div><div><br></div><div>[DEBUG] esl.c:502 esl_sendevent() SEND EVENT</div><div>Event-Name: CUSTOM</div>
<div>Event-Subclass: CONFIG::AGENT_LIST</div><div><br></div><div><br></div><div>[DEBUG] esl.c:1183 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]</div><div>[DEBUG] esl.c:1183 esl_recv_event() RECV HEADER [Reply-Text] = [+OK]</div>
<div>[DEBUG] esl.c:1353 esl_recv_event() RECV MESSAGE</div><div>Event-Name: SOCKET_DATA</div><div>Content-Type: command/reply</div><div>Reply-Text: +OK</div></div><div><br></div><div><br></div><div><br></div><div><div>+OK log level  [7]</div>
<div>freeswitch@internal&gt; /event plain custom CONFIG::AGENT_LIST</div><div>+OK event listener enabled plain</div><div>RECV EVENT</div><div>Event-Subclass: CONFIG::AGENT_LIST</div><div>Core-UUID: 23c2fe9b-f686-45e6-b43b-a3431d32d3e2</div>
<div>FreeSWITCH-Hostname: <a href="http://deathstar.freeswitch.org">deathstar.freeswitch.org</a></div><div>FreeSWITCH-Switchname: DeathSTAR</div><div>FreeSWITCH-IPv4: 8.19.97.170</div><div>FreeSWITCH-IPv6: ::1</div><div>Event-Date-Local: 2012-01-17 11:33:51</div>
<div>Event-Date-GMT: Tue, 17 Jan 2012 17:33:51 GMT</div><div>Event-Date-Timestamp: 1326821631120687</div><div>Event-Calling-File: mod_event_socket.c</div><div>Event-Calling-Function: read_packet</div><div>Event-Calling-Line-Number: 1188</div>
<div>Command: sendevent CUSTOM</div><div>Event-Name: CUSTOM</div><div><br></div><div><br></div><div>freeswitch@internal&gt;</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>cat <a href="http://test.pl">test.pl</a></div>
<div><br></div><div><div>require ESL;</div><div><br></div><div><br></div><div>ESL::eslSetLogLevel(7);</div><div><br></div><div>my $con = new ESL::ESLconnection(&quot;localhost&quot;, &quot;8021&quot;, &quot;ClueCon&quot;);</div>
<div><br></div><div>$e = new ESL::ESLevent(&quot;CUSTOM&quot;,&quot;CONFIG::AGENT_LIST&quot;);</div><div>$con-&gt;sendEvent($e);</div></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">
On Tue, Jan 17, 2012 at 10:37 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Tue, Jan 17, 2012 at 12:17 AM, Gerald Weber <span dir="ltr">&lt;<a href="mailto:gerald.weber@besharp.at" target="_blank">gerald.weber@besharp.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE-AT"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Hi,<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">thanks for your answers<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">@Anthony:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">I did a “make current” mins ago, fs starts with version<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">FreeSWITCH Version 1.0.head (git-ef097a1 2012-01-16 17-26-35 -0600)<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">@MC<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">I connect using ./fs_cli –H 192.168.20.73 –P 8021<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">/log 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">/event plain custom<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">(additionally I connect to fs using telnet 192.168.20.73 8021 on another terminal and issued “event plain all”)<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Starting my php  script, fs_cli shows nothing, telnet shows the event:<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Content-Length: 583<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Content-Type: text/event-plain<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Event-Subclass: CONFIG%3A%3AAGENT_LIST<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Event-Name: SOCKET_DATA<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">…<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Event-Date-Timestamp: 1326785361276007<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">…<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Event-Name: CUSTOM<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Agents: 2022<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">ZMQ-Msg-Cnt: 244<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">/event plain CUSTOM in fs_cli and restart php script -&gt; no output.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">(first event subscription except all doesn’t work ?)<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">/event plain all in fs_cli and restart php script shows:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"></span></p>

</div></div></blockquote></div><div><br>Hmm, I guess it does not work. You can do a filter:<br><br>/event plain all<br>/filter Event-Name CUSTOM<br><br>In any case I&#39;ll have to defer to Tony as to why you&#39;re seeing two different header&#39;s named &quot;Event-Name&quot;<br>
<font color="#888888">
<br>-MC <br></font></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>