[asterisk-commits] tilghman: branch 1.8 r287893 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 21 10:24:54 CDT 2010
Author: tilghman
Date: Tue Sep 21 10:24:47 2010
New Revision: 287893
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287893
Log:
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
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=287893&r1=287892&r2=287893
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Tue Sep 21 10:24:47 2010
@@ -10031,7 +10031,7 @@
const char *fromdomain;
const char *privacy = NULL;
const char *screen = NULL;
- const char *anonymous_string = "\"Anonymous\" <anonymous at anonymous.invalid>";
+ const char *anonymous_string = "\"Anonymous\" <sip:anonymous at anonymous.invalid>";
if (!ast_test_flag(&p->flags[0], SIP_SENDRPID)) {
return 0;
@@ -13991,7 +13991,7 @@
return 0;
}
*end++ = '\0';
- if (!strncasecmp(uri, "anonymous at anonymous.invalid", 27)) {
+ if (!strncasecmp(uri, "sip:anonymous at anonymous.invalid", 31)) {
callingpres = AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED;
/*XXX Assume no change in cid_num. Perhaps it should be
* blanked?
More information about the asterisk-commits
mailing list