diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 17:28:22 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 17:28:22 +0000 |
commit | ba9e24dd4ae4f62dcee3618932543fe5c87172d7 (patch) | |
tree | d3f970b362a9ca5aadb7c8e4b8d6d5b513f5bd21 | |
parent | 9eef25dff89df8cbd9e8167da5e416811b76b421 (diff) |
Address the condition where X-ClientCode could be NULL or an empty string - from a -dev posting.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8058 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e69a8a50c..29bdfb947 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8735,7 +8735,7 @@ static void handle_request_info(struct sip_pvt *p, struct sip_request *req) 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) |