]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Be consistent, send From: "Anonymous" <sip:anonymous@anonymous.invalid>
authorRichard Mudgett <rmudgett@digium.com>
Mon, 24 Sep 2012 22:11:01 +0000 (22:11 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 24 Sep 2012 22:11:01 +0000 (22:11 +0000)
When setting CALLERID(pres)=unavailable in the dialplan, the From header
in the SIP message contains "Anonymous" <sip:Anonymous@anonymous.invalid>.
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
........

Merged revisions 373500 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@373501 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 12b747605f2b6280c203100b6c129b04c905a256..dc4938a90b9c2c727260593f2d26cf7f86bc233e 100644 (file)
@@ -12493,8 +12493,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;
                }
        }