[asterisk-commits] file: branch 1.2 r38234 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 26 08:26:07 MST 2006


Author: file
Date: Wed Jul 26 10:26:06 2006
New Revision: 38234

URL: http://svn.digium.com/view/asterisk?rev=38234&view=rev
Log:
Put default callerid into contact when the one specified is either NULL or has a zero string length. (issue #7590 reported by key2)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=38234&r1=38233&r2=38234&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Wed Jul 26 10:26:06 2006
@@ -4847,7 +4847,7 @@
 		l = CALLERID_UNKNOWN;
 		n = l;
 	}
-	if (!l)
+	if (ast_strlen_zero(l))
 		l = default_callerid;
 	if (ast_strlen_zero(n))
 		n = l;



More information about the asterisk-commits mailing list