]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Re-add the setting of callerid name and number.
authorJason Parker <jparker@digium.com>
Fri, 17 Aug 2007 17:44:22 +0000 (17:44 +0000)
committerJason Parker <jparker@digium.com>
Fri, 17 Aug 2007 17:44:22 +0000 (17:44 +0000)
Issue 10485, reported by and fix explained by paradise.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79902 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 4990d0fe1cee982e00946d8568ecd2f712bec874..1144278f0087270a6960b7a83d8085128e93868d 100644 (file)
@@ -443,6 +443,12 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
        
        ast_mutex_lock(&p->lock);
 
+       /*
+        * Note that cid_num and cid_name aren't passed in the ast_channel_alloc
+        * call, so it's done here instead.
+        */
+       p->chan->cid.cid_num = ast_strdup(p->owner->cid.cid_num);
+       p->chan->cid.cid_name = ast_strdup(p->owner->cid.cid_name);
        p->chan->cid.cid_rdnis = ast_strdup(p->owner->cid.cid_rdnis);
        p->chan->cid.cid_ani = ast_strdup(p->owner->cid.cid_ani);
        p->chan->cid.cid_pres = p->owner->cid.cid_pres;