From: Richard Mudgett Date: Mon, 24 Sep 2012 22:09:12 +0000 (+0000) Subject: Be consistent, send From: "Anonymous" X-Git-Tag: 1.8.18.0-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c9a02a93b3e396758f07a2040ba0b10211cae5;p=thirdparty%2Fasterisk.git Be consistent, send From: "Anonymous" When setting CALLERID(pres)=unavailable in the dialplan, the From header in the SIP message contains "Anonymous" . For consistency, Asterisk should use a lowercase a in the userpart of the URI. * Make the From header use a lowercase A in the userpart of the anonymous URI. (closes issue ASTERISK-19838) Reported by: Antti Yrjola Patches: chan_sip_patch_ASTERISK-19838.patch (license #6383) patch uploaded by Antti Yrjola git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@373500 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cc691ab7b8..b4f568901f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12096,8 +12096,8 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho } else { /* Even if we are using RPID, we shouldn't leak information in the From if the user wants * their callerid restricted */ - l = CALLERID_UNKNOWN; - n = l; + l = "anonymous"; + n = CALLERID_UNKNOWN; d = FROMDOMAIN_INVALID; } }