summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-04-19 00:04:03 +0000
committerOlle Johansson <oej@edvina.net>2006-04-19 00:04:03 +0000
commitd0f254ef617d7dcafbcf08c35cf34321af2cebbb (patch)
treea39da36aa41338685f959305d0b652197578d1ee
parentcc2fb34bb3c0a49a634808e1985d5c4eba5acbdc (diff)
Cosmetic fixes to code...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 364b27876..e8236d27b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3121,7 +3121,8 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit
for (v = i->chanvars ; v ; v = v->next)
pbx_builtin_setvar_helper(tmp,v->name,v->value);
- append_history(i, "NewChan", "Channel %s - from %s", tmp->name, i->callid);
+ if (recordhistory)
+ append_history(i, "NewChan", "Channel %s - from %s", tmp->name, i->callid);
return tmp;
}
@@ -10791,7 +10792,7 @@ static const char *gettag(const struct sip_request *req, char *header, char *tag
if (sep)
*sep = '\0';
}
- return thetag; /* XXX maybe this should be tagbuf instead ? */
+ return tagbuf;
}
/*! \brief Handle incoming notifications */