From b80c5c76fd581b28ab718ad741d80730579ac870 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 9 Apr 2009 17:23:14 +0000 Subject: [PATCH] Merged revisions 187381 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r187381 | tilghman | 2009-04-09 12:20:49 -0500 (Thu, 09 Apr 2009) | 4 lines 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/branches/1.6.2@187391 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 f080f1963d..1c01815b2a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6974,7 +6974,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))