diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_gtalk.c | 14 | ||||
-rw-r--r-- | channels/chan_iax2.c | 6 | ||||
-rw-r--r-- | channels/chan_mgcp.c | 2 | ||||
-rw-r--r-- | channels/chan_sip.c | 10 | ||||
-rw-r--r-- | channels/chan_unistim.c | 6 | ||||
-rw-r--r-- | channels/console_gui.c | 6 | ||||
-rw-r--r-- | channels/console_video.c | 2 |
7 files changed, 23 insertions, 23 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index 95cbe238d..e51282581 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -304,7 +304,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if(!payload_eg711u || !payload_pcmu) { iks_delete(payload_pcmu); iks_delete(payload_eg711u); - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_pcmu, "id", "0"); @@ -326,7 +326,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if(!payload_eg711a || !payload_pcma) { iks_delete(payload_eg711a); iks_delete(payload_pcma); - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_pcma, "id", "8"); @@ -345,7 +345,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if (!strcasecmp("ilbc", format)) { iks *payload_ilbc = iks_new("payload-type"); if(!payload_ilbc) { - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_ilbc, "id", "97"); @@ -358,7 +358,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if (!strcasecmp("g723", format)) { iks *payload_g723 = iks_new("payload-type"); if(!payload_g723) { - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_g723, "id", "4"); @@ -371,7 +371,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if (!strcasecmp("speex", format)) { iks *payload_speex = iks_new("payload-type"); if(!payload_speex) { - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_speex, "id", "110"); @@ -384,7 +384,7 @@ static int add_codec_to_answer(const struct gtalk_pvt *p, struct ast_format *cod if (!strcasecmp("gsm", format)) { iks *payload_gsm = iks_new("payload-type"); if(!payload_gsm) { - ast_log(LOG_WARNING,"Failed to allocate iks node"); + ast_log(LOG_WARNING,"Failed to allocate iks node\n"); return -1; } iks_insert_attrib(payload_gsm, "id", "103"); @@ -908,7 +908,7 @@ static int gtalk_create_candidates(struct gtalk *client, struct gtalk_pvt *p, ch gtalk_get_local_ip(&us); if (!strcmp(ast_sockaddr_stringify_addr(&us), "127.0.0.1")) { - ast_log(LOG_WARNING, "Found a loopback IP on the system, check your network configuration or set the bindaddr attribute."); + ast_log(LOG_WARNING, "Found a loopback IP on the system, check your network configuration or set the bindaddr attribute.\n"); } /* Setup our gtalk candidates */ diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index cbc4858ac..601ff9402 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -5426,7 +5426,7 @@ static int iax2_start_transfer(unsigned short callno0, unsigned short callno1, i unsigned int transferid = (unsigned int)ast_random(); if (IAX_CALLENCRYPTED(iaxs[callno0]) || IAX_CALLENCRYPTED(iaxs[callno1])) { - ast_debug(1, "transfers are not supported for encrypted calls at this time"); + ast_debug(1, "transfers are not supported for encrypted calls at this time\n"); ast_set_flag64(iaxs[callno0], IAX_NOTRANSFER); ast_set_flag64(iaxs[callno1], IAX_NOTRANSFER); return 0; @@ -7885,7 +7885,7 @@ static int authenticate_verify(struct chan_iax2_pvt *p, struct iax_ies *ies) user = user_unref(user); } if (ast_test_flag64(p, IAX_FORCE_ENCRYPT) && !p->encmethods) { - ast_log(LOG_NOTICE, "Call Terminated, Incoming call is unencrypted while force encrypt is enabled."); + ast_log(LOG_NOTICE, "Call Terminated, Incoming call is unencrypted while force encrypt is enabled.\n"); return res; } if (!ast_test_flag(&p->state, IAX_STATE_AUTHENTICATED)) @@ -8233,7 +8233,7 @@ static int authenticate_reply(struct chan_iax2_pvt *p, struct sockaddr_in *sin, if (ies->encmethods) { ast_set_flag64(p, IAX_ENCRYPTED | IAX_KEYPOPULATED); } else if (ast_test_flag64(iaxs[callno], IAX_FORCE_ENCRYPT)) { - ast_log(LOG_NOTICE, "Call initiated without encryption while forceencryption=yes option is set"); + ast_log(LOG_NOTICE, "Call initiated without encryption while forceencryption=yes option is set\n"); return -1; /* if force encryption is yes, and no encryption methods, then return -1 to hangup */ } if (!res) { diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index ae7acedfc..6bec05cae 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1306,7 +1306,7 @@ static int mgcp_senddigit_begin(struct ast_channel *ast, char digit) ast_debug(1, "Sending DTMF using inband/hybrid\n"); res = -1; /* Let asterisk play inband indications */ } else if (p->dtmfmode & MGCP_DTMF_RFC2833) { - ast_debug(1, "Sending DTMF using RFC2833"); + ast_debug(1, "Sending DTMF using RFC2833\n"); ast_rtp_instance_dtmf_begin(sub->rtp, digit); } else { ast_log(LOG_ERROR, "Don't know about DTMF_MODE %d\n", p->dtmfmode); diff --git a/channels/chan_sip.c b/channels/chan_sip.c index db209d935..1fe5eb45f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2786,7 +2786,7 @@ static void *_sip_tcp_helper_thread(struct ast_tcptls_session_instance *tcptls_s case TCPTLS_ALERT_DATA: ao2_lock(me); if (!(packet = AST_LIST_REMOVE_HEAD(&me->packet_q, entry))) { - ast_log(LOG_WARNING, "TCPTLS thread alert_pipe indicated packet should be sent, but frame_q is empty"); + ast_log(LOG_WARNING, "TCPTLS thread alert_pipe indicated packet should be sent, but frame_q is empty\n"); } ao2_unlock(me); @@ -5666,7 +5666,7 @@ static int sip_call(struct ast_channel *ast, const char *dest, int timeout) p->options->replaces = ast_var_value(current); } else if (!strcasecmp(ast_var_name(current), "SIP_MAX_FORWARDS")) { if (sscanf(ast_var_value(current), "%30d", &(p->maxforwards)) != 1) { - ast_log(LOG_WARNING, "The SIP_MAX_FORWARDS channel variable is not a valid integer."); + ast_log(LOG_WARNING, "The SIP_MAX_FORWARDS channel variable is not a valid integer.\n"); } } } @@ -6329,7 +6329,7 @@ static int sip_hangup(struct ast_channel *ast) return 0; } if (ast_test_flag(ast_channel_flags(ast), AST_FLAG_ANSWERED_ELSEWHERE) || ast_channel_hangupcause(ast) == AST_CAUSE_ANSWERED_ELSEWHERE) { - ast_debug(1, "This call was answered elsewhere"); + ast_debug(1, "This call was answered elsewhere\n"); if (ast_channel_hangupcause(ast) == AST_CAUSE_ANSWERED_ELSEWHERE) { ast_debug(1, "####### It's the cause code, buddy. The cause code!!!\n"); } @@ -13397,7 +13397,7 @@ static int manager_sipnotify(struct mansession *s, const struct message *m) ast_str_append(&p->notify->content, 0, "\r\n"); ast_str_append(&p->notify->content, 0, "%s", var->value); } else if (!strcasecmp(var->name, "Content-Length")) { - ast_log(LOG_WARNING, "it is not necessary to specify Content-Length, ignoring"); + ast_log(LOG_WARNING, "it is not necessary to specify Content-Length, ignoring\n"); } else { header->next = ast_variable_new(var->name, var->value, ""); header = header->next; @@ -19849,7 +19849,7 @@ static char *sip_cli_notify(struct ast_cli_entry *e, int cmd, struct ast_cli_arg ast_str_append(&p->notify->content, 0, "\r\n"); ast_str_append(&p->notify->content, 0, "%s", buf); } else if (!strcasecmp(var->name, "Content-Length")) { - ast_log(LOG_WARNING, "it is not necessary to specify Content-Length in sip_notify.conf, ignoring"); + ast_log(LOG_WARNING, "it is not necessary to specify Content-Length in sip_notify.conf, ignoring\n"); } else { header->next = ast_variable_new(var->name, buf, ""); header = header->next; diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index f13105865..723500e45 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -2168,7 +2168,7 @@ static int write_history(struct unistimsession *pte, char way, char ismissed) snprintf(tmp, sizeof(tmp), "%s/%s", ast_config_AST_LOG_DIR, USTM_LOG_DIR); if (ast_mkdir(tmp, 0770)) { - ast_log(LOG_WARNING, "Unable to create directory for history"); + ast_log(LOG_WARNING, "Unable to create directory for history\n"); return -1; } @@ -6318,7 +6318,7 @@ static struct unistim_device *build_device(const char *cat, const struct ast_var } else if (!strcasecmp(v->name, "contrast")) { d->contrast = atoi(v->value); if ((d->contrast < 0) || (d->contrast > 15)) { - ast_log(LOG_WARNING, "constrast must be beetween 0 and 15"); + ast_log(LOG_WARNING, "contrast must be beetween 0 and 15\n"); d->contrast = 8; } } else if (!strcasecmp(v->name, "nat")) { @@ -6510,7 +6510,7 @@ static struct unistim_device *build_device(const char *cat, const struct ast_var struct timeval cur_time = ast_tvnow(); if ((ast_localtime(&cur_time, &tm, 0)) == 0 || ast_strlen_zero(tm.tm_zone)) { - ast_log(LOG_WARNING, "Error in ast_localtime()"); + ast_log(LOG_WARNING, "Error in ast_localtime()\n"); ast_copy_string(d->titledefault, "UNISTIM for*", 12); } else { if (strlen(tm.tm_zone) < 4) { diff --git a/channels/console_gui.c b/channels/console_gui.c index 375a4019c..f49152a73 100644 --- a/channels/console_gui.c +++ b/channels/console_gui.c @@ -976,7 +976,7 @@ static void eventhandler(struct video_desc *env, const char *caption) case SDL_ACTIVEEVENT: #if 0 /* do not react, we don't want to die because the window is minimized */ if (ev[i].active.gain == 0 && ev[i].active.state & SDL_APPACTIVE) { - ast_log(LOG_WARNING, "/* somebody has killed us ? */"); + ast_log(LOG_WARNING, "/* somebody has killed us ? */\n"); ast_cli_command(gui->outfd, "stop now"); } #endif @@ -1635,7 +1635,7 @@ static int keypad_cfg_read(struct gui_info *gui, const char *val) if (gui->kp_size == 0) { gui->kp = ast_calloc(10, sizeof(e)); if (gui->kp == NULL) { - ast_log(LOG_WARNING, "cannot allocate kp"); + ast_log(LOG_WARNING, "cannot allocate kp\n"); return 0; } gui->kp_size = 10; @@ -1643,7 +1643,7 @@ static int keypad_cfg_read(struct gui_info *gui, const char *val) if (gui->kp_size == gui->kp_used) { /* must allocate */ struct keypad_entry *a = ast_realloc(gui->kp, sizeof(e)*(gui->kp_size+10)); if (a == NULL) { - ast_log(LOG_WARNING, "cannot reallocate kp"); + ast_log(LOG_WARNING, "cannot reallocate kp\n"); return 0; } gui->kp = a; diff --git a/channels/console_video.c b/channels/console_video.c index d53e6ec27..77f95ba09 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -657,7 +657,7 @@ static void my_scale(struct fbuf_t *in, AVPicture *p_in, eff_w, eff_h, out->pix_fmt, SWS_BICUBIC, NULL, NULL, NULL); if (convert_ctx == NULL) { - ast_log(LOG_ERROR, "FFMPEG::convert_cmodel : swscale context initialization failed"); + ast_log(LOG_ERROR, "FFMPEG::convert_cmodel : swscale context initialization failed\n"); return; } if (0) |