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

Modified Files:
        chan_sip.c 
Log Message:
ensure astdb registration entries are parsed properly (bug #4126)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.719
retrieving revision 1.720
diff -u -d -r1.719 -r1.720
--- chan_sip.c  3 May 2005 02:09:16 -0000       1.719
+++ chan_sip.c  3 May 2005 02:16:45 -0000       1.720
@@ -4759,7 +4759,7 @@
        port_str = strsep(&scan, ":");
        expiry_str = strsep(&scan, ":");
        username = strsep(&scan, ":");
-       contact = strsep(&scan, ":");
+       contact = scan; /* Contact include sip: and has to be the last part of 
the database entry as long as we use : as a separator */
 
        if (!inet_aton(addr, &in))
                return;

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

Reply via email to