[Freeswitch-users] Custom Events

Ron McLeod ron.freeswitch at mcleodnet.com
Wed Dec 30 09:33:34 PST 2009


I found that this works as a work-around:

	sendevent
	Event-Name: CUSTOM
	Event-Subclass: wpbx::Bcsm
	Bcsm-Operation: Bcsm-Event
	Bcsm-Uuid: fd96fe6f-ad88-4882-8691-4f849074554d
	Bcsm-Peer-Uuid: edf0604c-f4a4-11de-85c6-27ab474dd533
	Bcsm-Event: ANSWER

> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-
> users-bounces at lists.freeswitch.org] On Behalf Of Ron McLeod
> Sent: Tuesday, December 29, 2009 1:30 PM
> To: freeswitch-users at lists.freeswitch.org
> Subject: [Freeswitch-users] Custom Events
> 
> I have two inbound event socket sessions.
> 
> I send a custom event like this on one socket:
> 
> 	sendevent CUSTOM
> 	Event-Subclass: wpbx::Bcsm
> 	Bcsm-Operation: Bcsm-Event
> 	Bcsm-Uuid: fd96fe6f-ad88-4882-8691-4f849074554d
> 	Bcsm-Peer-Uuid: edf0604c-f4a4-11de-85c6-27ab474dd533
> 	Bcsm-Event: ANSWER
> 
> and I receive the following reply:
> 
> 	Content-Type: command/reply
> 	Reply-Text: +OK
> 
> 
> On the other event socket, I see this:
> 
> 	Content-Length: 615
> 	Content-Type: text/event-plain
> 
> 	Event-Subclass: wpbx%3A%3ABcsm
> 	Event-Name: COMMAND
> 	Core-UUID: 2759f3f4-f4b7-11de-9ff0-11851d44d59f
> 	FreeSWITCH-Hostname: ron-laptop
> 	FreeSWITCH-IPv4: 192.168.100.132
> 	FreeSWITCH-IPv6: %3A%3A1
> 	Event-Date-Local: 2009-12-29%2013%3A25%3A49
> 	Event-Date-GMT: Tue,%2029%20Dec%202009%2021%3A25%3A49%20GMT
> 	Event-Date-Timestamp: 1262121949103034
> 	Event-Calling-File: mod_event_socket.c
> 	Event-Calling-Function: read_packet
> 	Event-Calling-Line-Number: 1087
> 	Command: sendevent%20CUSTOM
> 	Bcsm-Operation: Bcsm-Event
> 	Bcsm-Uuid: fd96fe6f-ad88-4882-8691-4f849074554d
> 	Bcsm-Peer-Uuid: edf0604c-f4a4-11de-85c6-27ab474dd533
> 	Bcsm-Event: ANSWER
> 
> 
> I was expecting to see a CUSTOM event, not COMMAND (or maybe a CUSTOM
> event
> in addition to a COMMAND event), like what I see with other custom events
> such as:
> 
> 	Content-Length: 911
> 	Content-Type: text/event-plain
> 
> 	Event-Subclass: sofia%3A%3Aregister
> 	Event-Name: CUSTOM
> 	Core-UUID: 5d56384a-ed29-11de-85c6-27ab474dd533
> 	FreeSWITCH-Hostname: ron-laptop
> 	FreeSWITCH-IPv4: 192.168.100.132
> 	FreeSWITCH-IPv6: %3A%3A1
> 	Event-Date-Local: 2009-12-29%2010%3A35%3A36
> 	Event-Date-GMT: Tue,%2029%20Dec%202009%2018%3A35%3A36%20GMT
> 	Event-Date-Timestamp: 1262111736464194
> 	Event-Calling-File: sofia_reg.c
> 	Event-Calling-Function: sofia_reg_handle_register
> 	Event-Calling-Line-Number: 1127
> 	Event-Subclass: sofia%3A%3Aregister
> 	profile-name: internal
> 	from-user: 698
> 	from-host: 192.168.100.132
> 	presence-hosts: 192.168.100.132
> 	contact: %22user%22%20%3Csip%3A698%40192.168.100.130%3A5060%3E
> 	call-id: 1909944913%40192.168.100.130
> 	rpid: unknown
> 	statusd: Registered(UDP)
> 	expires: 60
> 	to-user: 698
> 	to-host: 192.168.100.132
> 	network-ip: 192.168.100.130
> 	network-port: 5060
> 	username: 698
> 	realm: 192.168.100.132
> 	user-agent: UTSTARCOM%20F3000/Device%20ID-F3000_TEST
> 
> 
> Am I doing something wrong, or am I missing something?
> 
> Thanks,
> Ron
> 
> 
> 
> _______________________________________________
> 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
> 
> --
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com





More information about the FreeSWITCH-users mailing list