ensure astdb registration entries are parsed properly (bug #4126)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 3 May 2005 02:16:45 +0000 (02:16 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 3 May 2005 02:16:45 +0000 (02:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5555 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d71c0f5..3c7735e 100755 (executable)
@@ -4759,7 +4759,7 @@ static void reg_source_db(struct sip_peer *peer)
        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;