diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-21 13:30:58 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-21 13:30:58 +0000 |
commit | 92a78593cba7e92f65599ab7bcfdb6bf1370e830 (patch) | |
tree | ae9db55be6067f335a57852d0cd2d36f47dc34ee /apps | |
parent | ff02c2b632ab01362e6343a5b7ee4509def9dd48 (diff) |
Fix app_dial buglet
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3256 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_dial.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index eca00317c..cb794c590 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -410,8 +410,8 @@ static int dial_exec(struct ast_channel *chan, void *data) char info[256], *peers, *timeout, *tech, *number, *rest, *cur; char privdb[256] = "", *s; char announcemsg[256] = "", *ann; - struct localuser *outgoing=NULL, *tmp,*o=NULL; - struct ast_channel *peer,*in=NULL; + struct localuser *outgoing=NULL, *tmp; + struct ast_channel *peer; int to; int allowredir_in=0; int allowredir_out=0; @@ -713,7 +713,7 @@ static int dial_exec(struct ast_channel *chan, void *data) char tmpchan[256]=""; char *stuff; char *tech; - strncpy(tmpchan, o->chan->call_forward, sizeof(tmpchan) - 1); + strncpy(tmpchan, tmp->chan->call_forward, sizeof(tmpchan) - 1); if ((stuff = strchr(tmpchan, '/'))) { *stuff = '\0'; stuff++; @@ -725,10 +725,10 @@ static int dial_exec(struct ast_channel *chan, void *data) } /* Before processing channel, go ahead and check for forwarding */ if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Forwarding %s to '%s/%s' (thanks to %s)\n", in->name, tech, stuff, tmp->chan->name); + ast_verbose(VERBOSE_PREFIX_3 "Forwarding %s to '%s/%s' (thanks to %s)\n", chan->name, tech, stuff, tmp->chan->name); /* Setup parameters */ - ast_hangup(o->chan); - tmp->chan = ast_request(tech, in->nativeformats, stuff); + ast_hangup(tmp->chan); + tmp->chan = ast_request(tech, chan->nativeformats, stuff); if (!tmp->chan) { ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s'\n", tech, stuff); free(tmp); |