diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-18 05:48:40 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-18 05:48:40 +0000 |
commit | 096423e264f27dc2e5cf97a21d7ebe27b1893607 (patch) | |
tree | 1ba44a6cca654bac1c8891abea76654d5fa61bad /apps/app_dial.c | |
parent | 89d02e08fc3e2d06c8abc4755e3f06da0719d1c8 (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-x | apps/app_dial.c | 3 |
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; |