From: David Vossel Date: Wed, 15 Jul 2009 20:21:05 +0000 (+0000) Subject: Merged revisions 206702 via svnmerge from X-Git-Tag: 1.6.1.3-rc1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44fa8445760fc71764f4779d3c5c05336767e196;p=thirdparty%2Fasterisk.git Merged revisions 206702 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r206702 | dvossel | 2009-07-15 15:20:01 -0500 (Wed, 15 Jul 2009) | 10 lines callerid(num) is wrong when username is missing A domain only sip uri 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/branches/1.6.1@206704 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c67b8fd454..92e600f2b6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12875,8 +12875,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