projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aaffe4
)
Address the condition where X-ClientCode could be NULL or an empty string - from...
author
BJ Weschke
<bweschke@btwtech.com>
Fri, 13 Jan 2006 17:28:22 +0000
(17:28 +0000)
committer
BJ Weschke
<bweschke@btwtech.com>
Fri, 13 Jan 2006 17:28:22 +0000
(17:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8058
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
e69a8a5
..
29bdfb9
100644
(file)
--- 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)