mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Blocked revisions 36725 via svnmerge
........ r36725 | russell | 2006-07-03 00:19:09 -0400 (Mon, 03 Jul 2006) | 4 lines use ast_set_callerid to be more consistent and to make sure that the "callerid" option in the conf files is always handled the same way and sets ANI (issue #7285, gkloepfer) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -991,12 +991,9 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o,
|
||||
ast_copy_string(c->exten, ext, sizeof(c->exten));
|
||||
if (!ast_strlen_zero(o->language))
|
||||
ast_string_field_set(c, language, o->language);
|
||||
if (!ast_strlen_zero(o->cid_num))
|
||||
c->cid.cid_num = ast_strdup(o->cid_num);
|
||||
if (!ast_strlen_zero(o->cid_name))
|
||||
c->cid.cid_name = ast_strdup(o->cid_name);
|
||||
if (!ast_strlen_zero(ext))
|
||||
c->cid.cid_dnid = strdup(ext);
|
||||
ast_set_callerid(c, o->cid_num, o->cid_name, o->cid_num);
|
||||
if (!ast_strlen_zero(ext))
|
||||
c->cid.cid_dnid = ast_strdup(ext);
|
||||
|
||||
o->owner = c;
|
||||
ast_setstate(c, state);
|
||||
|
Reference in New Issue
Block a user