summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-04-09 17:20:49 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-04-09 17:20:49 +0000
commit7304ac444e3ad9bd70a64f886121c30c5971946b (patch)
tree0d04049a423230d990376e6653af372690a00440 /channels
parent3a220874ccc50139dfef37a05c087435b93cd6c4 (diff)
Allow '/' in username portion of register; this is a regression.
(closes issue #14668) Reported by: Netview git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 30a0e73da..bb1886e36 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7082,7 +7082,7 @@ static int sip_register(const char *value, int lineno)
expire = strchr(buf, '~');
if (expire)
*expire++ = '\0';
- callback = strchr(buf, '/');
+ callback = strrchr(buf, '/');
if (callback)
*callback++ = '\0';
if (ast_strlen_zero(callback))