mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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/branches/1.2@36725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -576,10 +576,7 @@ struct ast_channel *ast_modem_new(struct ast_modem_pvt *i, int state)
|
||||
tmp->tech_pvt = i;
|
||||
strncpy(tmp->context, i->context, sizeof(tmp->context)-1);
|
||||
|
||||
if (!ast_strlen_zero(i->cid_num))
|
||||
tmp->cid.cid_num = strdup(i->cid_num);
|
||||
if (!ast_strlen_zero(i->cid_name))
|
||||
tmp->cid.cid_name = strdup(i->cid_name);
|
||||
ast_set_callerid(tmp, i->cid_num, i->cid_name, i->cid_num);
|
||||
|
||||
if (!ast_strlen_zero(i->language))
|
||||
strncpy(tmp->language,i->language, sizeof(tmp->language)-1);
|
||||
|
Reference in New Issue
Block a user