Commit Graph

407 Commits

Author SHA1 Message Date
Michael Jerris 96b6fb70cf git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@288 d0543943-73ff-0310-b7d9-9358b9ac24b2 2006-01-05 22:53:52 +00:00
Michael Jerris 94bb9e855d Create switch_version.h on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 22:51:01 +00:00
Michael Jerris 418ba6863d tweak to apr doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@284 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:57:44 +00:00
Anthony Minessale 16d6848af7 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@282 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:34:51 +00:00
Anthony Minessale a4d3a30ac2 what's up doc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:03:22 +00:00
Anthony Minessale 8a292bf0b2 stupid crap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-04 01:04:33 +00:00
Michael Jerris 900c08571b and a few corrections to the docs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 00:48:52 +00:00
Michael Jerris dc31a8ecd3 complete first go through of doxygen for the apr\apu based functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@259 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 00:10:18 +00:00
Michael Jerris 4c3434b0a7 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 22:45:50 +00:00
Michael Jerris e29d980b68 More doxygen fun.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 22:36:01 +00:00
Michael Jerris 5eb15f329e more apr doxygen, this time, it works right!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 20:32:26 +00:00
Anthony Minessale a642381f25 unix retool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 18:31:50 +00:00
Anthony Minessale 111a0f6deb resample into core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@254 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 17:28:59 +00:00
Michael Jerris 7dc6dd3f5a doxygen of switch thread funcs from apr.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 15:14:19 +00:00
Michael Jerris ba38f7cff3 some more doxygen stuff... still a LOT to go.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@252 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 05:00:28 +00:00
Michael Jerris f78b600507 initial doxygen. Much, much more to go.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-01 15:23:12 +00:00
Michael Jerris 480d1ac279 fix some size_t\int warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@245 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-30 17:20:21 +00:00
Anthony Minessale e98104d109 Add rate to frames and a bunch of evil resample code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-30 00:00:21 +00:00
Michael Jerris 0fbf3f5af0 a little more header juggling.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@239 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 19:14:05 +00:00
Michael Jerris cb53fc6ef5 tweak include order
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@238 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 17:28:54 +00:00
Michael Jerris 975a087ac4 juggle the header files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@237 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 17:25:28 +00:00
Anthony Minessale 82d141df73 getting ready for auto resample in opposing versions of SLIN codec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@232 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 00:26:17 +00:00
Anthony Minessale e7c060b8b9 add channels arg to codec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-28 20:06:03 +00:00
Anthony Minessale 094acc5dd3 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-27 20:15:00 +00:00
Anthony Minessale 378ce8e115 let codecs and timers use existing pool and add new file i/o backend
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@212 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-27 18:46:12 +00:00
Anthony Minessale a0d199af73 let codecs and timers be init with an existing pool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@209 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 21:01:22 +00:00
Anthony Minessale 8c964a5c85 test
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@208 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 19:58:42 +00:00
Anthony Minessale b4845b9ff1 ok gsm works
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@206 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 19:09:59 +00:00
Anthony Minessale f3d711ccae event cleanup from windows perspective
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@204 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 21:09:36 +00:00
Michael Jerris 1e8b78dc6b cleanup?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@201 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 14:29:05 +00:00
Anthony Minessale f52b45c2c9 centralize api interface
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@197 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 02:55:25 +00:00
Anthony Minessale 32273a0c3f xmppmas
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@196 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 02:24:56 +00:00
Anthony Minessale 0fd698a347 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@192 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 22:17:25 +00:00
Anthony Minessale 3e0234219b use more of apr-utils in the event stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@191 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 18:53:33 +00:00
Anthony Minessale e60fbc2267 get uuid from apr-utils for channel events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@190 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 01:57:32 +00:00
Anthony Minessale 98a797a2f2 add apr-utils
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 22:38:53 +00:00
Anthony Minessale 6949227ca1 more events and some build changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@188 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 22:25:22 +00:00
Anthony Minessale 03cc285054 unix build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@187 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 17:33:03 +00:00
Anthony Minessale 146b99e1d6 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@184 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 16:24:37 +00:00
Anthony Minessale 006e0f8d14 add network_addr to profile (had to add a func to get it for iax)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@175 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-20 16:01:18 +00:00
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
Anthony Minessale 2a58e2038a yet more rearrangment of events ;-)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@172 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-19 18:55:31 +00:00
Anthony Minessale b09fedf7e0 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-15 20:20:57 +00:00
Anthony Minessale 48e62491e1 make eventing cooler, yeah I know it's only 1 day old but... *shrug*
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-15 19:10:43 +00:00
Anthony Minessale 230c5012a6 more event code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@153 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 22:46:09 +00:00
Anthony Minessale 03533ad0f3 make events queue in the bg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@152 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 21:29:46 +00:00
Anthony Minessale e16f28d529 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@151 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 20:22:19 +00:00
Anthony Minessale 2620e0aa30 events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-13 20:52:33 +00:00
Anthony Minessale 40824bc41a add event system
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@128 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-13 19:53:29 +00:00
Anthony Minessale 6fd5a33dbf codec improvement
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-12 17:50:07 +00:00
Anthony Minessale c5174dbcc8 OMG this rocks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@102 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 22:19:08 +00:00
Anthony Minessale 86c1904cce update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 19:33:21 +00:00
Anthony Minessale bbb07474a7 adding some shit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@100 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 19:23:04 +00:00
Anthony Minessale 46b0e12a66 merge
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@90 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-06 21:25:56 +00:00
Anthony Minessale 8311b9a01a iax and empty core for opal
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@86 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-06 17:18:56 +00:00
Michael Jerris f8b4096961 Suppress MSVC 8 warnings about crt functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@62 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-11-20 16:49:14 +00:00
Michael Jerris b266ae8b11 Moved remotely
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@48 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-11-19 20:09:09 +00:00