diff options
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-x | channels/chan_local.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 524458979..afce4aff7 100755 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -242,6 +242,10 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout) p->chan->callerid = strdup(p->owner->callerid); else p->chan->callerid = NULL; + if (p->owner->rdnis) + p->chan->rdnis = strdup(p->owner->rdnis); + else + p->chan->rdnis = NULL; if (p->owner->ani) p->chan->ani = strdup(p->owner->ani); else |