Populated RDNIS
authorMark Spencer <markster@digium.com>
Thu, 18 Mar 2004 20:33:55 +0000 (20:33 +0000)
committerMark Spencer <markster@digium.com>
Thu, 18 Mar 2004 20:33:55 +0000 (20:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2457 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 5244589..afce4af 100755 (executable)
@@ -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