mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Fix small arrangement issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6142,9 +6142,11 @@ static struct ast_channel *zt_request(char *type, int format, void *data)
|
|||||||
char *stringp=NULL;
|
char *stringp=NULL;
|
||||||
stringp=dest;
|
stringp=dest;
|
||||||
s = strsep(&stringp, "/");
|
s = strsep(&stringp, "/");
|
||||||
|
p = iflist;
|
||||||
if (!strcasecmp(s, "pseudo")) {
|
if (!strcasecmp(s, "pseudo")) {
|
||||||
/* Special case for pseudo */
|
/* Special case for pseudo */
|
||||||
x = CHAN_PSEUDO;
|
x = CHAN_PSEUDO;
|
||||||
|
channelmatch = x;
|
||||||
}
|
}
|
||||||
#ifdef ZAPATA_PRI
|
#ifdef ZAPATA_PRI
|
||||||
else if ((res = sscanf(s, "%d:%d%c%d", &trunkgroup, &crv, &opt, &y)) > 1) {
|
else if ((res = sscanf(s, "%d:%d%c%d", &trunkgroup, &crv, &opt, &y)) > 1) {
|
||||||
@@ -6171,9 +6173,9 @@ static struct ast_channel *zt_request(char *type, int format, void *data)
|
|||||||
else if ((res = sscanf(s, "%d%c%d", &x, &opt, &y)) < 1) {
|
else if ((res = sscanf(s, "%d%c%d", &x, &opt, &y)) < 1) {
|
||||||
ast_log(LOG_WARNING, "Unable to determine channel for data %s\n", (char *)data);
|
ast_log(LOG_WARNING, "Unable to determine channel for data %s\n", (char *)data);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
} else {
|
||||||
|
channelmatch = x;
|
||||||
}
|
}
|
||||||
channelmatch = x;
|
|
||||||
p = iflist;
|
|
||||||
}
|
}
|
||||||
/* Search for an unowned channel */
|
/* Search for an unowned channel */
|
||||||
if (ast_mutex_lock(lock)) {
|
if (ast_mutex_lock(lock)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user