[asterisk-commits] tilghman: trunk r187381 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 9 12:21:03 CDT 2009
Author: tilghman
Date: Thu Apr 9 12:20:49 2009
New Revision: 187381
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187381
Log:
Allow '/' in username portion of register; this is a regression.
(closes issue #14668)
Reported by: Netview
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=187381&r1=187380&r2=187381
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Apr 9 12:20:49 2009
@@ -7082,7 +7082,7 @@
expire = strchr(buf, '~');
if (expire)
*expire++ = '\0';
- callback = strchr(buf, '/');
+ callback = strrchr(buf, '/');
if (callback)
*callback++ = '\0';
if (ast_strlen_zero(callback))
More information about the asterisk-commits
mailing list