diff options
Diffstat (limited to 'channels/chan_jingle.c')
-rw-r--r-- | channels/chan_jingle.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index 6b09815fb..20fa6d083 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -487,7 +487,8 @@ static int jingle_is_answered(struct jingle *client, ikspak *pak) { struct jingle_pvt *tmp; - ast_log(LOG_DEBUG, "The client is %s\n", client->name); + if (option_debug) + ast_log(LOG_DEBUG, "The client is %s\n", client->name); /* Make sure our new call doesn't exist yet */ for (tmp = client->p; tmp; tmp = tmp->next) { if (iks_find_with_attrib(pak->x, GOOGLE_NODE, GOOGLE_SID, tmp->sid)) @@ -555,7 +556,8 @@ static int jingle_hangup_farend(struct jingle *client, ikspak *pak) { struct jingle_pvt *tmp; - ast_log(LOG_DEBUG, "The client is %s\n", client->name); + if (option_debug) + ast_log(LOG_DEBUG, "The client is %s\n", client->name); /* Make sure our new call doesn't exist yet */ for (tmp = client->p; tmp; tmp = tmp->next) { if (iks_find_with_attrib(pak->x, GOOGLE_NODE, GOOGLE_SID, tmp->sid)) |