From: Tilghman Lesher Date: Thu, 9 Apr 2009 17:20:49 +0000 (+0000) Subject: Allow '/' in username portion of register; this is a regression. X-Git-Tag: 11.0.0-beta1~5089 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7304ac444e3ad9bd70a64f886121c30c5971946b;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 30a0e73dae..bb1886e363 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))