diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 16:20:23 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 16:20:23 +0000 |
commit | 0b63f610397b0a6adddb8b401b305b0f107bb3a6 (patch) | |
tree | 3a6631961ee9f47919e500c2f112cb86e26f11d1 | |
parent | ae7ab1aff9544a168171def2af815e7119894c58 (diff) |
Fix accidental removal of if() in commit 38905
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39171 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 63b177c06..cbe8cbb8c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3688,7 +3688,8 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit tmp->cid.cid_num = ast_strdup(i->cid_num); tmp->cid.cid_ani = ast_strdup(i->cid_num); tmp->cid.cid_name = ast_strdup(i->cid_name); - tmp->cid.cid_rdnis = ast_strdup(i->rdnis); + if (!ast_strlen_zero(i->rdnis)) + tmp->cid.cid_rdnis = ast_strdup(i->rdnis); if (!ast_strlen_zero(i->exten) && strcmp(i->exten, "s")) tmp->cid.cid_dnid = ast_strdup(i->exten); |