aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-18 05:48:40 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-18 05:48:40 +0000
commit096423e264f27dc2e5cf97a21d7ebe27b1893607 (patch)
tree1ba44a6cca654bac1c8891abea76654d5fa61bad /apps/app_dial.c
parent89d02e08fc3e2d06c8abc4755e3f06da0719d1c8 (diff)
Populate RDNIS information
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2452 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 665e714fa..521903785 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -222,6 +222,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
else
ast_log(LOG_WARNING, "Out of memory\n");
}
+ if (o->chan->rdnis)
+ free(o->chan->rdnis);
+ in->rdnis = strdup(in->exten);
if (ast_call(o->chan, tmpchan, 0)) {
ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);
o->stillgoing = 0;