diff options
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 0c6c25c9a..0c49a0bf4 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3335,16 +3335,10 @@ static struct ast_channel *misdn_new(struct chan_list *chlist, int state, char else chan_misdn_log(1,0,"misdn_new: no exten given.\n"); - if (callerid) { - char *cid_name, *cid_num; - - ast_callerid_parse(callerid, &cid_name, &cid_num); + if (callerid) /* Don't use ast_set_callerid() here because it will * generate a needless NewCallerID event */ - tmp->cid.cid_num = ast_strdup(cid_num); tmp->cid.cid_ani = ast_strdup(cid_num); - tmp->cid.cid_name = ast_strdup(cid_name); - } { if (pipe(chlist->pipe)<0) |