diff options
author | David Vossel <dvossel@digium.com> | 2009-07-15 20:20:01 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2009-07-15 20:20:01 +0000 |
commit | 3402f34e9b67ee5dd84a2a2869dc8ae44280fadd (patch) | |
tree | dcb760a6e30028ca91a305c09a3d390bb02b5809 | |
parent | 6b5dbba90ced929ba1191c65f45598225f6f2c32 (diff) |
callerid(num) is wrong when username is missing
A domain only sip uri <sip:123.123.123.123> would return
123.123.123.123 as callid num. Now, if the username is
missing from a uri, the callerid num field is left empty.
(closes issue #15476)
Reported by: viraptor
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@206702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bbdbaf849..28ccb1c3d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14293,8 +14293,7 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ * really a mistake and should go away. */ of = domain; - } - { + } else { char *tmp = ast_strdupa(of); /* We need to be able to handle auth-headers looking like <sip:8164444422;phone-context=+1@1.2.3.4:5060;user=phone;tag=SDadkoa01-gK0c3bdb43> |