[Freeswitch-users] PHP ESL Custom Events Event-Name sent twice
Michael Collins
msc at freeswitch.org
Tue Jan 17 19:37:45 MSK 2012
On Tue, Jan 17, 2012 at 12:17 AM, Gerald Weber <gerald.weber at besharp.at>wrote:
> Hi,****
>
> thanks for your answers****
>
> ** **
>
> @Anthony:****
>
> I did a “make current” mins ago, fs starts with version****
>
> FreeSWITCH Version 1.0.head (git-ef097a1 2012-01-16 17-26-35 -0600)****
>
> ** **
>
> @MC****
>
> I connect using ./fs_cli –H 192.168.20.73 –P 8021****
>
> /log 0****
>
> /event plain custom****
>
> ** **
>
> (additionally I connect to fs using telnet 192.168.20.73 8021 on another
> terminal and issued “event plain all”)****
>
> ** **
>
> Starting my php script, fs_cli shows nothing, telnet shows the event:****
>
> ** **
>
> Content-Length: 583****
>
> Content-Type: text/event-plain****
>
> ** **
>
> Event-Subclass: CONFIG%3A%3AAGENT_LIST****
>
> Event-Name: SOCKET_DATA****
>
> …****
>
> Event-Date-Timestamp: 1326785361276007****
>
> …****
>
> Event-Name: CUSTOM****
>
> Agents: 2022****
>
> ZMQ-Msg-Cnt: 244****
>
> ** **
>
> /event plain CUSTOM in fs_cli and restart php script -> no output.****
>
> (first event subscription except all doesn’t work ?)****
>
> /event plain all in fs_cli and restart php script shows:****
>
>
Hmm, I guess it does not work. You can do a filter:
/event plain all
/filter Event-Name CUSTOM
In any case I'll have to defer to Tony as to why you're seeing two
different header's named "Event-Name"
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120117/d3269323/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list