ODBC_res = SQLAllocHandle(SQL_HANDLE_STMT, obj->con, &stmt);
if ((ODBC_res != SQL_SUCCESS) && (ODBC_res != SQL_SUCCESS_WITH_INFO)) {
- ast_verb(11, "cdr_odbc: Failure in AllocStatement %d\n", ODBC_res);
+ ast_log(LOG_WARNING, "cdr_odbc: Failure in AllocStatement %d\n", ODBC_res);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
return NULL;
}
ODBC_res = SQLExecDirect(stmt, (unsigned char *)sqlcmd, SQL_NTS);
if ((ODBC_res != SQL_SUCCESS) && (ODBC_res != SQL_SUCCESS_WITH_INFO)) {
- ast_verb(11, "cdr_odbc: Error in ExecDirect: %d\n", ODBC_res);
+ ast_log(LOG_WARNING, "cdr_odbc: Error in ExecDirect: %d, query is: %s\n", ODBC_res, sqlcmd);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
return NULL;
}
sprintf(offer->decline_m_line, "m=audio 0 %s %s", protocol, codecs);
if (x == 0) {
- ast_log(LOG_WARNING, "Ignoring audio media offer because port number is zero\n");
+ ast_debug(1, "Ignoring audio media offer because port number is zero\n");
continue;
}
sprintf(offer->decline_m_line, "m=video 0 %s %s", protocol, codecs);
if (x == 0) {
- ast_log(LOG_WARNING, "Ignoring video stream offer because port number is zero\n");
+ ast_debug(1, "Ignoring video stream offer because port number is zero\n");
continue;
}
sprintf(offer->decline_m_line, "m=text 0 %s %s", protocol, codecs);
if (x == 0) {
- ast_log(LOG_WARNING, "Ignoring text stream offer because port number is zero\n");
+ ast_debug(1, "Ignoring text stream offer because port number is zero\n");
continue;
}
strcpy(offer->decline_m_line, "m=image 0 udptl t38");
if (x == 0) {
- ast_log(LOG_WARNING, "Ignoring image stream offer because port number is zero\n");
+ ast_debug(1, "Ignoring image stream offer because port number is zero\n");
continue;
}
ast_sockaddr_set_port(isa, udptlportno);
ast_udptl_set_peer(p->udptl, isa);
if (debug)
- ast_debug(1,"Peer T.38 UDPTL is at port %s\n", ast_sockaddr_stringify(isa));
+ ast_debug(1, "Peer T.38 UDPTL is at port %s\n", ast_sockaddr_stringify(isa));
/* verify the far max ifp can be calculated. this requires far max datagram to be set. */
if (!ast_udptl_get_far_max_datagram(p->udptl)) {
}
/* Send the feature code to the PBX as DTMF, just like the handset had sent it */
f.len = 100;
- for (j=0; j < strlen(feat->exten); j++) {
+ for (j = 0; j < strlen(feat->exten); j++) {
f.subclass.integer = feat->exten[j];
ast_queue_frame(p->owner, &f);
if (sipdebug) {
ast_cli(a->fd, "SIP Debugging Disabled\n");
return CLI_SUCCESS;
}
- } else if (a->argc == e->args +1) {/* ip/peer */
+ } else if (a->argc == e->args + 1) { /* ip/peer */
if (!strcasecmp(what, "ip"))
return sip_do_debug_ip(a->fd, a->argv[e->args]);
else if (!strcasecmp(what, "peer"))
accept = __get_header(req, "Accept", &start);
while (!found_supported && !ast_strlen_zero(accept)) {
found_supported = strcmp(accept, "application/simple-message-summary") ? 0 : 1;
- if (!found_supported && (option_debug > 2)) {
- ast_debug(1, "Received SIP mailbox subscription for unknown format: %s\n", accept);
+ if (!found_supported) {
+ ast_debug(3, "Received SIP mailbox subscription for unknown format: %s\n", accept);
}
accept = __get_header(req, "Accept", &start);
}
+ /* If !start, there is no Accept header at all */
if (start && !found_supported) {
/* Format requested that we do not support */
transmit_response(p, "406 Not Acceptable", req);
static int setup_srtp(struct sip_srtp **srtp)
{
if (!ast_rtp_engine_srtp_is_registered()) {
- ast_log(LOG_ERROR, "No SRTP module loaded, can't setup SRTP session.\n");
+ ast_debug(1, "No SRTP module loaded, can't setup SRTP session.\n");
return -1;
}
if (app->module)
u = __ast_module_user_add(app->module, c);
- if (strcasecmp(app->name, "system") && !ast_strlen_zero(data) &&
- strchr(data, '|') && !strchr(data, ',') && !ast_opt_dont_warn) {
- ast_log(LOG_WARNING, "The application delimiter is now the comma, not "
- "the pipe. Did you forget to convert your dialplan? (%s(%s))\n",
- app->name, (char *) data);
- }
res = app->execute(c, S_OR(data, ""));
if (app->module && u)
__ast_module_user_remove(app->module, u);