Commit Graph

346 Commits

Author SHA1 Message Date
Anthony Minessale a2255da097 add CALL_SECURE event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13487 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-28 17:50:06 +00:00
Anthony Minessale d875d23de5 FSCORE-370
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13414 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-21 20:10:24 +00:00
Anthony Minessale 32e2fddef3 ndlb_sendrecv_in_session var NDLB-sendrecv-in-session profile option to reverse the effects of MODENDP-148
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13084 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-20 17:07:54 +00:00
Anthony Minessale 21538b2bf9 run expand_vars if input contains a special escaped character not just when it contains a variable to eat up back slashes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13015 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-14 15:24:30 +00:00
Anthony Minessale cfdc73a7b7 linux... how did that not crash every time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12858 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-31 20:55:26 +00:00
Michael Jerris b23c86a1bf revert
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-31 20:54:31 +00:00
Michael Jerris 9b42edc319 linux... how did that not crash every time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12856 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-31 20:51:35 +00:00
Anthony Minessale 5b42ca0a6d add warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12844 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-30 21:09:49 +00:00
Anthony Minessale 9d6dd53afc reduce memory usage
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-26 22:30:00 +00:00
Anthony Minessale e6aee6b1c9 MODEVENT-39
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12311 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-26 18:54:00 +00:00
Anthony Minessale 4858722ed2 missed a spot
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-26 00:38:14 +00:00
Anthony Minessale 8f7bb61e1f mighty putty for a big leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-26 00:14:03 +00:00
Anthony Minessale 9886f369c3 add direction col to sql db, add direction param to session_create, log dtmf digits to digits_dialed variable for cdr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12244 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-23 16:31:59 +00:00
Anthony Minessale 99026e02e7 event socket / ESL improvements
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12228 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-21 23:19:58 +00:00
Anthony Minessale f125872c73 FSCORE-297
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-20 01:10:59 +00:00
Brian West babb2f83f5 update copyright
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:37:37 +00:00
Michael Jerris 89a2799c98 fix msvc 2005 core warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11991 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 19:03:34 +00:00
Brian West ae220d3341 update email
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Raymond Chandler 3a47504e2e change log level
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11541 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-28 18:27:38 +00:00
Anthony Minessale 0463541d61 change low res sleep func api names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11486 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-25 21:23:07 +00:00
Michael Jerris c19f9fca71 more const madness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11355 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-22 04:37:02 +00:00
Anthony Minessale 1d5dd03f14 taint check MODW00T-00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11339 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-21 21:34:31 +00:00
Anthony Minessale 5daf2d13b9 wash behind your ears
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11040 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 22:44:23 +00:00
Michael Jerris d16d7ffd7d MODENDP-77 Gateway event subscriptions.
Merged with minor modifications.
Still needs to add support for reload/rescan.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10525 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-24 15:52:55 +00:00
Anthony Minessale 2ed601f934 more stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10410 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-14 23:31:21 +00:00
Anthony Minessale c9a24dd36e Add ability to choose uuid from originate string (use at your own risk)
[origination_uuid=someid]sofia/default/100@dom.com

it's only valid in [], cannot be used on 2 existing calls at once and is not
reccommended if you don't need it.

event_socket users can use it to do

api create_uuid   
#### (then save uuid into a local variable say $uuid) ###
filter unique-id $uuid
events all
originate [origination_uuid=$uuid]sofia/default/100@dom.com

Then you can get all the events in anticipation on that channel.

Anything people do to cause problems misusing this will not be supported.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10239 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-04 16:46:33 +00:00
Anthony Minessale 7074c7abdd add hashing to event header lookup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-03 20:08:44 +00:00
Anthony Minessale 0a5a51723d add event socket listener filters
filter <header-name> <header-value>
filter <header-name> /<regexp>/
filter delete <header-name>
filter delete all

