if (message_type == MESSAGE_BCHANNEL) {
switch(param->bchannel.type) {
case BCHANNEL_ASSIGN:
+lock_debug("rx1");
CDEBUG(NULL, NULL, "Received BCHANNEL_ASSIGN message. (handle=%08lx) for ref %d\n", param->bchannel.handle, ref);
if ((bchannel = find_bchannel_handle(param->bchannel.handle))) {
CERROR(NULL, NULL, "bchannel handle %x already assigned.\n", (int)param->bchannel.handle);
CERROR(NULL, NULL, "Socket received illegal message %d.\n", msg.message);
goto error;
}
+ lock_debug("handleX");
receive_message(msg.u.msg.type, msg.u.msg.ref, &msg.u.msg.param);
+ lock_debug("handleY");
} else {
CERROR(NULL, NULL, "Socket failed (errno %d).\n", errno);
goto error;
ast = call->ast;
if (*p && ast) {
lock_debug("A1+");
- ast_channel_lock(ast);
+// ast_channel_lock(ast);
lock_debug("A1-");
while(*p) {
switch (*p) {
p++;
}
call->queue_string[0] = '\0';
- ast_channel_unlock(ast);
+// ast_channel_unlock(ast);
lock_debug("a1");
}
call = call->next;