diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-10 16:34:35 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-10 16:34:35 +0000 |
commit | 97103e9bdbaed7bf0acae8a898b2a48cabb61e81 (patch) | |
tree | bbcad550ab2c70588314c88c68be0a4c4a8c8107 /channels | |
parent | f0ab761d9bde9ee8c3b4e9002db12066a08e19bd (diff) |
Merged revisions 162663 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r162663 | mmichelson | 2008-12-10 10:24:56 -0600 (Wed, 10 Dec 2008) | 11 lines
Revert fix for issue 13570. It has caused more problems than
it helped to fix.
(closes issue #13783)
Reported by: navkumar
(closes issue #14025)
Reported by: ffs
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162664 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 12d5944ba..9c07c41bc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6813,7 +6813,6 @@ static int sip_register(const char *value, int lineno) char *port = NULL; char *hostname=NULL, *secret=NULL, *authuser=NULL, *expire=NULL; char *callback=NULL; - char *reserved = NULL; if (!value) return -1; @@ -6838,15 +6837,7 @@ static int sip_register(const char *value, int lineno) if (authuser) *authuser++ = '\0'; } - if ((reserved = strpbrk(username, SIP_RESERVED))) { - goto invalid_char; - } - if (!ast_strlen_zero(secret) && (reserved = strpbrk(secret, SIP_RESERVED))) { - goto invalid_char; - } - if (!ast_strlen_zero(authuser) && (reserved = strpbrk(authuser, SIP_RESERVED))) { - goto invalid_char; - } + /* split host[:port][/contact] */ expire = strchr(hostname, '~'); if (expire) @@ -6861,9 +6852,6 @@ static int sip_register(const char *value, int lineno) if ((port = strchr(hostname, ':'))) { *port = '\0'; } - if ((reserved = strpbrk(hostname, SIP_RESERVED))) { - goto invalid_char; - } /* And then re-merge the host and port so they are stored correctly */ if (port) { @@ -6902,10 +6890,6 @@ static int sip_register(const char *value, int lineno) ASTOBJ_CONTAINER_LINK(®l, reg); /* Add the new registry entry to the list */ registry_unref(reg, "unref the reg pointer"); /* release the reference given by ASTOBJ_INIT. The container has another reference */ return 0; - -invalid_char: - ast_log(LOG_ERROR, "A reserved character ('%c') was used in a \"register\" line. This registration will not occur\n", *reserved); - return -1; } /*! \brief Parse mwi=> line in sip.conf and add to list */ |