diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-27 21:32:00 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-27 21:32:00 +0000 |
commit | 5a4fcbc5e0e3b8093c33bc0e30d5020067a8dafb (patch) | |
tree | 3d0bf70fbdf65f2dc862a492e811229f91ef2216 /channels/chan_local.c | |
parent | 0bcf4b1f932cdbd52da2cc8ebc7734a52c4d1795 (diff) |
Inherit ALL elements of CallerID across a local channel.
(closes issue #13368)
Reported by: Peter Schlaile
Patches:
20080826__bug13368.diff.txt uploaded by Corydon76 (license 14)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@152215 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | 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 c9452d8fd..f4b9479b7 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -473,11 +473,15 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout) * 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_dnid = ast_strdup(p->owner->cid.cid_dnid); 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; + p->chan->cid.cid_ani2 = p->owner->cid.cid_ani2; + p->chan->cid.cid_ton = p->owner->cid.cid_ton; + p->chan->cid.cid_tns = p->owner->cid.cid_tns; ast_string_field_set(p->chan, language, p->owner->language); ast_string_field_set(p->chan, accountcode, p->owner->accountcode); ast_cdr_update(p->chan); |