once even one filter is enabled you must pass a filter condition to get any events.
which events are still limited by the events <event list> as always.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10198 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-30 00:39:55 +00:00
Michael Jerris 41812748fb make valgrind not complain about these threads
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10040 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-15 23:13:36 +00:00
Michael Jerris 1f47ff15b3 validate strftime format string input (when necessary)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9985 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-12 21:51:51 +00:00
Anthony Minessale fc0c89c642 add session heartbeat feature
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-07 21:03:37 +00:00
Brian West 7aa7dd7e68 add error handling and error messages for incorrect event api usage
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-07 17:09:31 +00:00
Brian West 1cda796da8 spelling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-06 23:05:55 +00:00
Anthony Minessale 003847dd0d add some more specific events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9789 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 17:10:05 +00:00
Anthony Minessale db62bc1509 trim down some of the events because people don't like info these days
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9786 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 15:38:45 +00:00
Michael Jerris 30408376ba add switch_channel_set_variable_printf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-29 17:48:43 +00:00
Anthony Minessale aa940f7a6a doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-12 19:23:45 +00:00
Anthony Minessale a657bf9186 fix FSCORE-188
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9545 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-12 18:04:58 +00:00
Brian West 40c96d779c spelling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-02 03:25:01 +00:00
Anthony Minessale 7022893689 improve unload stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9353 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-22 17:57:15 +00:00
Anthony Minessale 7ffcb0e624 valgrind
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-22 17:00:16 +00:00
Anthony Minessale a8d457eb09 fix some mem leaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9329 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-20 19:10:04 +00:00
Stefan Knoblich f921389078 Use switch_event_add_header_string() instead of switch_event_add_header(... "%s", ..), core part
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-16 02:17:09 +00:00
Anthony Minessale db4ae66fde doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9247 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-11 20:43:19 +00:00
Anthony Minessale 2f405f4bc5 fix out-of-bounds pointer in variable expansion detected by MSCV (thanks for nothing linux) FSCORE-171
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9236 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-11 15:37:50 +00:00
Anthony Minessale da2e0d710f add mod_snom
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9145 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-23 18:19:56 +00:00
Anthony Minessale 5fc5658e5e add auto ip-change detection and some other goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9138 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-22 22:23:50 +00:00
Michael Jerris f46044c932 build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9107 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-19 15:16:29 +00:00
Michael Jerris ac467b5d09 don't remove the event NULL
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8903 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-07 15:04:35 +00:00
Michael Jerris 64997c4d8e vim extendtab is bad
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Anthony Minessale eec83be1c9 tweak ping behaviour
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8881 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-02 17:18:34 +00:00
Anthony Minessale 43b712b7b1 add some write locks to the core and a function to unregister event bindings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8880 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-01 23:41:09 +00:00
Anthony Minessale 3c349c274e indent pass 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8686 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:30:03 +00:00
Stefan Knoblich 5d91bea365 switch_url_encode now takes the full length of the buffer and null-terminates the string properly (Klocwork #1030)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8510 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-21 21:31:17 +00:00
Michael Jerris 36320b9248 handle edgecase leak on platforms without vasprintf. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-16 17:25:43 +00:00
Michael Jerris efd78441d6 remove redundant null check. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8444 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-16 17:18:57 +00:00
Michael Jerris 16bf3f42a1 don't leak after allocation failure. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8443 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-16 17:07:10 +00:00
Michael Jerris d13fa0d211 tweak asserts. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8441 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-16 16:59:34 +00:00
Anthony Minessale 88b177c1b4 add patch from MDXMLINT-27
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-15 20:29:08 +00:00
Anthony Minessale d5e4046daf fix build prob
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8366 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-12 16:58:44 +00:00
Anthony Minessale e0e04b9f9c fix fifo logic bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-06 21:43:42 +00:00
Anthony Minessale 2b5f3563a2 make callback stuff work on mod_perl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8247 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-02 13:58:44 +00:00
Anthony Minessale 5952667987 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-29 23:34:26 +00:00
Anthony Minessale d7e0ef295c small fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8087 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-11 15:53:25 +00:00
Michael Jerris 8712d3827b tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7901 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-17 16:25:53 +00:00
Michael Jerris 8033a4790c an array of any other size.....
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7897 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-16 18:31:27 +00:00
Anthony Minessale 179461fe6a some more stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7891 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-14 16:21:13 +00:00
Anthony Minessale 1cf6273641 spray the core with scotchguard(tm)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7889 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-14 03:47:45 +00:00
Anthony Minessale e65075b63f update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7841 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-08 02:11:21 +00:00
Anthony Minessale a3be4e8e72 add reloadxml event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7775 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-03 19:32:42 +00:00
Brian West b0ad7ab50c set tab mode properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Michael Jerris 92f722b535 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7424 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-29 19:01:35 +00:00
Brian West 84161010ab cleanup and consistency.. blah rain @ PHX fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 20:01:02 +00:00
Brian West c815c0599e code formating cleanup, More when I land at PHX
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7392 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 17:36:53 +00:00
Anthony Minessale a2d8262289 add resistance on blocking writes to stdout
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7363 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-25 23:09:33 +00:00
Anthony Minessale 591f098a14 change xml_lookups to take an event as params instead of url string this will break your xml_curl scripts please update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7334 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-23 21:14:38 +00:00
Anthony Minessale 1424b6c73b change xml_lookups to take an event as params instead of url string this will break your xml_curl scripts please update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7333 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-23 20:59:25 +00:00
Anthony Minessale 61414b6626 add func to expand event headers from a template string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7312 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-21 18:17:12 +00:00
Michael Jerris 0fc1cd534a constify functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7186 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-12 07:14:48 +00:00
Anthony Minessale 1bbeb4f706 cross t's and dot i's
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7075 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-03 21:34:44 +00:00
Anthony Minessale a2847f0ba9 cleanup events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7069 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-03 01:21:26 +00:00
Anthony Minessale 98ac3c579f fix indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7068 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-03 01:01:04 +00:00
Anthony Minessale 601f7b6e4a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6951 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-21 18:15:33 +00:00
Michael Jerris 54ec86f6ce use switch_snprintf instead of snprintf becuase in insures null termination of strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6707 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 21:53:32 +00:00
Anthony Minessale 70c65fc3c2 add more data to cdr_csv and debug option to dump all the vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6677 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 22:19:49 +00:00
Michael Jerris e46266fb4f cleanup, null checks. etc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6673 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 21:31:57 +00:00
Michael Jerris 55a194e54e use switch_assert macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6661 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 19:23:57 +00:00
Anthony Minessale 2dd0e0eb58 add hostname and ip to every event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-30 21:57:49 +00:00
Anthony Minessale 8e4524727f fix stupidness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6038 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-23 21:56:31 +00:00
Anthony Minessale e5b16c4374 add channel_originate event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5886 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-16 13:56:44 +00:00
Anthony Minessale f82e478cb5 more cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5800 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 20:22:37 +00:00
Anthony Minessale 2222933908 a bunch of fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 17:25:06 +00:00
Anthony Minessale bd6bd9ad57 add softtimer to the core, begin framework for static modules and reduces calls to gettimeofday for timestamps
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5784 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-03 16:44:11 +00:00
Anthony Minessale 1a316ca6db add log and event object recycling to reduce malloc per sec in high call load
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5768 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-09-30 20:05:18 +00:00
Anthony Minessale ffb989e435 tear the hell out of everything and rip it up into itsy bitsy pieces and put it all back together
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-09-29 01:06:08 +00:00
Michael Jerris d3aa5b433b fix for FSCORE-37
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5565 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 16:56:54 +00:00
Anthony Minessale 25057d40ac fix up some event issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5541 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-24 21:26:04 +00:00
Anthony Minessale fdf9a8f052 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5465 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-25 21:25:33 +00:00
Anthony Minessale a039d870c3 Add events around all application execution:
fire SWITCH_EVEHT_CHANNEL_EXECUTE
<execute app>
fire SWITCH_EVEHT_CHANNEL_EXECUTE_COMPLETE

This can be used in async socket connections to tell
when a queued application has finished executing.



Add the "event" application to the dialplan:

<action application="event" data="header1=val1,header2=val2"/>

Events fired from this applcation will always have the type SWITCH_EVENT_CHANNEL_APPLICATION.

You can add up to 25 headers of your own to the event via the application arguements.





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-23 05:41:07 +00:00
Michael Jerris 008777e95e add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 07:15:53 +00:00
Anthony Minessale 4ca73d77e0 upgrade fax_detect to tone_detect
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5379 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-16 02:25:40 +00:00
Anthony Minessale 91cb42b7ea fix accidental missing event enum name
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-08 15:17:43 +00:00
Anthony Minessale 1be5b1ff45 general improvements
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5078 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-03 16:28:23 +00:00
Anthony Minessale e47596fca5 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4832 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-02 20:20:46 +00:00
Anthony Minessale 101fd38e09 fix race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 17:25:48 +00:00
Anthony Minessale c15d7892c0 indent again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:15:25 +00:00
Anthony Minessale debdfb1aab indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale 643ca5c4e7 add 'show tasks' and sched_api api commands
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4797 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:10:33 +00:00
Anthony Minessale 3a54126261 spring cleaning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Michael Jerris 42e78242a3 add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00
Anthony Minessale 8f0b94435c add TRAP event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4453 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 20:55:41 +00:00
Brian West 0c3180866d fix more comments
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4443 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-04 01:50:52 +00:00
Anthony Minessale a88da36253 add heartbeat event and core uuid
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 17:38:34 +00:00
Brian West 5e4396a46e making private events fire (please test)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 21:06:27 +00:00
Michael Jerris 258e28dd11 constification for switch_core_hash_find and switch_event_create_subclass
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:22:43 +00:00
Michael Jerris 95374edaab constify the fmt string on all printf like functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4249 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 02:53:23 +00:00
Michael Jerris 07d6f12018 use "%s" format specifier for uses of switch_event_add_header that just pass a string to avoid potential issues/exploits"
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:43:49 +00:00
Michael Jerris f359f847f7 fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Michael Jerris df7ce0d951 don't use uninitialized value of data, return error if null fmt string passed.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4116 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-04 19:12:14 +00:00
Anthony Minessale 051ea5de5c fix events with large bodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4113 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-03 17:06:57 +00:00
Anthony Minessale 218b495bb3 fix probe presence stuff on conference, do a make sure
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-16 03:00:56 +00:00
Anthony Minessale 6e740d7d9d fix mem issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3674 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-15 18:02:54 +00:00
Anthony Minessale 6d50b0c7b5 improve gateway stuff and minor tweak to event serialize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3570 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-07 22:56:17 +00:00
Anthony Minessale f6fd954631 api tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3485 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 17:10:40 +00:00
Paul Tinsley 0c1e83a43f Fix for event serialization, multi-ilne variables or crazy characters in a line could cause parsing errors in consumers of serialized events.
All values are now url encoded to ensure they don't have "dangerous" characters in them.  make sure you url_decode in your language of choice when consuming events in plain format from the event socket.

For those perl or pcre heads out there you can use the following regex:
$value =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/sego;



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3481 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 04:57:01 +00:00
Michael Jerris 44649c70b4 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:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +00:00
Anthony Minessale c834ba6a71 let's make sure realloc works
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3316 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 19:40:41 +00:00
Anthony Minessale 68bab16e37 make event_serialize dynamic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-11 19:32:45 +00:00
Anthony Minessale 44fc26f7d4 Finalization of speech detect interface and API
This changes the core to have the necessary tools to create
a speech detection interface.

It also changes the code in javascript (mod_spidermonkey)
there are a few api changes in how it handles callbacks

It also adds grammars as a system dir to store asr grammars




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-09 05:39:04 +00:00
Anthony Minessale 70bfba5b63 Christmas Presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3083 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-18 22:57:35 +00:00
Michael Jerris 782725241f typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3068 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-17 03:41:05 +00:00
Anthony Minessale 0e2a7c122c find missing ret = and put them back
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3064 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-16 19:56:42 +00:00
Anthony Minessale ba46200539 refactoring and general improvement (do a make sure)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3035 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-12 00:59:09 +00:00
Michael Jerris 2343fdd8cf Attribution.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2734 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-18 05:08:55 +00:00
Anthony Minessale 32198c36e4 trying paul's patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2721 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-17 18:03:32 +00:00
Anthony Minessale 80722357a6 Mega Changes
adding mod_park for putting channels in limbo state for remote control.
adding stuff to mod_event_socket to let you do the bgapi <command> <args>
this will let you execute a job in the bg and the result will be sent as an event with an
indicated uuid to match the reply to the command

adding switch_core_port_allocator (to be used soon)
adding "make sure" to do a full rebild of the freeswitch object files

There will be more to this committed as the week progresses

make sure you do a rebuild after this update or you'll be sowwie
./configure && make sure




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2540 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-07 03:58:01 +00:00
Michael Jerris 8712224760 change date format so output of show channels does not have another comma in a comma sep list.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2438 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 23:52:45 +00:00
Anthony Minessale d94e810630 add some events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2425 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 15:17:06 +00:00
Anthony Minessale aa196711a1 codec sql
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 01:33:28 +00:00
Anthony Minessale 47192db741 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();
    }
}





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 01:28:50 +00:00
Michael Jerris f9cbbca041 make vsnprintf check work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2297 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 16:17:03 +00:00
Michael Jerris acf84d7631 fix segfault
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2296 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 15:57:20 +00:00
Anthony Minessale 9727efd842 Change the socket protocol and the sample client to use multiline input
valid input:

