mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@38927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -573,7 +573,12 @@ 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);
|
||||
|
||||
ast_set_callerid(tmp, i->cid_num, i->cid_name, i->cid_num);
|
||||
if (!ast_strlen_zero(i->cid_num)) {
|
||||
tmp->cid.cid_num = strdup(i->cid_num);
|
||||
tmp->cid.cid_ani = strdup(i->cid_num);
|
||||
}
|
||||
if (!ast_strlen_zero(i->cid_name))
|
||||
tmp->cid.cid_name = strdup(i->cid_name);
|
||||
|
||||
if (!ast_strlen_zero(i->language))
|
||||
strncpy(tmp->language,i->language, sizeof(tmp->language)-1);
|
||||
|
Reference in New Issue
Block a user