Quick Search:

Line History

line history graph

Show Arbitrary Diff

From to

Supports revisions and tags.

History

root: 10227 131

latest revision download Branch root:

10227 annotated / raw | Diffs: previous, other | Lines: 367 ( +2, -0 )

Created: 2008-11-03 15:08:44 -0500 (29 days ago) | Author: anthm | Changeset: 10227

add hashing to event header lookup

9343 annotated / raw | Diffs: previous, other | Lines: 365 ( +1, -0 )

Created: 2008-08-21 12:09:22 -0400 (3 months 11 days ago) | Author: anthm | Changeset: 9343

fix broken fix

9138 annotated / raw | Diffs: previous, other | Lines: 364 ( +1, -0 )

Created: 2008-07-22 18:23:50 -0400 (4 months 11 days ago) | Author: anthm | Changeset: 9138

add auto ip-change detection and some other goodies

9107 annotated / raw | Diffs: previous, other | Lines: 363 ( +1, -1 )

Created: 2008-07-19 11:16:29 -0400 (4 months 14 days ago) | Author: mikej | Changeset: 9107

build tweaks

8894 annotated / raw | Diffs: previous, other | Lines: 363 ( +1, -1 )

Created: 2008-07-03 15:12:26 -0400 (4 months 30 days ago) | Author: mikej | Changeset: 8894

vim extendtab is bad

8880 annotated / raw | Diffs: previous, other | Lines: 363 ( +24, -23 )

Created: 2008-07-01 19:41:09 -0400 (5 months 1 day ago) | Author: anthm | Changeset: 8880

add some write locks to the core and a function to unregister event bindings

8686 annotated / raw | Diffs: previous, other | Lines: 362 ( +3, -3 )

Created: 2008-05-27 00:30:03 -0400 (6 months ago) | Author: anthm | Changeset: 8686

indent pass 1

8585 annotated / raw | Diffs: previous, other | Lines: 362 ( +6, -1 )

Created: 2008-05-24 14:59:49 -0400 (6 months ago) | Author: mikej | Changeset: 8585

swig does not work with varargs functions (FSCORE-128)

8418 annotated / raw | Diffs: previous, other | Lines: 357 ( +1, -1 )

Created: 2008-05-15 16:29:08 -0400 (6 months ago) | Author: anthm | Changeset: 8418

add patch from MDXMLINT-27

8366 annotated / raw | Diffs: previous, other | Lines: 357 ( +1, -1 )

Created: 2008-05-12 12:58:44 -0400 (6 months ago) | Author: anthm | Changeset: 8366

fix build prob

8276 annotated / raw | Diffs: previous, other | Lines: 357 ( +2, -0 )

Created: 2008-05-06 16:00:43 -0400 (6 months ago) | Author: anthm | Changeset: 8276

add dialplan and context to sql table

7568 annotated / raw | Diffs: previous, other | Lines: 355 ( +1, -1 )

Created: 2008-02-09 00:16:58 -0500 (9 months ago) | Author: mikej | Changeset: 7568

code analysis and error checking.

7500 annotated / raw | Diffs: previous, other | Lines: 355 ( +1, -1 )

Created: 2008-02-03 17:14:57 -0500 (9 months ago) | Author: brian | Changeset: 7500

set tab mode properly

7396 annotated / raw | Diffs: previous, other | Lines: 355 ( +1, -1 )

Created: 2008-01-27 15:01:02 -0500 (10 months ago) | Author: brian | Changeset: 7396

cleanup and consistency.. blah rain @ PHX fun

7333 annotated / raw | Diffs: previous, other | Lines: 355 ( +3, -0 )

Created: 2008-01-23 15:59:25 -0500 (10 months ago) | Author: anthm | Changeset: 7333

change xml_lookups to take an event as params instead of url string this will break your xml_curl scripts please update

7312 annotated / raw | Diffs: previous, other | Lines: 352 ( +1, -0 )

Created: 2008-01-21 13:17:12 -0500 (10 months ago) | Author: anthm | Changeset: 7312

add func to expand event headers from a template string

7186 annotated / raw | Diffs: previous, other | Lines: 351 ( +4, -4 )

Created: 2008-01-12 02:14:48 -0500 (10 months ago) | Author: mikej | Changeset: 7186

constify functions

7069 annotated / raw | Diffs: previous, other | Lines: 351 ( +23, -0 )

Created: 2008-01-02 20:21:26 -0500 (10 months ago) | Author: anthm | Changeset: 7069

cleanup events

6677 annotated / raw | Diffs: previous, other | Lines: 328 ( +2, -1 )

Created: 2007-12-11 17:19:49 -0500 (11 months ago) | Author: anthm | Changeset: 6677

add more data to cdr_csv and debug option to dump all the vars

5765 annotated / raw | Diffs: previous, other | Lines: 327 ( +2, -0 )

Created: 2007-09-28 21:06:08 -0400 (14 months ago) | Author: anthm | Changeset: 5765

tear the hell out of everything and rip it up into itsy bitsy pieces and put it all back together

5738 annotated / raw | Diffs: previous, other | Lines: 325 ( +0, -0 )

