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

Modified Files:
        chan_sip.c 
Log Message:
Oops :)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.707
retrieving revision 1.708
diff -u -d -r1.707 -r1.708
--- chan_sip.c  27 Apr 2005 15:06:23 -0000      1.707
+++ chan_sip.c  27 Apr 2005 15:11:46 -0000      1.708
@@ -1021,16 +1021,16 @@
        struct sip_pkt *cur=NULL;
        char *c;
        while(p->packets) {
-               if (cur == p) {
+               if (cur == p->packets) {
                        ast_log(LOG_WARNING, "Have a packet that doesn't want 
to give up!\n");
                        return -1;
                }
-               cur = p;
+               cur = p->packets;
                strncpy(method, p->packets->data, sizeof(method) - 1);
                c = method;
                while(*c && (*c < 33)) c++;
-               *c = '\0;;
-               __sip_ack(p, p->packets->seqno, (ast_test_flag(p->packets, 
FLAG_RESPONSE)), find_sip_method(p->packets->data));
+               *c = '\0';
+               __sip_ack(p, p->packets->seqno, (ast_test_flag(p->packets, 
FLAG_RESPONSE)), find_sip_method(method));
        }
        return 0;
 }

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

Reply via email to