[asterisk-commits] dvossel: trunk r244769 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 4 17:16:34 CST 2010


Author: dvossel
Date: Thu Feb  4 17:16:30 2010
New Revision: 244769

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244769
Log:
parse_moved_contact tries to parse contact_name twice

parse_moved_contact attempts to remove a quoted string
twice, and the first try wasn't even being done correctly.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=244769&r1=244768&r2=244769
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Feb  4 17:16:30 2010
@@ -16559,14 +16559,6 @@
 	if ((separator = strchr(contact, ',')))
 		*separator = '\0';
 
-	/* ooh, a name */
-	if (*contact == '"') {
-		contact_name = contact + 1;
-		if ((separator = strchr(contact_name, '"'))) {
-			*separator++ = '\0';
-		}
-	}
-
 	contact_number = get_in_brackets(contact);
 	if ((trans = strcasestr(contact_number, ";transport="))) {
 		trans += 11;




More information about the asterisk-commits mailing list