aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-09 22:53:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-09 22:53:30 +0000
commit1db25f75dd1415f10df0af8e9a32ef004248417a (patch)
treec89179733a4a4727d2d4ad21477c1b2a2fb6935f /apps/app_dial.c
parent8c547863cad3bb21be7f02ebacc24b36f48dc1cf (diff)
preserve original callerid functionality for 1.0 (bug #3490)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4994 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 505bfff0c..76ae6a5d4 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -281,9 +281,6 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
ast_hangup(o->chan);
o->chan = NULL;
numnochan++;
- } else {
- /* After calling, set callerid to extension */
- ast_set_callerid(o->chan, ast_strlen_zero(in->macroexten) ? in->exten : in->macroexten, 0);
}
}
/* Hangup the original channel now, in case we needed it */
@@ -849,11 +846,9 @@ static int dial_exec(struct ast_channel *chan, void *data)
free(tmp);
cur = rest;
continue;
- } else {
+ } else
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Called %s\n", numsubst);
- ast_set_callerid(tmp->chan, ast_strlen_zero(chan->macroexten) ? chan->exten : chan->macroexten, 0);
- }
/* Put them in the list of outgoing thingies... We're ready now.
XXX If we're forcibly removed, these outgoing calls won't get
hung up XXX */