Created: 2007-09-21 14:49:14 -0400 (14 months ago) | Author: mikej | Changeset: 5738

svn:eol-style properties, and make eol-style consistent in some files.

5403 annotated / raw | Diffs: previous, other | Lines: 325 ( +1, -1 )

Created: 2007-06-20 03:15:53 -0400 (17 months ago) | Author: mikej | Changeset: 5403

add more modules to new mod loader macros/api.

4799 annotated / raw | Diffs: previous, other | Lines: 325 ( +3, -2 )

Created: 2007-03-29 20:15:25 -0400 (20 months ago) | Author: anthm | Changeset: 4799

indent again

4798 annotated / raw | Diffs: previous, other | Lines: 324 ( +6, -11 )

Created: 2007-03-29 20:13:31 -0400 (20 months ago) | Author: anthm | Changeset: 4798

indent

4795 annotated / raw | Diffs: previous, other | Lines: 329 ( +13, -10 )

Created: 2007-03-29 18:31:56 -0400 (20 months ago) | Author: anthm | Changeset: 4795

spring cleaning

4251 annotated / raw | Diffs: previous, other | Lines: 326 ( +1, -1 )

Created: 2007-02-13 22:22:43 -0500 (21 months ago) | Author: mikej | Changeset: 4251

constification for switch_core_hash_find and switch_event_create_subclass

4249 annotated / raw | Diffs: previous, other | Lines: 326 ( +3, -3 )

Created: 2007-02-13 21:53:23 -0500 (21 months ago) | Author: mikej | Changeset: 4249

constify the fmt string on all printf like functions

4224 annotated / raw | Diffs: previous, other | Lines: 326 ( +3, -3 )

Created: 2007-02-12 22:17:19 -0500 (21 months ago) | Author: mikej | Changeset: 4224

add PRINTF_FUNCTION specifier to printf like functions to let gcc tell us when we are using the wrong format specifiers on these functions.  Suggested by <MrEIso> via irc.

4176 annotated / raw | Diffs: previous, other | Lines: 326 ( +1, -1 )

Created: 2007-02-08 21:36:03 -0500 (21 months ago) | Author: mikej | Changeset: 4176

fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces

3707 annotated / raw | Diffs: previous, other | Lines: 326 ( +2, -2 )

Created: 2006-12-18 19:41:20 -0500 (23 months ago) | Author: anthm | Changeset: 3707

autodroolz

3462 annotated / raw | Diffs: previous, other | Lines: 326 ( +11, -0 )

Created: 2006-11-27 17:30:48 -0500 (2 years ago) | Author: mikej | Changeset: 3462

Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:

/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:nil
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
*/

3314 annotated / raw | Diffs: previous, other | Lines: 315 ( +3, -5 )

Created: 2006-11-11 14:32:45 -0500 (2 years ago) | Author: anthm | Changeset: 3314

make event_serialize dynamic

3083 annotated / raw | Diffs: previous, other | Lines: 317 ( +2, -0 )

Created: 2006-10-18 18:57:35 -0400 (2 years 1 month ago) | Author: anthm | Changeset: 3083

Christmas Presence

2555 annotated / raw | Diffs: previous, other | Lines: 315 ( +1, -1 )

Created: 2006-09-07 11:15:39 -0400 (2 years 2 months ago) | Author: anthm | Changeset: 2555

what comes up must come down

2548 annotated / raw | Diffs: previous, other | Lines: 315 ( +1, -1 )

Created: 2006-09-07 10:23:31 -0400 (2 years 2 months ago) | Author: anthm | Changeset: 2548

fix namespace

2323 annotated / raw | Diffs: previous, other | Lines: 315 ( +7, -0 )

Created: 2006-08-17 21:28:50 -0400 (2 years 3 months ago) | Author: anthm | Changeset: 2323

Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues.
codecs need more work...

Expose events into javascript so you can create and fire events and
and pick up chat events with chat-enabled clients like googletalk
EXAMPLE:

session.answer();

e = new Event("custom", "JS::Custom");
e.addHeader("subject", "cool");
e.addBody("hello this is a test");
e.fire;

while(session.ready()) {
   session.execute("sleep", "1000");
   event = session.getEvent();
   if (event) {
     str = event.serialize(); // or ("xml")
     console_log("debug", "Dump Event:\n" + str + "\n");


       e = new Event("custom", "JS::Chat");
       e.addHeader("works", "yes");
       e.addBody("you said: " + event.getBody());
       session.sendEvent(e);
     event.destroy();
   }
}



2047 annotated / raw | Diffs: previous, other | Lines: 308 ( +8, -0 )

Created: 2006-07-22 17:49:52 -0400 (2 years 4 months ago) | Author: anthm | Changeset: 2047

Add mod_event_socket remote client module and sample client.

To Test:

uncomment or add from modules.conf
make installall again to compile it
uncomment the load line from freeswitch.xml

the default values are to bind to 127.0.0.1 port 8021

telnet to port 8021
enter "auth ClueCon" to authenticate

