diff options
-rw-r--r-- | channels/chan_sip.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3b54128f5..011e7d15b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4628,13 +4628,10 @@ static void build_rpid(struct sip_pvt *p) if (p->rpid || p->rpid_from) return; - if (p->owner && p->owner->cid.cid_num) { - clid = strdup(p->owner->cid.cid_num); - } - - if (p->owner && p->owner->cid.cid_name) { - clin = strdup(p->owner->cid.cid_name); - } + if (p->owner && p->owner->cid.cid_num) + clid = p->owner->cid.cid_num; + if (p->owner && p->owner->cid.cid_name) + clin = p->owner->cid.cid_name; if (ast_strlen_zero(clin)) clin = clid; |