projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b05e77
)
Populate RDNIS information
author
Mark Spencer
<markster@digium.com>
Thu, 18 Mar 2004 05:48:40 +0000
(
05:48
+0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 18 Mar 2004 05:48:40 +0000
(
05:48
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2452
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_dial.c
patch
|
blob
|
history
diff --git
a/apps/app_dial.c
b/apps/app_dial.c
index
665e714
..
5219037
100755
(executable)
--- 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;