mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-01 07:12:26 +00:00
Convert ast_verbose to ast_verb.
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -199,8 +199,7 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data)
|
|||||||
framelength = (ast_codec_get_samples(f) / DEFAULT_SAMPLES_PER_MS);
|
framelength = (ast_codec_get_samples(f) / DEFAULT_SAMPLES_PER_MS);
|
||||||
iTotalTime += framelength;
|
iTotalTime += framelength;
|
||||||
if (iTotalTime >= totalAnalysisTime) {
|
if (iTotalTime >= totalAnalysisTime) {
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "AMD: Channel [%s]. Too long...\n", chan->name );
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "AMD: Channel [%s]. Too long...\n", chan->name );
|
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
strcpy(amdStatus , "NOTSURE");
|
strcpy(amdStatus , "NOTSURE");
|
||||||
sprintf(amdCause , "TOOLONG-%d", iTotalTime);
|
sprintf(amdCause , "TOOLONG-%d", iTotalTime);
|
||||||
@@ -216,16 +215,14 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data)
|
|||||||
if (silenceDuration >= betweenWordsSilence) {
|
if (silenceDuration >= betweenWordsSilence) {
|
||||||
if (currentState != STATE_IN_SILENCE ) {
|
if (currentState != STATE_IN_SILENCE ) {
|
||||||
previousState = currentState;
|
previousState = currentState;
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "AMD: Changed state to STATE_IN_SILENCE\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "AMD: Changed state to STATE_IN_SILENCE\n");
|
|
||||||
}
|
}
|
||||||
currentState = STATE_IN_SILENCE;
|
currentState = STATE_IN_SILENCE;
|
||||||
consecutiveVoiceDuration = 0;
|
consecutiveVoiceDuration = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inInitialSilence == 1 && silenceDuration >= initialSilence) {
|
if (inInitialSilence == 1 && silenceDuration >= initialSilence) {
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "AMD: ANSWERING MACHINE: silenceDuration:%d initialSilence:%d\n",
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "AMD: ANSWERING MACHINE: silenceDuration:%d initialSilence:%d\n",
|
|
||||||
silenceDuration, initialSilence);
|
silenceDuration, initialSilence);
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
strcpy(amdStatus , "MACHINE");
|
strcpy(amdStatus , "MACHINE");
|
||||||
@@ -250,15 +247,13 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data)
|
|||||||
number of words if my previous state was Silence, which means that I moved into a word. */
|
number of words if my previous state was Silence, which means that I moved into a word. */
|
||||||
if (consecutiveVoiceDuration >= minimumWordLength && currentState == STATE_IN_SILENCE) {
|
if (consecutiveVoiceDuration >= minimumWordLength && currentState == STATE_IN_SILENCE) {
|
||||||
iWordsCount++;
|
iWordsCount++;
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "AMD: Word detected. iWordsCount:%d\n", iWordsCount);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "AMD: Word detected. iWordsCount:%d\n", iWordsCount);
|
|
||||||
previousState = currentState;
|
previousState = currentState;
|
||||||
currentState = STATE_IN_WORD;
|
currentState = STATE_IN_WORD;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iWordsCount >= maximumNumberOfWords) {
|
if (iWordsCount >= maximumNumberOfWords) {
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "AMD: ANSWERING MACHINE: iWordsCount:%d\n", iWordsCount);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "AMD: ANSWERING MACHINE: iWordsCount:%d\n", iWordsCount);
|
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
strcpy(amdStatus , "MACHINE");
|
strcpy(amdStatus , "MACHINE");
|
||||||
sprintf(amdCause , "MAXWORDS-%d-%d", iWordsCount, maximumNumberOfWords);
|
sprintf(amdCause , "MAXWORDS-%d-%d", iWordsCount, maximumNumberOfWords);
|
||||||
|
@@ -369,8 +369,7 @@ static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int
|
|||||||
ast_audiohook_unlock(&csth.spy_audiohook);
|
ast_audiohook_unlock(&csth.spy_audiohook);
|
||||||
ast_audiohook_destroy(&csth.spy_audiohook);
|
ast_audiohook_destroy(&csth.spy_audiohook);
|
||||||
|
|
||||||
if (option_verbose >= 2)
|
ast_verb(2, "Done Spying on channel %s\n", name);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Done Spying on channel %s\n", name);
|
|
||||||
|
|
||||||
return running;
|
return running;
|
||||||
}
|
}
|
||||||
|
@@ -1121,11 +1121,10 @@ static int setup_privacy_args(struct privacy_args *pa,
|
|||||||
l = ast_strdupa(chan->cid.cid_num);
|
l = ast_strdupa(chan->cid.cid_num);
|
||||||
ast_shrink_phone_number(l);
|
ast_shrink_phone_number(l);
|
||||||
if (ast_test_flag64(opts, OPT_PRIVACY) ) {
|
if (ast_test_flag64(opts, OPT_PRIVACY) ) {
|
||||||
ast_verb(3, "Privacy DB is '%s', clid is '%s'\n",
|
ast_verb(3, "Privacy DB is '%s', clid is '%s'\n", opt_args[OPT_ARG_PRIVACY], l);
|
||||||
opt_args[OPT_ARG_PRIVACY], l);
|
|
||||||
pa->privdb_val = ast_privacy_check(opt_args[OPT_ARG_PRIVACY], l);
|
pa->privdb_val = ast_privacy_check(opt_args[OPT_ARG_PRIVACY], l);
|
||||||
} else {
|
} else {
|
||||||
ast_verb(3, "Privacy Screening, clid is '%s'\n", l);
|
ast_verb(3, "Privacy Screening, clid is '%s'\n", l);
|
||||||
pa->privdb_val = AST_PRIVACY_UNKNOWN;
|
pa->privdb_val = AST_PRIVACY_UNKNOWN;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -1134,7 +1133,7 @@ static int setup_privacy_args(struct privacy_args *pa,
|
|||||||
tnam = ast_strdupa(chan->name);
|
tnam = ast_strdupa(chan->name);
|
||||||
/* clean the channel name so slashes don't try to end up in disk file name */
|
/* clean the channel name so slashes don't try to end up in disk file name */
|
||||||
for (tn2 = tnam; *tn2; tn2++) {
|
for (tn2 = tnam; *tn2; tn2++) {
|
||||||
if (*tn2 == '/') /* any other chars to be afraid of? */
|
if (*tn2 == '/') /* any other chars to be afraid of? */
|
||||||
*tn2 = '=';
|
*tn2 = '=';
|
||||||
}
|
}
|
||||||
ast_verb(3, "Privacy-- callerid is empty\n");
|
ast_verb(3, "Privacy-- callerid is empty\n");
|
||||||
@@ -1147,19 +1146,16 @@ static int setup_privacy_args(struct privacy_args *pa,
|
|||||||
ast_copy_string(pa->privcid, l, sizeof(pa->privcid));
|
ast_copy_string(pa->privcid, l, sizeof(pa->privcid));
|
||||||
|
|
||||||
if (strncmp(pa->privcid, "NOCALLERID", 10) != 0 && ast_test_flag64(opts, OPT_SCREEN_NOCLID)) {
|
if (strncmp(pa->privcid, "NOCALLERID", 10) != 0 && ast_test_flag64(opts, OPT_SCREEN_NOCLID)) {
|
||||||
/* if callerid is set, and OPT_SCREEN_NOCLID is set also */
|
/* if callerid is set and OPT_SCREEN_NOCLID is set also */
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "CallerID set (%s); N option set; Screening should be off\n", pa->privcid);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "CallerID set (%s); N option set; Screening should be off\n", pa->privcid);
|
|
||||||
pa->privdb_val = AST_PRIVACY_ALLOW;
|
pa->privdb_val = AST_PRIVACY_ALLOW;
|
||||||
} else if (ast_test_flag64(opts, OPT_SCREEN_NOCLID) && strncmp(pa->privcid, "NOCALLERID", 10) == 0 ) {
|
} else if (ast_test_flag64(opts, OPT_SCREEN_NOCLID) && strncmp(pa->privcid, "NOCALLERID", 10) == 0) {
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "CallerID blank; N option set; Screening should happen; dbval is %d\n", pa->privdb_val);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "CallerID blank; N option set; Screening should happen; dbval is %d\n", pa->privdb_val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pa->privdb_val == AST_PRIVACY_DENY) {
|
if (pa->privdb_val == AST_PRIVACY_DENY) {
|
||||||
|
ast_verb(3, "Privacy DB reports PRIVACY_DENY for this callerid. Dial reports unavailable\n");
|
||||||
ast_copy_string(pa->status, "NOANSWER", sizeof(pa->status));
|
ast_copy_string(pa->status, "NOANSWER", sizeof(pa->status));
|
||||||
if (option_verbose > 2)
|
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Privacy DB reports PRIVACY_DENY for this callerid. Dial reports unavailable\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
} else if (pa->privdb_val == AST_PRIVACY_KILL) {
|
} else if (pa->privdb_val == AST_PRIVACY_KILL) {
|
||||||
ast_copy_string(pa->status, "DONTCALL", sizeof(pa->status));
|
ast_copy_string(pa->status, "DONTCALL", sizeof(pa->status));
|
||||||
@@ -1832,8 +1828,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
|
|||||||
oprmode.peer = peer;
|
oprmode.peer = peer;
|
||||||
oprmode.mode = opermode;
|
oprmode.mode = opermode;
|
||||||
|
|
||||||
ast_channel_setoption(chan,
|
ast_channel_setoption(chan, AST_OPTION_OPRMODE, &oprmode, sizeof(oprmode), 0);
|
||||||
AST_OPTION_OPRMODE, &oprmode, sizeof(oprmode), 0);
|
|
||||||
}
|
}
|
||||||
res = ast_bridge_call(chan, peer, &config);
|
res = ast_bridge_call(chan, peer, &config);
|
||||||
end_time = time(NULL);
|
end_time = time(NULL);
|
||||||
|
@@ -1256,8 +1256,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
|
|||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case '2':
|
case '2':
|
||||||
/* Review */
|
/* Review */
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Reviewing the message\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Reviewing the message\n");
|
|
||||||
ast_streamfile(chan, recordfile, chan->language);
|
ast_streamfile(chan, recordfile, chan->language);
|
||||||
cmd = ast_waitstream(chan, AST_DIGIT_ANY);
|
cmd = ast_waitstream(chan, AST_DIGIT_ANY);
|
||||||
break;
|
break;
|
||||||
@@ -1266,9 +1265,9 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
|
|||||||
/* Record */
|
/* Record */
|
||||||
if (option_verbose > 2) {
|
if (option_verbose > 2) {
|
||||||
if (recorded == 1)
|
if (recorded == 1)
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Re-recording the message\n");
|
ast_verb(3, "Re-recording the message\n");
|
||||||
else
|
else
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Recording the message\n");
|
ast_verb(3, "Recording the message\n");
|
||||||
}
|
}
|
||||||
if (recorded && outsidecaller)
|
if (recorded && outsidecaller)
|
||||||
cmd = ast_play_and_wait(chan, "beep");
|
cmd = ast_play_and_wait(chan, "beep");
|
||||||
@@ -1571,8 +1570,7 @@ static int leave_voicemail(struct ast_channel *chan, char *username, struct leav
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (duration < global_vmminmessage) {
|
if (duration < global_vmminmessage) {
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, global_vmminmessage);
|
||||||
ast_verbose( VERBOSE_PREFIX_3 "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, global_vmminmessage);
|
|
||||||
fclose(txt);
|
fclose(txt);
|
||||||
ast_filedelete(tmptxtfile, NULL);
|
ast_filedelete(tmptxtfile, NULL);
|
||||||
unlink(tmptxtfile);
|
unlink(tmptxtfile);
|
||||||
|
@@ -141,8 +141,7 @@ static void *mixmonitor_thread(void *obj)
|
|||||||
char *ext;
|
char *ext;
|
||||||
int errflag = 0;
|
int errflag = 0;
|
||||||
|
|
||||||
if (option_verbose > 1)
|
ast_verb(2, "Begin MixMonitor Recording %s\n", mixmonitor->name);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Begin MixMonitor Recording %s\n", mixmonitor->name);
|
|
||||||
|
|
||||||
ast_audiohook_lock(&mixmonitor->audiohook);
|
ast_audiohook_lock(&mixmonitor->audiohook);
|
||||||
|
|
||||||
@@ -188,15 +187,13 @@ static void *mixmonitor_thread(void *obj)
|
|||||||
ast_audiohook_unlock(&mixmonitor->audiohook);
|
ast_audiohook_unlock(&mixmonitor->audiohook);
|
||||||
ast_audiohook_destroy(&mixmonitor->audiohook);
|
ast_audiohook_destroy(&mixmonitor->audiohook);
|
||||||
|
|
||||||
if (option_verbose > 1)
|
ast_verb(2, "End MixMonitor Recording %s\n", mixmonitor->name);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "End MixMonitor Recording %s\n", mixmonitor->name);
|
|
||||||
|
|
||||||
if (fs)
|
if (fs)
|
||||||
ast_closestream(fs);
|
ast_closestream(fs);
|
||||||
|
|
||||||
if (mixmonitor->post_process) {
|
if (mixmonitor->post_process) {
|
||||||
if (option_verbose > 2)
|
ast_verb(2, "Executing [%s]\n", mixmonitor->post_process);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Executing [%s]\n", mixmonitor->post_process);
|
|
||||||
ast_safe_system(mixmonitor->post_process);
|
ast_safe_system(mixmonitor->post_process);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6743,8 +6743,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
|
|||||||
if (chan->cid.cid_num) {
|
if (chan->cid.cid_num) {
|
||||||
ast_copy_string(mailbox, chan->cid.cid_num, mailbox_size);
|
ast_copy_string(mailbox, chan->cid.cid_num, mailbox_size);
|
||||||
} else {
|
} else {
|
||||||
if (option_verbose > 2)
|
ast_verb(3,"Username not entered\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Username not entered\n");
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8929,8 +8928,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
|
|||||||
char mailbox[AST_MAX_EXTENSION * 2 + 2];
|
char mailbox[AST_MAX_EXTENSION * 2 + 2];
|
||||||
snprintf(mailbox, sizeof(mailbox), "%s@%s", num, vmu->context);
|
snprintf(mailbox, sizeof(mailbox), "%s@%s", num, vmu->context);
|
||||||
|
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Leaving voicemail for '%s' in context '%s'\n", num, vmu->context);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Leaving voicemail for '%s' in context '%s'\n", num, vmu->context);
|
|
||||||
|
|
||||||
memset(&leave_options, 0, sizeof(leave_options));
|
memset(&leave_options, 0, sizeof(leave_options));
|
||||||
leave_options.record_gain = record_gain;
|
leave_options.record_gain = record_gain;
|
||||||
@@ -9005,8 +9003,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
/* Otherwise 1 is to save the existing message */
|
/* Otherwise 1 is to save the existing message */
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Saving message as is\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n");
|
|
||||||
if (!outsidecaller)
|
if (!outsidecaller)
|
||||||
ast_filerename(tempfile, recordfile, NULL);
|
ast_filerename(tempfile, recordfile, NULL);
|
||||||
ast_stream_and_wait(chan, "vm-msgsaved", "");
|
ast_stream_and_wait(chan, "vm-msgsaved", "");
|
||||||
@@ -9019,20 +9016,17 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
|
|||||||
}
|
}
|
||||||
case '2':
|
case '2':
|
||||||
/* Review */
|
/* Review */
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Reviewing the message\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Reviewing the message\n");
|
|
||||||
cmd = ast_stream_and_wait(chan, tempfile, AST_DIGIT_ANY);
|
cmd = ast_stream_and_wait(chan, tempfile, AST_DIGIT_ANY);
|
||||||
break;
|
break;
|
||||||
case '3':
|
case '3':
|
||||||
message_exists = 0;
|
message_exists = 0;
|
||||||
/* Record */
|
/* Record */
|
||||||
if (recorded == 1) {
|
if (recorded == 1)
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Re-recording the message\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Re-recording the message\n");
|
else
|
||||||
} else {
|
ast_verb(3, "Recording the message\n");
|
||||||
if (option_verbose > 2)
|
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Recording the message\n");
|
|
||||||
}
|
|
||||||
if (recorded && outsidecaller) {
|
if (recorded && outsidecaller) {
|
||||||
cmd = ast_play_and_wait(chan, INTRO);
|
cmd = ast_play_and_wait(chan, INTRO);
|
||||||
cmd = ast_play_and_wait(chan, "beep");
|
cmd = ast_play_and_wait(chan, "beep");
|
||||||
|
@@ -1427,7 +1427,7 @@ static struct skinny_line *find_line_by_name(const char *dest)
|
|||||||
/* This is a match, since we're checking for line on every device. */
|
/* This is a match, since we're checking for line on every device. */
|
||||||
} else if (!strcasecmp(d->name, device)) {
|
} else if (!strcasecmp(d->name, device)) {
|
||||||
if (skinnydebug)
|
if (skinnydebug)
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Found device: %s\n", d->name);
|
ast_verb(2, "Found device: %s\n", d->name);
|
||||||
} else
|
} else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -1436,7 +1436,7 @@ static struct skinny_line *find_line_by_name(const char *dest)
|
|||||||
/* Search for the right line */
|
/* Search for the right line */
|
||||||
if (!strcasecmp(l->name, line)) {
|
if (!strcasecmp(l->name, line)) {
|
||||||
if (tmpl) {
|
if (tmpl) {
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Ambiguous line name: %s\n", line);
|
ast_verb(2, "Ambiguous line name: %s\n", line);
|
||||||
ast_mutex_unlock(&devicelock);
|
ast_mutex_unlock(&devicelock);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else
|
} else
|
||||||
|
@@ -986,8 +986,7 @@ static void *netconsole(void *vconsole)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Remote UNIX connection disconnected\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Remote UNIX connection disconnected\n");
|
|
||||||
close(con->fd);
|
close(con->fd);
|
||||||
close(con->p[0]);
|
close(con->p[0]);
|
||||||
close(con->p[1]);
|
close(con->p[1]);
|
||||||
@@ -1050,10 +1049,8 @@ static void *listener(void *unused)
|
|||||||
fdprint(s, "No more connections allowed\n");
|
fdprint(s, "No more connections allowed\n");
|
||||||
ast_log(LOG_WARNING, "No more connections allowed\n");
|
ast_log(LOG_WARNING, "No more connections allowed\n");
|
||||||
close(s);
|
close(s);
|
||||||
} else if (consoles[x].fd > -1) {
|
} else if (consoles[x].fd > -1)
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Remote UNIX connection\n");
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Remote UNIX connection\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -149,18 +149,14 @@ int ast_netsock_set_qos(int netsocket, int tos, int cos)
|
|||||||
|
|
||||||
if ((res = setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))))
|
if ((res = setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))))
|
||||||
ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
|
ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
|
||||||
else {
|
else
|
||||||
if (option_verbose > 1)
|
ast_verb(2, "Using TOS bits %d\n", tos);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(linux)
|
#if defined(linux)
|
||||||
if (setsockopt(netsocket, SOL_SOCKET, SO_PRIORITY, &cos, sizeof(cos)))
|
if (setsockopt(netsocket, SOL_SOCKET, SO_PRIORITY, &cos, sizeof(cos)))
|
||||||
ast_log(LOG_WARNING, "Unable to set CoS to %d\n", cos);
|
ast_log(LOG_WARNING, "Unable to set CoS to %d\n", cos);
|
||||||
else {
|
else
|
||||||
if (option_verbose > 1)
|
ast_verb(2, "Using CoS mark %d\n", cos);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Using CoS mark %d\n", cos);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
@@ -3294,8 +3294,7 @@ static int __ast_pbx_run(struct ast_channel *c)
|
|||||||
if ((res == AST_PBX_ERROR) && ast_exists_extension(c, c->context, "e", 1, c->cid.cid_num)) {
|
if ((res == AST_PBX_ERROR) && ast_exists_extension(c, c->context, "e", 1, c->cid.cid_num)) {
|
||||||
/* if we are already on the 'e' exten, don't jump to it again */
|
/* if we are already on the 'e' exten, don't jump to it again */
|
||||||
if (!strcmp(c->exten, "e")) {
|
if (!strcmp(c->exten, "e")) {
|
||||||
if (option_verbose > 1)
|
ast_verb(2, "Spawn extension (%s, %s, %d) exited ERROR while already on 'e' exten on '%s'\n", c->context, c->exten, c->priority, c->name);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Spawn extension (%s, %s, %d) exited ERROR while already on 'e' exten on '%s'\n", c->context, c->exten, c->priority, c->name);
|
|
||||||
error = 1;
|
error = 1;
|
||||||
} else {
|
} else {
|
||||||
pbx_builtin_raise_exception(c, "ERROR");
|
pbx_builtin_raise_exception(c, "ERROR");
|
||||||
|
@@ -224,10 +224,8 @@ int ast_get_srv(struct ast_channel *chan, char *host, int hostlen, int *port, co
|
|||||||
ast_copy_string(host, current->host, hostlen);
|
ast_copy_string(host, current->host, hostlen);
|
||||||
*port = current->port;
|
*port = current->port;
|
||||||
ast_free(current);
|
ast_free(current);
|
||||||
if (option_verbose > 3) {
|
ast_verb(3, "ast_get_srv: SRV lookup for '%s' mapped to host %s, port %d\n",
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "ast_get_srv: SRV lookup for '%s' mapped to host %s, port %d\n",
|
|
||||||
service, host, *port);
|
service, host, *port);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
host[0] = '\0';
|
host[0] = '\0';
|
||||||
*port = -1;
|
*port = -1;
|
||||||
|
@@ -765,8 +765,7 @@ static int builtin_automixmonitor(struct ast_channel *chan, struct ast_channel *
|
|||||||
// This means a mixmonitor is attached to the channel, running or not is unknown.
|
// This means a mixmonitor is attached to the channel, running or not is unknown.
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
|
|
||||||
if (option_verbose > 3)
|
ast_verb(3, "User hit '%s' to stop recording call.\n", code);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "User hit '%s' to stop recording call.\n", code);
|
|
||||||
|
|
||||||
//Make sure they are running
|
//Make sure they are running
|
||||||
ast_channel_lock(callee_chan);
|
ast_channel_lock(callee_chan);
|
||||||
@@ -821,8 +820,7 @@ static int builtin_automixmonitor(struct ast_channel *chan, struct ast_channel *
|
|||||||
args[x] = '-';
|
args[x] = '-';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option_verbose > 3)
|
ast_verb(3, "User hit '%s' to record call. filename: %s\n", code, touch_filename);
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "User hit '%s' to record call. filename: %s\n", code, touch_filename);
|
|
||||||
|
|
||||||
pbx_exec(callee_chan, mixmonitor_app, args);
|
pbx_exec(callee_chan, mixmonitor_app, args);
|
||||||
pbx_builtin_setvar_helper(callee_chan, "TOUCH_MIXMONITOR_OUTPUT", touch_filename);
|
pbx_builtin_setvar_helper(callee_chan, "TOUCH_MIXMONITOR_OUTPUT", touch_filename);
|
||||||
@@ -945,8 +943,7 @@ static int builtin_blindtransfer(struct ast_channel *chan, struct ast_channel *p
|
|||||||
}
|
}
|
||||||
if (!transferee->pbx) {
|
if (!transferee->pbx) {
|
||||||
/* Doh! Use our handy async_goto functions */
|
/* Doh! Use our handy async_goto functions */
|
||||||
if (option_verbose > 2)
|
ast_verb(3, "Transferring %s to '%s' (context %s) priority 1\n"
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "Transferring %s to '%s' (context %s) priority 1\n"
|
|
||||||
,transferee->name, xferto, transferer_real_context);
|
,transferee->name, xferto, transferer_real_context);
|
||||||
if (ast_async_goto(transferee, transferer_real_context, xferto, 1))
|
if (ast_async_goto(transferee, transferer_real_context, xferto, 1))
|
||||||
ast_log(LOG_WARNING, "Async goto failed :-(\n");
|
ast_log(LOG_WARNING, "Async goto failed :-(\n");
|
||||||
|
@@ -145,7 +145,7 @@ static oid asterisk_oid[] = { 1, 3, 6, 1, 4, 1, 22736, 1 };
|
|||||||
|
|
||||||
void *agent_thread(void *arg)
|
void *agent_thread(void *arg)
|
||||||
{
|
{
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Starting %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
|
ast_verb(2, "Starting %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
|
||||||
|
|
||||||
snmp_enable_stderrlog();
|
snmp_enable_stderrlog();
|
||||||
|
|
||||||
@@ -168,8 +168,7 @@ void *agent_thread(void *arg)
|
|||||||
|
|
||||||
snmp_shutdown("asterisk");
|
snmp_shutdown("asterisk");
|
||||||
|
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Terminating %sAgent\n",
|
ast_verb(2, "Terminating %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
|
||||||
res_snmp_agentx_subagent ? "Sub" : "");
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user