mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Remove the few places where we try to ast_verbose() without a newline.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7372,16 +7372,23 @@ static struct ast_frame *sip_rtp_read(struct ast_channel *ast, struct sip_pvt *p
|
||||
case 4:
|
||||
f = ast_rtp_instance_read(p->trtp, 0); /* RTP Text */
|
||||
if (sipdebug_text) {
|
||||
struct ast_str *out = ast_str_create(f->datalen * 4 + 6);
|
||||
int i;
|
||||
unsigned char* arr = f->data.ptr;
|
||||
for (i=0; i < f->datalen; i++) {
|
||||
ast_verbose("%c", (arr[i] > ' ' && arr[i] < '}') ? arr[i] : '.');
|
||||
}
|
||||
ast_verbose(" -> ");
|
||||
for (i=0; i < f->datalen; i++) {
|
||||
ast_verbose("%02X ", arr[i]);
|
||||
}
|
||||
ast_verbose("\n");
|
||||
do {
|
||||
if (!out) {
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < f->datalen; i++) {
|
||||
ast_str_append(&out, 0, "%c", (arr[i] > ' ' && arr[i] < '}') ? arr[i] : '.');
|
||||
}
|
||||
ast_str_append(&out, 0, " -> ");
|
||||
for (i = 0; i < f->datalen; i++) {
|
||||
ast_str_append(&out, 0, "%02X ", arr[i]);
|
||||
}
|
||||
ast_verb(0, "%s\n", ast_str_buffer(out));
|
||||
ast_free(out);
|
||||
} while (0);
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
|
@@ -1558,14 +1558,14 @@ static void rcv_mac_addr(struct unistimsession *pte, const unsigned char *buf)
|
||||
int tmp, i = 0;
|
||||
char addrmac[19];
|
||||
int res = 0;
|
||||
if (unistimdebug)
|
||||
ast_verb(0, "Mac Address received : ");
|
||||
for (tmp = 15; tmp < 15 + SIZE_HEADER; tmp++) {
|
||||
sprintf(&addrmac[i], "%.2x", (unsigned char) buf[tmp]);
|
||||
i += 2;
|
||||
}
|
||||
if (unistimdebug)
|
||||
ast_verb(0, "%s\n", addrmac);
|
||||
if (unistimdebug) {
|
||||
ast_verb(0, "Mac Address received : %s\n", addrmac);
|
||||
}
|
||||
|
||||
strcpy(pte->macaddr, addrmac);
|
||||
res = unistim_register(pte);
|
||||
if (!res) {
|
||||
|
Reference in New Issue
Block a user