Commit Graph

346 Commits

Author SHA1 Message Date
Anthony Minessale b63bff4c17 a few optimizations 2011-04-15 16:18:26 +00:00
Anthony Minessale 4c4bf59e45 FS-3246 --resolve all [] {} and <> can be stacked and override the delim per set <><^^:>{}{^^:}{^^;}[][^^:] 2011-04-14 17:50:48 -05:00
Anthony Minessale d5ef86d778 introduce new say_string method of doing say and use it in mod_say_en as an example. try: eval ${say_string en.gsm en current_date_time pronounced ${strepoch()}} from the cli with this patch. We can do more to centralize the say things and go back and apply it to other langs, using this method you can set the desired file ext as well which I think is a bounty.... 2011-03-29 19:55:35 -05:00
Anthony Minessale 484a397d88 FS-3194 see comitted patch. I made the function assert rather than tolerate NULL and fixed the imporper usage. 2011-03-28 09:49:52 -05:00
Anthony Minessale bc397ab600 FS-2971 2011-02-25 10:55:47 -06:00
Anthony Minessale e5fb456f3b doh regression 2011-02-03 11:19:24 -06:00
Anthony Minessale 4ae8282e6c fix possible bad pointer in global vars (please test) 2011-02-02 15:43:26 -06:00
Anthony Minessale d9c5634507 up assert vaule on header loop detection to 1 meeeeelyonne for hmmhesegs 2011-01-13 10:03:12 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Anthony Minessale 2800ea199d tune event socket params a bit 2010-12-16 11:34:02 -06:00
Anthony Minessale fdba0e07fa make parens optional on functions as vars ${foo(bar)} is now the same as ${foo bar} 2010-10-08 15:59:22 -05:00
Anthony Minessale ef773e0762 FSCORE-675 2010-09-21 10:17:18 -05:00
Anthony Minessale 2002f38b4c fix regression in core event system 2010-09-02 12:30:26 -05:00
Jeff Lenk e5aef4cd9a FSCORE-658 Windows VS2008 switch_event.c compile error 2010-08-24 08:11:59 -05:00
Anthony Minessale 362eade2dc correction on earlier patch 2010-08-23 18:08:14 -05:00
Anthony Minessale af100fd156 minor refactor to deal with edge case 2010-08-23 13:11:58 -05:00
Mathieu Rene bfa414cb0f mod_lcr: fix compiler warning on newer gcc 2010-08-14 16:50:06 -04:00
Anthony Minessale 119d01f65c fix small mem leak in util func 2010-07-13 16:52:32 -05:00
Brian West 8009ec0b5c FSBUILD-287 2010-07-01 18:16:08 -05:00
Anthony Minessale 1fba654845 fix parse err in originate code 2010-07-01 14:21:44 -05:00
Anthony Minessale 462e62547e add new util function to parse of vars in parens from strings 2010-06-30 20:41:21 -05:00
Anthony Minessale cc346c21d5 build fix 2010-06-17 14:36:31 -05:00
Anthony Minessale c5086b1517 jsonification into the core and ESL 2010-06-17 11:43:09 -05:00
Anthony Minessale 3fbd9e2150 MODAPP-433 2010-06-11 11:08:51 -05:00
Anthony Minessale 01c0c6948f fix event names name mismatch 2010-06-08 16:22:21 -05:00
Anthony Minessale c752e71afe more work on callstate events 2010-06-07 18:01:02 -05:00
Mathieu Rene 114731215d Assert the size of EVENT_NAMES at initialization 2010-06-07 08:49:04 -04:00
Brian West 5cd066df39 fix issue reported on mailing list along with segfault. 2010-06-06 23:26:09 -05:00
Anthony Minessale c017c24b8e FSCORE-612 with mods 2010-05-25 16:54:31 -05:00
Anthony Minessale a7f74af7d0 add bind method to EventConsumer takes same args as constructor to bind more events to an existing consumer 2010-05-10 13:07:34 -05:00
Anthony Minessale 70d73cafb7 FSRTP-14 2010-04-20 11:08:39 -05:00
Brian West 9819eed509 skip dialplan args with bad char sequences
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 18:31:19 +00:00
Anthony Minessale cc39f9e4bc add events for bug start and stop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16858 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-02 01:11:15 +00:00
Mathieu Rene a835b4bcea don't free the event subclass in switch_event_unbind_callback(). thx crienzo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16666 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-17 01:01:13 +00:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale f859964993 fix filters (reported on mailing list use jira next time =/)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16527 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-28 01:00:04 +00:00
Anthony Minessale 3cb315d6d4 add SOCKET_EVENT event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16135 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-04 17:46:55 +00:00
Anthony Minessale 1e1b011675 fix race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16080 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-29 22:44:31 +00:00
Michael Jerris ead4f5bb35 mod_sofia: add shutdown-on-fail param to sofia profiles (MODSOFIA-45)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15854 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-09 14:42:30 +00:00
Anthony Minessale 2e8d0e7d18 allow listeners to pre-bind to subclasses before the main subscriber is loaded and fix off by one issue in unbinding event handler functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-04 20:28:55 +00:00
Anthony Minessale 275e919f3c fix issue with global bypass_media_after_bridge messing up callflow
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-09 23:49:35 +00:00
Anthony Minessale df7637f687 change switch_strlen_zero to zstr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale 0436dff8cd add missing comma that causes buffer overflow in event socket
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15128 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-09 15:59:22 +00:00
Anthony Minessale aa9361d79f add CALL_UPDATE event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15119 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-08 16:52:55 +00:00
Anthony Minessale d2b797fe54 disable duplicate headers on request param events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14909 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-17 21:38:04 +00:00
Anthony Minessale 2c0eaac332 add record_start and record_stop events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14591 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-21 22:29:44 +00:00
Michael Jerris b0daf34ad5 mod_event_socket: sendevent Fire events with correct event-name and subclass (MODEVENT-41)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14354 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 20:13:36 +00:00
Brian West b6363dc294 LOOK OUT BELOW... (FSCORE-381)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14055 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 18:59:05 +00:00
Anthony Minessale b82984fe97 add netmask detection for nat discovery work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13549 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-02 16:55:10 +00:00
Anthony Minessale c4b67d93fc add CHANNEL_HANGUP_COMPLETE event to take the place of CHANNEL_HANGUP, CHANNEL_HANGUP now fires as soon as the channel is hungup but you must wait for CHANNEL_HANGUP_COMPLETE for the CDR data
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13505 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-29 17:18:03 +00:00
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