aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-17 17:44:22 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-17 17:44:22 +0000
commit2b6f82ef2e0f01aba6b78c86ba37e16cc4140ee4 (patch)
tree3d21c637215efe69550dd07c666575844a232f9e /channels/chan_local.c
parentf2ffdcf8e9fd70d84c57bc6debe152357087a89f (diff)
Re-add the setting of callerid name and number.
Issue 10485, reported by and fix explained by paradise. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79902 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 4990d0fe1..1144278f0 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -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;