projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
463ad17
)
Don't only accept AST_DEVICE_UNKNOWN when we're trying to determine if the device...
author
Josh Roberson
<josh@asteriasgi.com>
Tue, 18 Oct 2005 03:29:12 +0000
(
03:29
+0000)
committer
Josh Roberson
<josh@asteriasgi.com>
Tue, 18 Oct 2005 03:29:12 +0000
(
03:29
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6815
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_chanisavail.c
patch
|
blob
|
history
diff --git
a/apps/app_chanisavail.c
b/apps/app_chanisavail.c
index
4e5e524
..
7dc2ba0
100755
(executable)
--- a/
apps/app_chanisavail.c
+++ b/
apps/app_chanisavail.c
@@
-115,7
+115,7
@@
static int chanavail_exec(struct ast_channel *chan, void *data)
snprintf(trychan, sizeof(trychan), "%s/%s",cur,number);
status = inuse = ast_device_state(trychan);
}
- if ((inuse < 1) && (tempchan = ast_request(tech, chan->nativeformats, number, &status))) {
+ if ((inuse <= 1) && (tempchan = ast_request(tech, chan->nativeformats, number, &status))) {
pbx_builtin_setvar_helper(chan, "AVAILCHAN", tempchan->name);
/* Store the originally used channel too */
snprintf(tmp, sizeof(tmp), "%s/%s", tech, number);