[svn-commits] trunk - r8058 /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jan 13 11:28:23 CST 2006


Author: bweschke
Date: Fri Jan 13 11:28:22 2006
New Revision: 8058

URL: http://svn.digium.com/view/asterisk?rev=8058&view=rev
Log:
 Address the condition where X-ClientCode could be NULL or an empty string - from a -dev posting.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8058&r1=8057&r2=8058&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jan 13 11:28:22 2006
@@ -8735,7 +8735,7 @@
 			ast_queue_control(p->owner, AST_CONTROL_VIDUPDATE);
 		transmit_response(p, "200 OK", req);
 		return;
-	} else if ((c = get_header(req, "X-ClientCode"))) {
+	} else if (!ast_strlen_zero(c = get_header(req, "X-ClientCode"))) {
 		/* Client code (from SNOM phone) */
 		if (ast_test_flag(p, SIP_USECLIENTCODE)) {
 			if (p->owner && p->owner->cdr)



More information about the svn-commits mailing list