mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Make RDNIS really work right
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -224,7 +224,10 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
|||||||
}
|
}
|
||||||
if (o->chan->rdnis)
|
if (o->chan->rdnis)
|
||||||
free(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)) {
|
if (ast_call(o->chan, tmpchan, 0)) {
|
||||||
ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);
|
ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);
|
||||||
o->stillgoing = 0;
|
o->stillgoing = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user