aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 04:25:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 04:25:21 +0000
commit4c50c16addfc846eefccf8d517e696a23e869bd1 (patch)
tree9e29310d1f0916eaa0b2301492a9ed5f1c5e093a /channels/chan_oss.c
parent9f9c7882f4f3b0b592576b1f9a44a44b77c4d472 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@36726 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r--channels/chan_oss.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 98ca519de..ace9d50bb 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -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);