Commit Graph

345 Commits

Author SHA1 Message Date
Anthony Minessale 55eb2c5ccf fix issue where max event threads would always launch as soon as you only needed one more 2012-11-15 17:58:40 -06:00
Anthony Minessale 7cb8d4dbb0 fix mutex to work better 2012-11-13 17:56:31 -06:00
Anthony Minessale f60962ae87 fix some contention issues under really high load...That doesn't mean you need to push it this hard and bug me about it =p 2012-11-07 12:10:50 -06:00
Anthony Minessale 3099445a95 add originated_legs and originate_causes to A leg when present in an originate to detail the B leg data 2012-10-18 13:22:52 -04:00
Anthony Minessale 4789c5f549 FS-4715 --resolve 2012-10-15 12:48:03 -04:00
Seven Du ff7def219f fix build: format not a string literal and no format arguments 2012-10-12 09:16:02 +08:00
Anthony Minessale b4c621530f add some convenience for db stuff 2012-10-11 13:47:06 -05:00
Anthony Minessale 464155c5cd more priority tweaks 2012-10-01 10:20:48 -05:00
Anthony Minessale 8733a2c895 some priority queuing tweaks for performance 2012-10-01 11:47:26 -05:00
Anthony Minessale 3b660a06e5 fix small leak in var arrays 2012-09-14 17:07:55 -05:00
Anthony Minessale d5e5fb032a add funcs to binary seralize/deserialize switch_events into a contiguous binary frame 2012-09-13 17:46:28 -05:00
Anthony Minessale d38b905606 remove debug 2012-08-22 17:49:42 -05:00
Anthony Minessale 142c051d68 cache session threads and reuse them if possible 2012-08-21 00:14:50 -05:00
Anthony Minessale 293429f78d add api-expansion to switch.conf.xml and fsctl api_expansion command to control allowing apis to be expanded via variable expansion 2012-07-27 18:53:04 -05:00
Anthony Minessale 2aebe2456f first pass on some new stuff 2012-07-11 15:15:50 -05:00
Anthony Minessale 7ec8fb43d4 add initial-event-threads to switch.conf.xml 2012-06-29 11:39:49 -05:00
Anthony Minessale 1cfd145c17 add support for variable expander to recognize 717 vars as specificly globals 2012-05-24 13:07:26 -05:00
Jeff Lenk e32b90306e build warnings 2012-05-18 11:08:15 -05:00
Anthony Minessale bbdcd33bde performance tweaks for sip message parsing and event system 2012-05-17 20:10:53 -05:00
Anthony Minessale 5c75d4cf5b FS-4220 --resolve i refactored this into a general cross platform function and use it everywhere else we try to set affinity 2012-05-15 08:31:42 -05:00
Anthony Minessale e54ab070f4 put presence-data in events 2012-05-10 12:15:30 -05:00
Anthony Minessale 5190bd0849 FS-4186 --resolve 2012-05-04 08:25:48 -05:00
Anthony Minessale fd9486f0ed remove 2012-05-04 07:42:49 -05:00
Jeff Lenk 1b399d3cf2 FS-4184 --resolve 2012-05-04 08:44:38 -05:00
Anthony Minessale 8664dc6d5a some perfomance tweaks 2012-05-03 16:31:21 -05:00
Anthony Minessale 54af0dcfe2 regression from 385a92cec7 2012-04-18 19:02:06 -05:00
Anthony Minessale 1c70afabdd regression from 385a92cec7 2012-04-18 19:00:37 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Anthony Minessale ca27465020 FS-4104 --resolve 2012-04-12 09:53:53 -05:00
Anthony Minessale f9b3266720 endless recursion loop protection to go with new recursive variable expansion feature 2012-04-12 07:23:08 -05:00
Anthony Minessale 385a92cec7 add origination_nested_vars=true to allow vars within vars in originate strings e.g. [originate {origination_nested_vars=true,TEST=,var=,recur=W00t}user/1004 3000] will end up as w00t 2012-04-11 15:30:37 -05:00
Anthony Minessale a14c46c38c FS-3886 --resolve 2012-02-07 11:25:23 -06:00
Raymond Chandler 95e54ee15b seg-- 2012-01-20 14:52:56 -05:00
Anthony Minessale 755be33022 add list support for which vars/api to expand in httapi 2012-01-09 12:47:47 -06:00
Anthony Minessale f4320b58c8 swap rwlock and mutex 2011-11-28 08:27:46 -06:00
Anthony Minessale 7333d46d5b add new chatplan concept and mod_sms. Apps for chat messages: copy new base freeswitch.xml and chatplan dir if you are upgrading on existing config base 2011-09-21 14:31:18 -05:00
Anthony Minessale 0bcfdbe6ca only do the 10 second pause, not the reduction in max_sessions when the event system overloads 2011-08-16 11:03:29 -05:00
Anthony Minessale 3696ced792 FS-3497 --resolve 2011-08-10 07:55:17 -05:00
Anthony Minessale 01861950cc update defined code that doesn't compile anyway 2011-07-11 21:27:36 -05:00
Anthony Minessale e420e17f84 FS-3386 Jeff Lenk found this one, Good Catch! 2011-07-08 12:52:18 -05:00
Jeff Lenk 5923f71a84 more code analysis mostly trivial except string formating changes 2011-06-01 22:36:19 -05:00
Anthony Minessale 37064511e4 fix bug from the *cough* FRICKING MAILING LIST WHERE IT SHOULD NOT HAVE BEEN REPORTED FROM *cough* 2011-05-31 09:53:39 -05:00
Mathieu Rene 9d756ecc77 FS-3320 --resolve 2011-05-27 12:24:48 -04:00
Anthony Minessale 7fb6fb3076 doh merge conflict put back changes 2011-05-26 10:04:15 -05:00
Anthony Minessale c080fb15d9 update on array patch 2011-05-26 10:00:06 -05:00
Jeff Lenk f4824b0773 fix windows trivial compiler warnings 2011-05-25 17:16:48 -05:00
Anthony Minessale c1c759526d add arrays to event headers and chanvars 2011-05-25 15:42:36 -05:00
Anthony Minessale 6610e6e98a tweak 2011-04-29 10:29:03 -05:00
Anthony Minessale 00b53a91ea FS-3277 --resolve There are actually really only 2 places where it needs the real hostname, the hostname command and the header on the events. I changed everything to the switchname because there were some more sql stmts etc in the core. 2011-04-29 10:24:50 -05:00
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