diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-28 21:32:48 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-28 21:32:48 +0000 |
commit | 9cb49092c8c33011580b1fee644a96bd57fd72b4 (patch) | |
tree | ccb01541f202b4ff5fa2699daa4ac2d97f68aadf /apps | |
parent | 960b12736d958ee09d603c2ed7a16d9309e709e0 (diff) |
Various minor cleanups (bug #931)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2087 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_qcall.c | 2 | ||||
-rwxr-xr-x | apps/app_queue.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/app_qcall.c b/apps/app_qcall.c index 78e83eef8..e876f0ae3 100755 --- a/apps/app_qcall.c +++ b/apps/app_qcall.c @@ -338,7 +338,7 @@ time_t t; strcpy(channel->exten,extstr); strcpy(channel->context,context); channel->priority = 1; - printf("Caller ID is %s\n", channel->callerid); + if(debug) printf("Caller ID is %s\n", channel->callerid); ast_pbx_run(channel); pthread_exit(NULL); } diff --git a/apps/app_queue.c b/apps/app_queue.c index e7b7ab8bd..4844df98a 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1131,8 +1131,9 @@ static int queue_exec(struct ast_channel *chan, void *data) } } } - printf("queue: %s, options: %s, url: %s, announce: %s\n", - queuename, options, url, announceoverride); + if (option_debug) + ast_log(LOG_DEBUG, "queue: %s, options: %s, url: %s, announce: %s\n", + queuename, options, url, announceoverride); /* Setup our queue entry */ memset(&qe, 0, sizeof(qe)); qe.chan = chan; |