[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.43,1.510.2.44

russell at lists.digium.com russell at lists.digium.com
Sat Jan 29 01:05:06 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22133/channels

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
fix restrictcid with mysql users (bug #3442)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.43
retrieving revision 1.510.2.44
diff -u -d -r1.510.2.43 -r1.510.2.44
--- chan_sip.c	29 Jan 2005 06:40:09 -0000	1.510.2.43
+++ chan_sip.c	29 Jan 2005 07:06:57 -0000	1.510.2.44
@@ -1072,7 +1072,7 @@
 							if (sscanf(rowval[x], "%li", &regseconds) != 1)
 								regseconds = 0;
 						} else if (!strcasecmp(fields[x].name, "restrictcid")) {
-							u->restrictcid = 1;
+							u->restrictcid = *(rowval[x])-'0';
 						} else if (!strcasecmp(fields[x].name, "callerid")) {
 							strncpy(u->callerid, rowval[x], sizeof(u->callerid) - 1);
 							u->hascallerid=1;




More information about the svn-commits mailing list