summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-06-30 15:29:15 +0000
committerJoshua Colp <jcolp@digium.com>2006-06-30 15:29:15 +0000
commit59be0b03b7dbbc6b347bdf2389230b82a4e76b28 (patch)
tree131f3601f0bfe05afeef349d6167ec9a9c3f2d9c /channels
parentb39cb899d6bee13e978ba768383901d1f8b99c76 (diff)
Fix up a few log messages in chan_sip (issue #7449 reported by tgrman)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1797eb39c..f9d641e90 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3286,7 +3286,7 @@ static void try_suggested_sip_codec(struct sip_pvt *p)
fmt = ast_getformatbyname(codec);
if (fmt) {
- ast_log(LOG_NOTICE, "Changing codec to '%s' for this call because of ${SIP_CODEC) variable\n", codec);
+ ast_log(LOG_NOTICE, "Changing codec to '%s' for this call because of ${SIP_CODEC} variable\n", codec);
if (p->jointcapability & fmt) {
p->jointcapability &= fmt;
p->capability &= fmt;
@@ -11277,7 +11277,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);
}
} else {
- ast_log(LOG_WARNING, "Strange... The other side of the bridge don't have udptl struct\n");
+ ast_log(LOG_WARNING, "Strange... The other side of the bridge does not have a udptl struct\n");
ast_mutex_lock(&bridgepvt->lock);
bridgepvt->t38.state = T38_DISABLED;
ast_mutex_unlock(&bridgepvt->lock);
@@ -13392,7 +13392,8 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
transmit_response(p, "202 Accepted", req);
if (current.chan1 && current.chan2) {
- ast_log(LOG_NOTICE, "chan1->name: %s\n", current.chan1->name);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "chan1->name: %s\n", current.chan1->name);
pbx_builtin_setvar_helper(current.chan1, "BLINDTRANSFER", current.chan2->name);
}
if (current.chan2) {