Peter Wu
8e4423f126
Document Dbh.test_reactive, return saner values
...
In the FreeSWITCH core, the return value of switch_case_db_test_reactive
is ignored, but it is usable in LUA modules (and other bindings via
SWIG). The LUA API example[1] shows how to check the return value, but
that example miserably fails if the database did not exist before.
Changes:
- Document the expected behavior of the test_reactive function.
- Assert that test_sql and sql_reactive are both given. If either
query is not given, the caller is using the wrong API.
- When SCF_AUTO_SCHEMAS is cleared, use the return value of the
test_sql execution. Does anybody use this? Why not remove it?
- Do not unconditionally return SWITCH_FALSE when test_sql fails,
instead allow it to become SWITCH_TRUE when reactive_sql passes.
- Remove the unnecessary test_sql check for SCDB_TYPE_CORE_DB
(this is now enforced through an assert check). (+reindent)
- Clarify the error message of drop_sql, prepending "Ignoring" to
the "SQL ERR" message.
- LUA: Do not print "DBH NOT Connected" if the query fails. This was
the initial source of confusion.
[1]: https://confluence.freeswitch.org/display/FREESWITCH/Lua+API+Reference
2014-09-15 15:39:08 +02:00
Travis Cross
054c645818
Show initial channel values with `show channels`
...
Store some initial details about the channel separately so we can
preserve them across e.g. transfers and display them with show
channels.
With this commit, we store the original caller ID (name and number)
and IP address, and the call destination, dialplan, and context.
FS-4296 --resolve
Thanks-to: Mariusz Czułada <manieq.net@gmail.com>
2014-05-24 08:42:54 +00:00
Travis Cross
0274991732
Revert commit that breaks build on gcc-4.8
...
Revert "FS-4296 --resolve initial calling/called nums in 'show channels'"
This reverts commit b08138d058
.
2014-05-24 07:18:48 +00:00
Ken Rice
b08138d058
FS-4296 --resolve initial calling/called nums in 'show channels'
...
Store initial caller and destination numbers in 'channels' table,
so `show channels` can display it.
Patch provided by Mariusz Czułada <manieq.net@gmail.com>
2014-05-23 15:03:47 -05:00
Anthony Minessale
042b162bc4
back off locking contention on sql queues when they are nearly full to allow the system to recover from an attack
2014-05-23 23:13:38 +05:00
William King
5f3e98beb4
Fix a use after free in a 'theoretical' case in switch_cache_db_persistant_execute_trans_full where the pre_trans_execute statement fails, but SQLSetAutoCommitAttr succeeds
2014-04-30 14:37:17 -07:00
Anthony Minessale
a608550800
FS-5832 regression.... After this change the sticky completes were deleting. This should correct it
2014-04-06 03:51:36 +05:00
Eliot Gable
5b1ab59f00
Add error handling to sql queue manager callback functionality and fix spelling.
2014-03-14 15:54:05 +00:00
Anthony Minessale
efef505e26
add switch_sql_queue_manager_pause and switch_sql_queue_manager_resume
2014-03-12 11:42:37 -05:00
Anthony Minessale
98c2a3b992
don't nuke tcp and tls reg on restart
2014-03-11 16:25:51 -05:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Peter Olsson
084e245085
Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks.
2014-01-22 22:30:23 +01:00
Jeff Lenk
f03e9fe8af
FS-5585 --resolve
2013-12-24 11:37:09 -06:00
Seven Du
f9a532900b
add total used count for debug
2013-11-17 21:27:39 +08:00
Anthony Minessale
73bbd83dc4
FS-5900 --resolve wow, that's a good find
2013-10-22 09:54:58 -05:00
Anthony Minessale
4a172402d2
some refactoring and plumbing for 1.4
2013-10-16 02:24:32 +05:00
Nathan Neulinger
912e05d86c
FS-5832 additional hostname updates for failover behavior
2013-10-02 12:24:34 -05:00
Anthony Minessale
b518b09f7c
FS-5832 --resolve this should dedicate the interfaces per box assuming the hostnames on the box are distinct and the switchname param is set to be identical on the 2 boxes allowing the hostname as the sep key for the box-specific tables, the aliases table is still shared and sticky aliases should be used to keep them in tact.
2013-10-01 09:46:28 -05:00
Anthony Minessale
80f9168226
FS-5664 --resolve
2013-08-03 18:49:55 +05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Travis Cross
3c8db7c715
Avoid using memory after we free it
...
Without setting errmsg to NULL here, we'll try to print this freed
value again below if another error doesn't intercede.
2013-05-28 05:28:19 +00:00
Anthony Minessale
30c27efb62
move log message to avoid logging null
2013-05-09 14:34:39 -05:00
Anthony Minessale
8eef28ab24
FS-5313 --resolve
2013-04-17 17:34:05 -05:00
Anthony Minessale
863fbd2e35
FS-5313
2013-04-17 14:57:11 -05:00
Anthony Minessale
be248879ae
FS-5305 --resolve
2013-04-15 14:47:50 -05:00
Anthony Minessale
ed4c177177
FS-5291 --resolve
2013-04-10 10:13:43 -05:00
Anthony Minessale
8523f22578
fix shutdown race in queue managers
2013-03-14 13:35:42 -05:00
Anthony Minessale
77ee3fe10c
fix a few rare race conditions that could lead to a lockup
2013-03-13 16:10:42 -05:00
Anthony Minessale
8258e782d4
add processing of codec event to pick up on codec changes properly in channels table
2013-02-27 14:15:44 -06:00
Jeff Lenk
3400a0a6da
fix trivial compiler warnings
2013-02-20 16:36:41 -06:00
Anthony Minessale
18cd797065
cleanup
2013-02-18 13:54:34 -06:00
Anthony Minessale
ab9d77b456
FS-3912 --resolve
2013-02-11 16:32:12 -06:00
Ken Rice
f3550eb410
FS-5075 --resolve
2013-02-07 19:27:36 -06:00
Michael Jerris
1e6200b597
FS-5074: --resolve support sqlite:// for DSNs
2013-02-05 14:52:55 -06:00
Anthony Minessale
203f727e1f
add async select feature to sql queue manager api
2013-01-31 08:59:57 -06:00
Eliot Gable
0cca9bdc9e
Fix SQL queue manager so it actually stores and executes the pre and post transaction SQL statements.
2013-01-18 22:06:30 +00:00
Anthony Minessale
8b195824db
FS-4910 give this a try
2013-01-14 22:17:39 -06:00
Eliot Gable
68626bbbbd
Fix segfault on shut down of SQL queue manager in rare case where registration cleanup is firing at the same time the queue manager is shutting down.
2013-01-03 23:07:54 +00:00
Anthony Minessale
7e8e99e52c
fix answer contention issue
2012-12-06 11:11:07 -06:00
Anthony Minessale
081e261956
FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate
2012-11-29 08:58:44 -06:00
Michael Jerris
827b680afc
fix regressions in sql stuff
2012-11-27 21:14:05 -05:00
Anthony Minessale
44b4ab0995
FS-4869 can you try this more centralized patch please
2012-11-26 10:56:57 -06:00
Anthony Minessale
66e85c8d71
wrong turn in albakoykee
2012-11-22 15:19:38 -06:00
Anthony Minessale
377e093a31
mistake on last commit
2012-11-21 22:22:42 -06:00
Anthony Minessale
5dccbe4818
fix sql queue manager issues
2012-11-21 21:15:36 -06:00
Anthony Minessale
ce885f1c31
fix occasional empty transaction
2012-11-20 13:45:32 -06:00
Eliot Gable
3ea579ccc3
FS-4850: Make cache db get_handle call not return handles which are already in use.
2012-11-20 14:09:02 +00:00
Anthony Minessale
f6baeb2109
bump
2012-11-19 18:21:25 -06:00
Anthony Minessale
43b094f139
fix some sql order issues
2012-11-16 20:09:43 -06:00
Anthony Minessale
d25bde067d
FS-4816 --resolve
2012-11-09 08:47:30 -06:00