diff options
author | Mark Spencer <markster@digium.com> | 2004-03-18 20:02:15 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-18 20:02:15 +0000 |
commit | 4c06525432c95d051b771c789f84d8e40b89c82d (patch) | |
tree | 86eb8409822036e63418b96d5f785d1ee4afc4ef /apps/app_dial.c | |
parent | bf5d593e711a29fc6f39957d6772c36e62dffcdd (diff) |
Make RDNIS really work right
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-x | apps/app_dial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 521903785..eb5419bcf 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -224,7 +224,10 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu } if (o->chan->rdnis) free(o->chan->rdnis); - in->rdnis = strdup(in->exten); + if (strlen(in->macroexten)) + o->chan->rdnis = strdup(in->macroexten); + else + o->chan->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; |