summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2011-08-11 15:23:23 +0200
committerAndreas Eversberg2011-08-11 15:23:23 +0200
commit9f505bd729375423e885dcbe4db30df65541f7a7 (patch)
treef5b7dd98bc3305aabc0999552cf0c8ff94ac50c8
parentFixed wrong reference when requesting a channel from chan_lcr. (diff)
downloadlcr-9f505bd729375423e885dcbe4db30df65541f7a7.tar.gz
lcr-9f505bd729375423e885dcbe4db30df65541f7a7.tar.xz
lcr-9f505bd729375423e885dcbe4db30df65541f7a7.zip
Additionally adding output of bchannel "ref" at some debug output.
-rw-r--r--chan_lcr.c8
-rw-r--r--remote.cpp2
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