aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 10745916e..08c87e88e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4631,13 +4631,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;