aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-03 15:36:16 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-03 15:36:16 +0000
commit412794a49a55589e58eb336e69a12232d9aea46d (patch)
tree9f76f97a207e366778d5aaba2e6736bae1a5087a
parentc7868056e5be968caf4db72a8f66b0bfd786d397 (diff)
Fix a bug where an RPID header could be generated with a blank username in the URI.
(closes issue #15909) Reported by: kobaz git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@227166 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index f804da87b..fdd3dc7c4 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7272,7 +7272,7 @@ static void build_rpid(struct sip_pvt *p)
if (!ast_strlen_zero(p->rpid) || !ast_strlen_zero(p->rpid_from))
return;
- if (p->owner && p->owner->cid.cid_num)
+ if (p->owner && !ast_strlen_zero(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;