diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 04:19:09 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 04:19:09 +0000 |
commit | 60f32b41b9db75c382cc8339aa4e2c713b3b5b2a (patch) | |
tree | f3793ab046d5cd71925de15d7fd949e84ea541b9 /channels/chan_misdn.c | |
parent | c7bae4c5900fb330ea3125bb184ada50d929cea4 (diff) |
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/branches/1.2@36725 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 46296c18f..2538d3583 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2164,10 +2164,7 @@ struct ast_channel *misdn_new(struct chan_list *chlist, int state, char * name, char *cid_name, *cid_num; ast_callerid_parse(callerid, &cid_name, &cid_num); - if (cid_name) - tmp->cid.cid_name=strdup(cid_name); - if (cid_num) - tmp->cid.cid_num=strdup(cid_num); + ast_set_callerid(tmp, cid_num, cid_name, cid_num); } { |