[Freeswitch-users] How to send CUSTOM event via event socket?

Mathieu Rene mrene_lists at avgs.ca
Wed Mar 4 11:27:43 PST 2009


On 4-Mar-09, at 11:54 AM, Helmut Kuper wrote:


> Event-Name: CUSTOM
> Event-Subclass: ewetel%3A%3Asnom-aurl
> Snom-Event: OFFHOOK

^^
mod_event_socket loads up commands it receives in an event struct,  
when you do a "sendevent", it changes the eventid to be changed to the  
one you specified, unfortunately it doesnt remove the first Event-Name  
header.

Open a JIRA if thats what you want.

Math

> Hello,
>
> how to send a CUSTOM event via event socket? Currently I send this:
>
> sendevent CUSTOM\n
> Event-Name: CUSTOM\n
> Event-Subclass: myevent::snom-aurl\n
> Snom-Event: OFFHOOK\n
> \n
>
>
> I got an +OK reply from FS. I subscribed to ALL event and get only  
> this:
>
> Content-Length: 516
> Content-Type: text/event-plain
>
> Event-Name: COMMAND
> Core-UUID: 7b2b75a4-08ca-11de-b1f3-3d0cddd2708d
> FreeSWITCH-Hostname: ippbx-prod-node0
> FreeSWITCH-IPv4: 85.16.246.5
> FreeSWITCH-IPv6: %3A%3A1
> Event-Date-Local: 2009-03-04%2017%3A42%3A35
> Event-Date-GMT: Wed,%2004%20Mar%202009%2016%3A42%3A35%20GMT
> Event-Date-Timestamp: 1236184955199959
> Event-Calling-File: mod_event_socket.c
> Event-Calling-Function: read_packet
> Event-Calling-Line-Number: 1045
> Command: sendevent%20CUSTOM
> Event-Name: CUSTOM
> Event-Subclass: ewetel%3A%3Asnom-aurl
> Snom-Event: OFFHOOK
>
> But there is no CUSTOM event received.
>
> regards
> helmut
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> 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





More information about the FreeSWITCH-users mailing list