From 9f505bd729375423e885dcbe4db30df65541f7a7 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 11 Aug 2011 15:23:23 +0200 Subject: [PATCH] Additionally adding output of bchannel "ref" at some debug output. --- chan_lcr.c | 8 ++++---- remote.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chan_lcr.c b/chan_lcr.c index 3904c9a..a8ded4a 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -360,7 +360,7 @@ int send_message(int message_type, unsigned int ref, union parameter *param) CDEBUG(NULL, NULL, "Ignoring message %d, because socket is closed.\n", message_type); return -1; } - CDEBUG(NULL, NULL, "Sending %s to socket.\n", messages_txt[message_type]); + CDEBUG(NULL, NULL, "Sending %s to socket. (ref=%d)\n", messages_txt[message_type], ref); adminp = &admin_first; while(*adminp) @@ -1152,7 +1152,7 @@ static void lcr_in_connect(struct chan_call *call, int message_type, union param call->state = CHAN_LCR_STATE_CONNECT; /* request bchannel */ if (!call->bchannel) { - CDEBUG(call, call->ast, "Requesting B-channel.\n"); + CDEBUG(call, call->ast, "Requesting B-channel. (ref=%d)\n", call->ref); memset(&newparam, 0, sizeof(union parameter)); newparam.bchannel.type = BCHANNEL_REQUEST; send_message(MESSAGE_BCHANNEL, call->ref, &newparam); @@ -1305,7 +1305,7 @@ static void lcr_in_notify(struct chan_call *call, int message_type, union parame /* request bchannel, if call is resumed and we don't have it */ if (param->notifyinfo.notify == INFO_NOTIFY_USER_RESUMED && !call->bchannel && call->ref) { - CDEBUG(call, call->ast, "Reqesting bchannel at resume.\n"); + CDEBUG(call, call->ast, "Reqesting bchannel at resume. (ref=%d)\n", call->ref); memset(&newparam, 0, sizeof(union parameter)); newparam.bchannel.type = BCHANNEL_REQUEST; send_message(MESSAGE_BCHANNEL, call->ref, &newparam); @@ -1348,7 +1348,7 @@ static void lcr_in_pattern(struct chan_call *call, int message_type, union param /* request bchannel */ if (!call->bchannel) { - CDEBUG(call, call->ast, "Requesting B-channel.\n"); + CDEBUG(call, call->ast, "Requesting B-channel. (ref=%d)\n", call->ref); memset(&newparam, 0, sizeof(union parameter)); newparam.bchannel.type = BCHANNEL_REQUEST; send_message(MESSAGE_BCHANNEL, call->ref, &newparam); diff --git a/remote.cpp b/remote.cpp index e14c8e3..8d7c0bf 100644 --- a/remote.cpp +++ b/remote.cpp @@ -11,7 +11,7 @@ #include "main.h" -unsigned int new_remote = 0x00000001; +unsigned int new_remote = 1000; /* * constructor -- 2.13.6