[Freeswitch-users] sendevent issues
Adam Kelloway
adam.kelloway at newpace.ca
Wed Nov 16 18:39:58 MSK 2011
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 at newpace.ca <mailto:adam.kelloway at 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 at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto:FreeSWITCH-users at 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 at NewPace.com <mailto:Adam.Kelloway at newpace.com>
aim <aim:GoIm?screenname=Adam.Kelloway at newpace.com>/msn
<msnim:chat?contact=Adam.Kelloway at newpace.com> Adam.Kelloway
<aim:GoIm?screenname=Adam.Kelloway at newpace.ca>@NewPace.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111116/aedc0028/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Newpace_50x50.png
Type: image/png
Size: 4620 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111116/aedc0028/attachment.png
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list