Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
helmut.kuper at ewetel.de
Guest





PostPosted: Wed Mar 04, 2009 12:07 pm    Post subject: [Freeswitch-users] How to send CUSTOM event via event socket Reply with quote

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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Wed Mar 04, 2009 2:33 pm    Post subject: [Freeswitch-users] How to send CUSTOM event via event socket Reply with quote

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


Quote:
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

Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services