Archived
14
0
Fork 0

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
This commit is contained in:
bweschke 2006-01-13 17:28:22 +00:00
parent 9eef25dff8
commit ba9e24dd4a

View file

@ -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)