Commit Graph

174 Commits

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