from here you can do the following:
*) events [xml|plain] <list of events to log or all for all>
*) noevents
*) log <level> // same as the console.conf values
*) nolog
*) api <command> <arg>
*) exit

there is a perl client in scripts/socket called fs.pl

with the module up and loaded:
cd scripts/socket
perl fs.pl <optional log level>

you can enter a few api commands like "show or status"


1425 annotated / raw | Diffs: previous, other | Lines: 300 ( +9, -0 )

Created: 2006-05-10 15:07:38 -0400 (2 years 6 months ago) | Author: anthm | Changeset: 1425

update

1300 annotated / raw | Diffs: previous, other | Lines: 291 ( +12, -12 )

Created: 2006-04-29 19:43:28 -0400 (2 years 7 months ago) | Author: mikej | Changeset: 1300

part 3 of 3 standardizing typedefed types to end in _t.

1294 annotated / raw | Diffs: previous, other | Lines: 291 ( +2, -2 )

Created: 2006-04-29 02:05:03 -0400 (2 years 7 months ago) | Author: mikej | Changeset: 1294

part 2 of many standardizing typedefed types to end in _t

1292 annotated / raw | Diffs: previous, other | Lines: 291 ( +17, -17 )

Created: 2006-04-28 21:00:52 -0400 (2 years 7 months ago) | Author: mikej | Changeset: 1292

part 1 of many standardizing typedefed types to end in _t

1291 annotated / raw | Diffs: previous, other | Lines: 291 ( +3, -7 )

Created: 2006-04-28 16:04:08 -0400 (2 years 7 months ago) | Author: mikej | Changeset: 1291

use macro for EXTERN "C" begin and end lines in header files to clean up the headers, and to eliminate a format bug in emacs.

1126 annotated / raw | Diffs: previous, other | Lines: 295 ( +1, -1 )

Created: 2006-04-12 12:34:34 -0400 (2 years 7 months ago) | Author: anthm | Changeset: 1126

dox

982 annotated / raw | Diffs: previous, other | Lines: 295 ( +1, -1 )

Created: 2006-03-30 18:02:50 -0500 (2 years 8 months ago) | Author: anthm | Changeset: 982

icc changes part 1

915 annotated / raw | Diffs: previous, other | Lines: 295 ( +4, -0 )

Created: 2006-03-24 16:28:46 -0500 (2 years 8 months ago) | Author: mikej | Changeset: 915

add missing } for extern C

674 annotated / raw | Diffs: previous, other | Lines: 291 ( +17, -0 )

Created: 2006-02-25 19:12:17 -0500 (2 years 9 months ago) | Author: anthm | Changeset: 674

add high and low priority event queues

280 annotated / raw | Diffs: previous, other | Lines: 274 ( +178, -1 )

Created: 2006-01-05 16:03:22 -0500 (2 years 10 months ago) | Author: anthm | Changeset: 280

what's up doc

260 annotated / raw | Diffs: previous, other | Lines: 97 ( +2, -2 )

Created: 2006-01-02 19:48:52 -0500 (2 years 10 months ago) | Author: mikej | Changeset: 260

and a few corrections to the docs.

251 annotated / raw | Diffs: previous, other | Lines: 97 ( +4, -0 )

Created: 2006-01-01 10:23:12 -0500 (2 years 11 months ago) | Author: mikej | Changeset: 251

initial doxygen.  Much, much more to go.

204 annotated / raw | Diffs: previous, other | Lines: 93 ( +1, -2 )

Created: 2005-12-23 16:09:36 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 204

event cleanup from windows perspective

196 annotated / raw | Diffs: previous, other | Lines: 94 ( +2, -0 )

Created: 2005-12-22 21:24:56 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 196

xmppmas

188 annotated / raw | Diffs: previous, other | Lines: 92 ( +1, -0 )

Created: 2005-12-21 17:25:22 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 188

more events and some build changes

184 annotated / raw | Diffs: previous, other | Lines: 91 ( +5, -3 )

Created: 2005-12-21 11:24:37 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 184

update

173 annotated / raw | Diffs: previous, other | Lines: 89 ( +2, -3 )

Created: 2005-12-19 14:57:32 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 173

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);




172 annotated / raw | Diffs: previous, other | Lines: 90 ( +22, -5 )

Created: 2005-12-19 13:55:31 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 172

yet more rearrangment of events ;-)

158 annotated / raw | Diffs: previous, other | Lines: 73 ( +2, -0 )

Created: 2005-12-15 15:20:57 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 158

update

156 annotated / raw | Diffs: previous, other | Lines: 71 ( +14, -8 )

Created: 2005-12-15 14:10:43 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 156

make eventing cooler, yeah I know it's only 1 day old but... *shrug*

153 annotated / raw | Diffs: previous, other | Lines: 65 ( +2, -0 )

Created: 2005-12-14 17:46:09 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 153

more event code

151 annotated / raw | Diffs: previous, other | Lines: 63 ( +8, -0 )

Created: 2005-12-14 15:22:19 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 151

update

131 new annotated / raw | Lines: 55 ( +55, -0 )

Created: 2005-12-13 15:52:33 -0500 (2 years 11 months ago) | Author: anthm | Changeset: 131

events