mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user