aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-01 23:42:53 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-01 23:42:53 +0000
commitd5cab4c713b3a877c53f618a8edc79b2ccc28090 (patch)
tree9a5f3a4dc47b736677e913ca02e55b3b3697403e /include
parent4334ea36f17413e3718a204ef514e559e498bb9e (diff)
Merge changes from svn/asterisk/team/russell/sla_updates
* Originally, I put in the documentation that only Zap interfaces would be supported on the trunk side. However, after a discussion with Qwell, we came up with a way to make IP trunks work as well, using some things already in Asterisk. So, here it is, this now officially supports IP trunks. * Update the SLA documentation to reflect how to setup IP trunks. * Add a section in sla.txt that describes how to set up an SLA system with voicemail. * Simplify the way DTMF passthrough is handled in MeetMe. * Fix a bug that exposed itself when using a Local channel on the trunk side in SLA. The station's channel needs to be passed to the dial API when dialing the trunk. * Change a WARNING message to DEBUG in channel.h. This message is of no use to users. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57364 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index efa06bafb..de04248a6 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1308,15 +1308,16 @@ static inline int ast_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds,
#define CRASH do { } while(0)
#endif
-#define CHECK_BLOCKING(c) { \
- if (ast_test_flag(c, AST_FLAG_BLOCKING)) {\
- ast_log(LOG_WARNING, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", (long) pthread_self(), (c)->name, (long) (c)->blocker, (c)->blockproc); \
- CRASH; \
- } else { \
- (c)->blocker = pthread_self(); \
- (c)->blockproc = __PRETTY_FUNCTION__; \
- ast_set_flag(c, AST_FLAG_BLOCKING); \
- } }
+#define CHECK_BLOCKING(c) do { \
+ if (ast_test_flag(c, AST_FLAG_BLOCKING)) {\
+ if (option_debug) \
+ ast_log(LOG_DEBUG, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", (long) pthread_self(), (c)->name, (long) (c)->blocker, (c)->blockproc); \
+ CRASH; \
+ } else { \
+ (c)->blocker = pthread_self(); \
+ (c)->blockproc = __PRETTY_FUNCTION__; \
+ ast_set_flag(c, AST_FLAG_BLOCKING); \
+ } } while (0)
ast_group_t ast_get_group(const char *s);