Thanks Michael, would you mind trying the following? I've discovered that I never see the event when I add a "Unique-ID" header:

does not work:

sendevent CUSTOM
Event-Name: CUSTOM
Event-Subclass: my::event
Unique-ID: ec13a91a-1067-11e1-a184-efefb30e1896

works:

sendevent CUSTOM
Event-Name: CUSTOM
Event-Subclass: my::event

works:

sendevent CUSTOM
Event-Name: CUSTOM
Event-Subclass: my::event
my-header: my-value

I could probably add the uuid to a different header name, but I'm trying to keep the names I use consistent with other events.

Thanks,

Adam


On 3:59 PM, Michael Collins wrote:
I just tested this and it worked for me. However, instead of doing "/events all" i did "/events plain all". I see all the events on the system, including the ones injected. 

-MC

On Tue, Nov 15, 2011 at 7:26 AM, Adam Kelloway <adam.kelloway@newpace.ca> wrote:
Hi there,

I have client connection to a freeswitch instance, and send the
following message to freeswitch from it:

sendevent CUSTOM\n
Event-Name: CUSTOM\n
Event-Subclass: my::event\n
my-header: my-value\n
\n

I receive the following reply:

Content-Type: command/reply
Reply-Text: +OK

I subscribe to all events from fs_cli, using:

/events all

However, I never see the event that was sent. Am I misinterpreting how
sendevent is used? I would expect that the console application would see
this event. Am I perhaps missing some mandatory headers?

Thanks,

Adam

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
Adam
--
NewPace Logo


Adam Kelloway

Software Engineer, NewPace
phone +1 (902) 406–8375  x1031
email Adam.Kelloway@NewPace.com
aim/msn Adam.Kelloway@NewPace.ca