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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 15 15:20:07 CDT 2009


Author: dvossel
Date: Wed Jul 15 15:20:01 2009
New Revision: 206702

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206702
Log:
callerid(num) is wrong when username is missing 

A domain only sip uri <sip:123.123.123.123> would return
123.123.123.123 as callid num.  Now, if the username is
missing from a uri, the callerid num field is left empty.

(closes issue #15476)
Reported by: viraptor


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=206702&r1=206701&r2=206702
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jul 15 15:20:01 2009
@@ -14293,8 +14293,7 @@
 		 * really a mistake and should go away.
 		 */
 		of = domain;
-	}
-	{
+	} else {
 		char *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>




More information about the asterisk-commits mailing list