summaryrefslogtreecommitdiffstats
path: root/bchannel.c
diff options
context:
space:
mode:
authorAndreas Eversberg2008-09-06 13:59:48 +0200
committerAndreas Eversberg2008-09-06 13:59:48 +0200
commitb95114936f9fc12816035db92beb3def4b5b0506 (patch)
tree57670d8c41dc82f60a8257a54f6c24c14eaf73ce /bchannel.c
parentFix missing argument (diff)
downloadlcr-b95114936f9fc12816035db92beb3def4b5b0506.tar.gz
lcr-b95114936f9fc12816035db92beb3def4b5b0506.tar.xz
lcr-b95114936f9fc12816035db92beb3def4b5b0506.zip
changed port attribute to "portnum".
modified: bchannel.c modified: default/interface.conf modified: interface.c modified: mISDN.cpp modified: route.c
Diffstat (limited to 'bchannel.c')
-rw-r--r--bchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bchannel.c b/bchannel.c
index eb1ad88..3625eba 100644
--- a/bchannel.c
+++ b/bchannel.c
@@ -164,12 +164,12 @@ int bchannel_create(struct bchannel *bchannel, int mode)
/* bind socket to bchannel */
addr.family = AF_ISDN;
- addr.dev = (bchannel->handle>>8)-1;
+ addr.dev = (bchannel->handle>>8);
addr.channel = bchannel->handle & 0xff;
ret = bind(bchannel->b_sock, (struct sockaddr *)&addr, sizeof(addr));
if (ret < 0)
{
- CERROR(bchannel->call, NULL, "Failed to bind bchannel-socket for handle 0x%x with mISDN-DSP layer. (port %d, channel %d) Did you load mISDNdsp.ko?\n", bchannel->handle, addr.dev + 1, addr.channel);
+ CERROR(bchannel->call, NULL, "Failed to bind bchannel-socket for handle 0x%x with mISDN-DSP layer. (port %d, channel %d) Did you load mISDNdsp.ko?\n", bchannel->handle, addr.dev, addr.channel);
close(bchannel->b_sock);
bchannel->b_sock = -1;
return(0);