diff --git a/channels/chan_dect.c b/channels/chan_dect.c index 28acaca99..83e3815e2 100644 --- a/channels/chan_dect.c +++ b/channels/chan_dect.c @@ -401,8 +401,8 @@ static int dect_call(struct ast_channel *chan, char *dest, int timeout) struct dect_ie_basic_service service; /* Store CallerID for ALERTING state */ - ast_string_field_set(pvt, cid_num, chan->cid.cid_num); - ast_string_field_set(pvt, cid_name, chan->cid.cid_name); + ast_string_field_set(pvt, cid_num, chan->caller.id.number.str); + ast_string_field_set(pvt, cid_name, chan->caller.id.name.str); dect_ie_init(&service); service.class = DECT_CALL_CLASS_NORMAL;