aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-03 02:16:45 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-03 02:16:45 +0000
commitaf74749f6d8532abb6931b0bbcbca6675a58037d (patch)
treed99692c3edaab956f092e97895d9c53d40564c17 /channels
parent4ea9d7fe6e29c7dd3bc9672e7b86ba7857576b07 (diff)
ensure astdb registration entries are parsed properly (bug #4126)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5555 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d71c0f538..3c7735ec8 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;