-------------------------
<command>[ <args>]

-------------------------
or
-------------------------
<command>[ <args>]
Header1: Val
HeaderN: Val

-------------------------





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2109 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 14:14:07 +00:00
Anthony Minessale 9c79c2a3fb 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"




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2047 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-22 21:49:52 +00:00
Anthony Minessale 7c7c42a6bf update queue len
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1542 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-05 17:37:24 +00:00
Anthony Minessale f2911fa352 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1435 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-11 21:36:57 +00:00
Anthony Minessale 295424544d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1425 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 19:07:38 +00:00
Anthony Minessale 23d6224dab gather 2833 into RTP core and a few tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1351 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-04 17:51:53 +00:00
Michael Jerris b6545379d6 add interfaces to sqlite db table for quick show api commands (coming soon)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1313 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-01 19:44:21 +00:00
Michael Jerris 14fee78470 part 3 of 3 standardizing typedefed types to end in _t.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 23:43:28 +00:00
Michael Jerris 73a3adac8f part 2 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1294 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 06:05:03 +00:00
Michael Jerris d0347b2a95 part 1 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 01:00:52 +00:00
Anthony Minessale 5ab733c606 crash prevention
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1281 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-27 21:09:58 +00:00
Anthony Minessale 380bc2b68c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1265 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 19:29:56 +00:00
Anthony Minessale d59cae60c7 add nitrous oxide tank to core event sql backend
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 17:18:33 +00:00
Anthony Minessale 92bba4dbe6 adjust
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-25 23:11:56 +00:00
Anthony Minessale a9f86cb58a add VAD
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1222 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-21 22:31:08 +00:00
Michael Jerris 026e8d39ca Set log levels on many existing log messages. A huge thanks to James Martelletti for going through all the log calls to do this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-16 06:05:53 +00:00
Brian West 1fb8ba75d9 fix leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1127 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 16:44:57 +00:00
Brian West 559b8ab26c Gut Logger and put it back modular style
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 21:13:44 +00:00
Brian West 628e59a3ae add some events and more data to core DB
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1115 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 14:55:14 +00:00
Anthony Minessale fc9be366fd internal tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1044 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-04 21:26:21 +00:00
Anthony Minessale cf16ac34a9 fix event system
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1043 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-04 18:47:34 +00:00
Anthony Minessale 64507e70ca icc changes part 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@982 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-30 23:02:50 +00:00
Anthony Minessale fac7b4a64e optimize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@960 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-29 19:11:20 +00:00
Anthony Minessale 7665bf3e8e fix lots of BS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@716 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-01 17:06:10 +00:00
Anthony Minessale 7174e8ae8a add high and low priority event queues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@674 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-26 00:12:17 +00:00
Michael Jerris f36292af04 get rid of unnecessary pragmas.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@655 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 22:36:52 +00:00
Anthony Minessale 009e9607e7 fix evil pragmas in unix and get rid of horrible ^M in the files (dont do that)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@644 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-21 18:34:32 +00:00
Michael Jerris fea14e6d90 block unimportant warnings in core.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@642 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-21 17:55:38 +00:00
Michael Jerris fc341792be turn on higher warning level in msvc for the core and libteletone and resolve warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@634 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-20 00:23:25 +00:00
Anthony Minessale 176908397b add zerconf (the howl depend lib needs work sigh)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@606 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-13 23:59:14 +00:00
Michael Jerris 92628433da fix oops (svn merge -r 418:417 http://svn.freeswitch.org/svn/freeswitch/trunk)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@419 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-20 15:05:05 +00:00
Anthony Minessale 0ea203849f update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-20 02:02:03 +00:00
Anthony Minessale 42383b1f15 indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-20 00:40:29 +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
Michael Jerris bedcabb8ec cleanup and formating
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@261 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 01:17:59 +00:00
Anthony Minessale c394ef828c cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@207 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 19:45:58 +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
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 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 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 e4aae70c44 make it work on w32
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@174 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-19 20:03:37 +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 033ee66fb1 add untested event changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@159 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-15 23:56:21 +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 7125eac731 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@146 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 01:40:51 +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