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

Modified Files:
        chan_sip.c 
Log Message:
use case-insensitive comparisons for headears (issue #5023)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.820
retrieving revision 1.821
diff -u -d -r1.820 -r1.821
--- chan_sip.c  25 Aug 2005 03:44:22 -0000      1.820
+++ chan_sip.c  26 Aug 2005 20:04:28 -0000      1.821
@@ -5290,7 +5290,7 @@
        struct sockaddr_in oldsin;
 
        if (ast_strlen_zero(expires)) { /* No expires header */
-               expires = strstr(get_header(req, "Contact"), "expires=");
+               expires = strcasestr(get_header(req, "Contact"), "expires=");
                if (expires) {
                        if (sscanf(expires + 8, "%d;", &expiry) != 1)
                                expiry = default_expiry;
@@ -8722,7 +8722,7 @@
                                } else
                                        break;
                        }
-                       tmptmp = strstr(contact, "expires=");
+                       tmptmp = strcasestr(contact, "expires=");
                        if (tmptmp) {
                                if (sscanf(tmptmp + 8, "%d;", &expires) != 1)
                                        expires = 0;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to