Commit Graph

213 Commits

Author SHA1 Message Date
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