FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
Go to file
Anthony Minessale ab0b99eb00 more event stuff
you should now be able to bind an event handler to a 
paticiular file or function not just a paticular event
when using the custom event 

like "file:somefile.c"
or "func:somefunc"

also events now have headers which can be added 
with varargs and should be created and delivered with api calls


switch_event *event;

regular event:
if (switch_event_create(&event, SWITCH_EVENT_STARTUP) == SWITCH_STATUS_SUCCESS) {
	switch_event_add_header(event, "event_info", "System Ready");
	switch_event_fire(&event);
}

custom event:
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, "some_subclass_string") == SWITCH_STATUS_SUCCESS) {
	switch_event_add_header(event, "event_info", "hello world %d", 42);
	switch_event_fire(&event);
} 

switch_event_add_header(event, "test %d", 42);

also you can serialize and event into a buffer in
a printable/transferrable format with optional body

char buf[1024];

with body:
switch_event_serialize(event, buf, sizeof(buf), "This is a body my favorite number is %d", 42);

no body:
switch_event_serialize(event, buf, sizeof(buf), NULL);






git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-19 19:57:32 +00:00
conf git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@103 d0543943-73ff-0310-b7d9-9358b9ac24b2 2005-12-09 23:14:09 +00:00
libs update gsm codec based on codecs from open h323. 2005-12-18 20:41:43 +00:00
src more event stuff 2005-12-19 19:57:32 +00:00
w32/vsnet git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@167 d0543943-73ff-0310-b7d9-9358b9ac24b2 2005-12-17 23:23:37 +00:00
aclocal.m4 make events queue in the bg 2005-12-14 21:29:46 +00:00
AUTHORS hi 2005-11-12 21:27:19 +00:00
ChangeLog hi 2005-11-12 21:27:19 +00:00
compile hi 2005-11-12 21:27:19 +00:00
config.guess add executable flags. 2005-12-13 21:36:23 +00:00
config.h.in hi 2005-11-12 21:27:19 +00:00
config.sub hi 2005-11-12 21:27:19 +00:00
configure make events queue in the bg 2005-12-14 21:29:46 +00:00
configure.in make events queue in the bg 2005-12-14 21:29:46 +00:00
configure.scan hi 2005-11-12 21:27:19 +00:00
COPYING hi 2005-11-12 21:27:19 +00:00
depcomp hi 2005-11-12 21:27:19 +00:00
generic_mod.mk arrgh 2005-12-13 21:20:47 +00:00
INSTALL Docs tweaks and cleanps. 2005-11-19 14:08:33 +00:00
install-sh add executable flags. 2005-12-13 21:36:23 +00:00
ltmain.sh add executable flags. 2005-12-13 21:36:23 +00:00
Makefile.am lame 2005-12-14 18:11:49 +00:00
Makefile.in lame 2005-12-14 18:11:49 +00:00
missing hi 2005-11-12 21:27:19 +00:00
mkinstalldirs hi 2005-11-12 21:27:19 +00:00
modmake.sh arrgh 2005-12-13 21:20:47 +00:00
modules.conf update 2005-12-14 17:02:57 +00:00
modules.conf.in hi 2005-11-12 21:27:19 +00:00
NEWS hi 2005-11-12 21:27:19 +00:00
README Docs tweaks and cleanps. 2005-11-19 14:08:33 +00:00
TODO hi 2005-11-12 21:27:19 +00:00

Freeswitch depends on several out of tree libraries.  All of freeswitch depends on APR, and mod_exosip depends on osip, exosip, jtrhead, and jrtplib.  
Download locations and links for details can be found below.

Apr info available at: http://apr.apache.org

Download Locations:
apr: http://apache.mirrors.versehost.com/apr/apr-1.2.2.tar.gz

Backup Download Locations:
apr: http://www.sofaswitch.org/mikej/apr-1.2.2.tar.gz


Exosip\Osip info available at: http://www.antisip.com/

Download Locations:
osip: http://www.antisip.com/download/libosip2-2.2.1.tar.gz
exosip: http://www.antisip.com/download/libeXosip-0.9.0.tar.gz

Backup Download Locations:
osip: http://www.sofaswitch.org/mikej/libosip2-2.2.1.tar.gz
exosip: http://www.sofaswitch.org/mikej/libeXosip-0.9.0.tar.gz


Jthread\Jrtplib info available at: http://research.edm.luc.ac.be/jori/page.html

Download Locations:
jthread: http://research.edm.luc.ac.be/jori/jthread/jthread-1.1.2.tar.gz
jrtplib: http://research.edm.luc.ac.be/jori/jrtplib/jrtplib-3.3.0.tar.gz

Backup Download Locations:
jthread: http://www.sofaswitch.org/mikej/jthread-1.1.2.tar.gz
jrtplib: http://www.sofaswitch.org/mikej/jrtplib-3.3.0.tar.gz