From 98a973007d2abcf711e24af7a4f32bc35de66c3c Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 3 May 2005 02:16:45 +0000 Subject: [PATCH] ensure astdb registration entries are parsed properly (bug #4126) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5555 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d71c0f538f..3c7735ec81 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;