diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-21 15:24:47 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-21 15:24:47 +0000 |
commit | 9f00173720ddbd28cf3e628bdc97826e573ff522 (patch) | |
tree | 73263950f3387c4ae7f5176575d2634528786222 | |
parent | 42877a4c92fe323e1d92627686b1da431863f064 (diff) |
Anonymous callerid needs a "sip:" uri prefix.
(closes issue #17981)
Reported by: avalentin
Patches:
sip-anonymous-aastra.patch uploaded by avalentin (license 1107)
(plus an additional fix by me)
Tested by: avalentin
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@287893 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 791babf9a..a7bda8de6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10031,7 +10031,7 @@ static int add_rpid(struct sip_request *req, struct sip_pvt *p) const char *fromdomain; const char *privacy = NULL; const char *screen = NULL; - const char *anonymous_string = "\"Anonymous\" <anonymous@anonymous.invalid>"; + const char *anonymous_string = "\"Anonymous\" <sip:anonymous@anonymous.invalid>"; if (!ast_test_flag(&p->flags[0], SIP_SENDRPID)) { return 0; @@ -13991,7 +13991,7 @@ static int get_pai(struct sip_pvt *p, struct sip_request *req) return 0; } *end++ = '\0'; - if (!strncasecmp(uri, "anonymous@anonymous.invalid", 27)) { + if (!strncasecmp(uri, "sip:anonymous@anonymous.invalid", 31)) { callingpres = AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED; /*XXX Assume no change in cid_num. Perhaps it should be * blanked? |