diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-10 16:55:34 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-10 16:55:34 +0000 |
commit | 090c22992b8ebd9b0de86374da8347130afc70b6 (patch) | |
tree | c08b4dad147a4d30292029f7ab4513b6f0c3f5ab /channels/sig_analog.c | |
parent | 8bb352d623b242752a3e876d37961e2663f77def (diff) |
Simplified dahdi_request() channel selection failed reason/cause code.
Also avoid potential crash because cause could be NULL.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251585 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/sig_analog.c')
-rw-r--r-- | channels/sig_analog.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/channels/sig_analog.c b/channels/sig_analog.c index 3e8e9f317..8e4aa3391 100644 --- a/channels/sig_analog.c +++ b/channels/sig_analog.c @@ -649,17 +649,11 @@ struct ast_channel * analog_request(struct analog_pvt *p, int *callwait, const s return analog_new_ast_channel(p, AST_STATE_RESERVED, 0, p->owner ? ANALOG_SUB_CALLWAIT : ANALOG_SUB_REAL, requestor); } -int analog_available(struct analog_pvt *p, int *busy) +int analog_available(struct analog_pvt *p) { int offhook; ast_log(LOG_DEBUG, "%s %d\n", __FUNCTION__, p->channel); - /* We're at least busy at this point */ - if (busy) { - if ((p->sig == ANALOG_SIG_FXOKS) || (p->sig == ANALOG_SIG_FXOLS) || (p->sig == ANALOG_SIG_FXOGS)) { - *busy = 1; - } - } /* If do not disturb, definitely not */ if (p->dnd) { return 0; |