mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Restore original functionality of 1.2 in places where ANI was not set, but was
changed to be set. The original change was done to ensure that the behavior of the "callerid" option in each channel driver was consistent, but it caused an unexpected behavior change of CDR records for users, so this change is being reverted in 1.2. (issue #7695) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -328,14 +328,14 @@ static int features_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
ast_mutex_lock(&p->lock);
|
||||
x = indexof(p, ast, 0);
|
||||
if (!x && p->subchan) {
|
||||
ast_set_callerid(p->subchan,
|
||||
p->owner->cid.cid_num, p->owner->cid.cid_name,
|
||||
p->owner->cid.cid_ani ? p->owner->cid.cid_ani : p->owner->cid.cid_num);
|
||||
|
||||
if (p->owner->cid.cid_rdnis)
|
||||
p->subchan->cid.cid_rdnis = strdup(p->owner->cid.cid_rdnis);
|
||||
else
|
||||
p->subchan->cid.cid_rdnis = NULL;
|
||||
p->subchan->cid.cid_name = p->owner->cid.cid_name ?
|
||||
strdup(p->owner->cid.cid_name) : NULL;
|
||||
p->subchan->cid.cid_num = p->owner->cid.cid_num ?
|
||||
strdup(p->owner->cid.cid_num) : NULL;
|
||||
p->subchan->cid.cid_ani = p->owner->cid.cid_ani ?
|
||||
strdup(p->owner->cid.cid_ani) : NULL;
|
||||
p->subchan->cid.cid_rdnis = p->owner->cid.cid_rdnis ?
|
||||
strdup(p->owner->cid.cid_rdnis) : NULL;
|
||||
|
||||
p->subchan->cid.cid_pres = p->owner->cid.cid_pres;
|
||||
strncpy(p->subchan->language, p->owner->language, sizeof(p->subchan->language) - 1);
|
||||
|
Reference in New Issue
Block a user