[asterisk-commits] oej: branch 1.4 r58843 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 13 02:12:17 MST 2007


Author: oej
Date: Tue Mar 13 04:12:16 2007
New Revision: 58843

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58843
Log:
Issue #9251 - Clear From URI from user attributes (tgrman)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=58843&r1=58842&r2=58843
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Mar 13 04:12:16 2007
@@ -9007,6 +9007,10 @@
 		if ((c = strchr(of, ':')))
 			*c = '\0';
 		tmp = ast_strdupa(of);
+		/* We need to be able to handle auth-headers looking like
+			<sip:8164444422;phone-context=+1 at 1.2.3.4:5060;user=phone;tag=SDadkoa01-gK0c3bdb43>
+		*/
+		tmp = strsep(&tmp, ";");
 		if (ast_is_shrinkable_phonenumber(tmp))
 			ast_shrink_phone_number(tmp);
 		ast_string_field_set(p, cid_num, tmp);



More information about the asterisk-commits mailing list