From: Mark Spencer Date: Sun, 6 Jun 2004 20:47:51 +0000 (+0000) Subject: Fix small arrangement issue X-Git-Tag: 1.0.0-rc1~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c42fa75a4af2885c5d5d1ed22f5e9ffa831da94;p=thirdparty%2Fasterisk.git Fix small arrangement issue git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3158 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 07e4062dd4..eea2ab31dc 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6142,9 +6142,11 @@ static struct ast_channel *zt_request(char *type, int format, void *data) char *stringp=NULL; stringp=dest; s = strsep(&stringp, "/"); + p = iflist; if (!strcasecmp(s, "pseudo")) { /* Special case for pseudo */ x = CHAN_PSEUDO; + channelmatch = x; } #ifdef ZAPATA_PRI 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) { ast_log(LOG_WARNING, "Unable to determine channel for data %s\n", (char *)data); return NULL; + } else { + channelmatch = x; } - channelmatch = x; - p = iflist; } /* Search for an unowned channel */ if (ast_mutex_lock(lock)) {